MQTT QoS

In MQTT protocol, Quality of Service (QoS) ensures the reliability of message delivery under different network conditions. The design of QoS is the focus of the MQTT protocol.

QoS0 - At Most Once (Not Guaranteed)

MQTT QoS0

QoS1 Once - At Least Once (Guaranteed)

MQTT QoS1

QoS 2 Exactly Once (Guaranteed)

MQTT QoS2

Select the Applicable QoS

In MQTT, the message publishing QoS is about the communication between the client and broker, rather than from end to end. The QoS level of the message that the subscriber receives depends on that of the message published and that of the topic subscribed.

QoS (published message)QoS (subscribed topic)QoS (received message)
000
010
020
100
111
121
200
211
222

TIP

For more information, you may read Introduction to MQTT QoS (Quality of Service)MQTT QoS - 图4 (opens new window).