What Is MQTT?

Avatar
TDengine Team
/

MQTT is an OASIS standard messaging protocol for the Internet of Things (IoT). It is designed as an extremely lightweight publish/subscribe messaging transport that is ideal for connecting remote devices with a small code footprint and minimal network bandwidth. MQTT today is used in a wide variety of industries, such as automotive, manufacturing, telecommunications, oil and gas.

MQTT is the most commonly used messaging protocol for the Internet of Things (IoT). MQTT stands for MQ Telemetry Transport. The protocol is a set of rules that defines how IoT devices can publish and subscribe to data over the Internet. MQTT is used for messaging and data exchange between IoT and industrial IoT (IIoT) devices, such as embedded devices, sensors, and industrial PLCs.

MQTT is a publish/subscribe protocol that is lightweight and requires a minimal footprint and bandwidth to connect an IoT device. Unlike HTTP’s request/response paradigm, MQTT is event driven and enables messages to be pushed to clients. This type of architecture decouples the clients from each other to enable a highly scalable solution without dependencies between data producers and data consumers.

The sender (Publisher) and the receiver (Subscriber) communicate via Topics and are decoupled from each other. The connection between them is handled by the MQTT broker. The MQTT broker filters all incoming messages and distributes them correctly to the Subscribers.

The key benefits of MQTT are:

  1. Lightweight and efficient to minimize resources required for the client and network bandwidth.
  2. Enables bidirectional communication between devices and servers. Also, enabling broadcasting messages to groups of things.
  3. Scales to millions of things.
  4. Specifies Quality of Service (QoS) levels to support message reliability.
  5. Supports persistent sessions between device and server that reduces reconnection time required over unreliable networks.
  6. Messages can be encrypted with TLS and support client authentication protocols.