NEW
Also known as: Message Queuing Telemetry Transport
A lightweight publish–subscribe messaging protocol optimized for resource-constrained devices and unreliable networks in IoT scenarios.
DESCRIPTION
MQTT is a lightweight, topic-based publish–subscribe protocol widely used in IoT for efficient, low-overhead messaging. It supports Quality of Service (QoS) levels, retained messages, and Last Will notices to handle intermittent connectivity. Brokers route messages between publishers and subscribers using hierarchical topics. Security commonly uses TLS and authentication mechanisms. Its small footprint and reliability features make it ideal for sensors, gateways, and mobile devices.
ALTERNATIVE DEFINITIONS
Wikipedia
MQTT is a lightweight, publish-subscribe network protocol that transports messages between devices.
Concise emphasis on lightweight pub/sub and device messaging.
OASIS
MQTT is a Client Server publish/subscribe messaging transport protocol. It is lightweight, open, simple, and designed to be easy to implement.
Official standard highlighting simplicity and openness for implementation.
RELATED TERMS
Publish–Subscribe IoT Quality of Service Last Will and Testament Retained Messages TLS Encryption Broker Topic Edge Gateway
COMPETING TERMS
AMQP Hypertext Transfer Protocol
KNOWLEDGE AREAS
IoT & Edge Data Real-time & Streaming Data Data Integration & Interoperability Data Security
TARGET AUDIENCE
Data Engineer AI Engineer Software Developer Cloud Architect Solution Architect Cybersecurity Engineer
EXTERNAL SOURCES
- Wikipedia - MQTT
- OASIS - Official MQTT 5.0 specification
- Eclipse Paho - Open-source MQTT client libraries
TOP QUESTIONS
Why use MQTT for IoT?
It minimizes overhead, supports unreliable networks, and provides QoS levels, making it ideal for constrained devices and intermittent connectivity.
Category: Relevancy
How do MQTT QoS levels work?
QoS 0 delivers at most once, QoS 1 at least once, and QoS 2 exactly once, balancing reliability and overhead.
Category: Example
What are common security considerations for MQTT?
Use TLS, strong authentication, topic-level authorization, and avoid wildcards for sensitive subscriptions.
Category: Requirements
What are typical mistakes with MQTT deployments?
Overusing retained messages, insufficient topic design, and ignoring backpressure and client session management cause instability.
Category: Mistakes
How does MQTT compare to HTTP for device messaging?
MQTT’s persistent connections and pub/sub model reduce overhead; HTTP suits request–response but adds more protocol overhead for frequent updates.
Category: Alternatives
What is the role of an MQTT broker?
It authenticates clients, manages sessions, and routes messages among topics for publishers and subscribers.
Category: Example
What is a hot topic around MQTT today?
MQTT 5 features like user properties, shared subscriptions, and enhanced error reporting are expanding capabilities.
Category: Topic
How to scale MQTT in production?
Use clustered brokers, shared subscriptions, backpressure, and per-tenant topic namespaces to scale horizontally.
Category: Management
When should I avoid MQTT?
Avoid if you need transactional messaging semantics across services or complex routing without a broker; consider AMQP instead.
Category: Opinion