How to choose between protocols
Azure IoT Hub currently supports three different protocols. All of them work differently and are implemented in IoT solutions depending on the needs of the communication from the device to IoT Hub.
Getting ready
First, let's recap the three protocols, HTTP, MQTT, AMQP. MQTT protocol works on a publish and subscribe architecture. A MQTT client subscribes to a channel on a server, and when a server receives new information for that channel, it pushes it out to that device.
MQTT provides the QoS feature, which defines the priority for the communication between the device and server. These are:
- 0: deliver the message once
- 1: deliver the message at least once
- 2: deliver the message exactly once
The AMQP is another session layer protocol that runs over TCP and provides a publish/ subscribe architecture which is like that of MQTT.
The difference between AMQP and MQTT is that AMQP creates multiple queues for the subscribers to receive the message. These messages are the telemetry...