MQTT

What Is a Message Queue?

  • A message queue, or MQ, is a communication method used when processes or program instances exchange data with one another.

What Is MQTT (Message Queue for Telemetry Transport)?

  • MQTT stands for Message Queue for Telemetry Transport.
  • It is a lightweight protocol developed for M2M (machine-to-machine) and IoT (Internet of Things).
  • It was developed by IBM in 1999 as a large-scale message delivery protocol designed to operate under limited computing power and network connectivity.
  • It is optimized for sending and receiving small amounts of data from devices and for unstable network environments such as 3G.

Sites

Publish/Subscribe Structure

MQTT’s biggest feature is its publish/subscribe structure. Publishers and subscribers communicate through an MQTT broker by using specific topics. Figure 2 shows the basic structure in which publishers and subscribers communicate. If one or more subscribers have subscribed to a specific topic, data published to that topic by a publisher is delivered to the subscribers through the MQTT broker.

Publish/Subscribe structure

  • publisher
    • Sends messages to the broker.
  • subscriber
    • Receives messages from the broker.
  • broker
    • Delivers messages to subscribers registered for a topic.

References