MQTT Communication
Introduction
In the previous section, we learned about Socket communication. When a server and client establish a connection, they can communicate with each other. In internet applications, WebSocket interfaces are mostly used to transmit data. However, in IoT applications, the following scenario often occurs: massive numbers of sensors need to stay online at all times, transmitting very low amounts of data, with a large user base. If sockets were still used for communication, the server load and communication framework design would become extremely complex as the number of devices increases!
So, is there a framework protocol to solve this problem? The answer is yes. That is MQTT (Message Queuing Telemetry Transport).