Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Cover for What is MQTT Quality of Service?

Video by Adaptive AgroTech. If the embedded player is unavailable, open the original video ↗.

Communication & networksInterview topic 130

What is MQTT Quality of Service?

MQTT QoS defines delivery levels with different acknowledgement costs: at most once, possible duplicate delivery, or exactly once within a protocol exchange. These guarantees do not establish how many times an actuator physically executes.

Understand the concept

The key idea

MQTT quality of service trades protocol traffic against delivery guarantees. QoS 0 sends without acknowledgement, so messages can be lost. QoS 1 uses acknowledgement and can result in duplicate delivery. QoS 2 uses a longer handshake to provide exactly once delivery within that exchange between its endpoints. A broker’s delivery to a subscriber is its own exchange. Robot command handling therefore also needs application concepts such as command identifiers and expiry times. Even exactly once protocol delivery does not prove that the physical actuator executed a requested action exactly once.

What to remember

  • QoS 0 is at most once without acknowledgement.
  • QoS 1 can duplicate; QoS 2 uses a longer handshake.
  • Command identity and expiry remain application responsibilities.
Pause & think

Check your understanding

Does MQTT QoS 2 prove that a robot action happened exactly once?

Show the explanation

No. It describes protocol delivery within an exchange, not physical execution.