Thank you for taking the time to provide such a detailed explanation. My main concern is when faced with multiple options, choosing the one that best fits my specific requirements. Making this decision requires a strong understanding, and that's why I presented my requirements and two options (although I didn't want to overwhelm with choices). I'm more interested in understanding the communication process between servers and clients. I've spent a considerable amount of time researching online, reading books, and various materials to grasp how communication occurs in this context, including the communication protocols used. That's why I shared my requirements and asked for opinions on which option to choose, along with the reasoning behind those choices. I also provided my own perspective on why I might lean towards a particular option. As I mentioned in my initial post, I didn't want a general description, as that information is readily available online. I asked these questions because I find it challenging to comprehend these concepts within the framework of real-world requirements. I'm focusing on practical requirements, especially since I'm considering a smart home system. While some may disagree with my approach, but it works best for me because it allows me to gather diverse opinions and refine my understanding by comparing it with others
I am here getting useful answers on smart home automation IoT project that I wanted to understand
Did you research Thread, Matter, MQTT, or any other IoT specific protocol? The links at the end are what you need to think about, and they include code repos and API references.