Problem 2 – code changes
MQTT makes code changes easier to scale. When using MQTT, there is always a centralized MQTT server, which keeps track of all of the clients, messages, and subscriptions. To add another device to our network, we don't have to modify the code of the other devices in order to receive information from them. It is best to understand this principle by thinking about communication between humans. If you have some information that you want to pass on to multiple people, there are two ways to let them know about it. The first way, which can be compared to traditional infrastructure on the web, is one-to-one communication. You let each of them know individually about what you have to say. The other way is letting them know ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access