MAS Messaging is implemented using the MQTT protocol. Why MQTT? It is lightweight and simple for constrained communication environments like IoT. Not to mention it has a small code footprint where network bandwidth is at a premium.
All of the backend complexity is abstracted away, so your interaction with the SDK looks simply like this: