What is mqtt
Last updated: April 1, 2026
Key Facts
- Lightweight publish-subscribe messaging protocol optimized for IoT devices and unreliable networks
- Uses minimal bandwidth and power consumption, suitable for devices with limited resources and battery life
- Operates on TCP/IP networks with standardized port 1883 for unencrypted and 8883 for encrypted communications
- Supports three quality-of-service levels providing flexible message delivery guarantees and reliability options
- Increasingly adopted in smart homes, industrial automation, healthcare monitoring, and real-time data streaming
Overview
MQTT (MQ Telemetry Transport) is a messaging protocol specifically designed for the constraints of IoT devices and unreliable networks. Created by Andy Stanford-Clark and Arlen Nipper in 1999, MQTT has become the de facto standard for IoT communication worldwide. The protocol operates on a publish-subscribe model where devices publish messages to topics and other devices subscribe to those topics, receiving updates automatically without requiring direct connections between publishers and subscribers.
How MQTT Works
MQTT operates with a central message broker that manages all communications. Publishers send messages to specific topics, and subscribers receive messages from subscribed topics without needing to know publisher details. This decoupling allows flexible, scalable architectures. The protocol uses a binary message format minimizing bandwidth, essential for devices operating on battery power or unreliable connections. Messages remain small and efficient, making MQTT ideal for constrained environments where every byte matters.
Quality of Service Levels
MQTT defines three quality-of-service (QoS) levels ensuring flexible message delivery guarantees. QoS 0 offers fire-and-forget delivery with no confirmation or retries. QoS 1 guarantees at-least-once delivery with broker acknowledgment. QoS 2 ensures exactly-once delivery, preventing duplicates through a handshake protocol. Applications select appropriate levels based on requirements, balancing reliability against resource usage. This flexibility allows MQTT to handle diverse scenarios from casual sensor readings to critical control commands.
Real-World Applications
MQTT powers numerous IoT applications including smart home systems where devices like thermostats, lights, security cameras, and smart plugs communicate efficiently. Industrial automation uses MQTT for machine monitoring and predictive maintenance. Healthcare applications employ MQTT for remote patient monitoring and health sensors. Environmental monitoring networks use MQTT to collect data from distributed weather and air quality sensors. Automotive and fleet management applications leverage MQTT for vehicle telemetry and location tracking.
Security and Reliability
MQTT supports TLS/SSL encryption for secure communications, protecting data in transit. Authentication mechanisms prevent unauthorized access through username/password credentials. The last-will feature enables devices to send final messages upon unexpected disconnection, alerting systems to device failure. Persistent connections reduce overhead compared to polling-based approaches. These features make MQTT suitable for both public and private IoT networks requiring strong security and reliability.
Related Questions
How is MQTT different from HTTP?
MQTT uses persistent connections and publish-subscribe messaging, consuming significantly less bandwidth and power. HTTP requires separate requests for each communication, making it less efficient for frequent IoT sensor updates and real-time applications.
What devices can use MQTT?
MQTT works on any device with TCP/IP connectivity, including microcontrollers, smartphones, computers, and servers. Its lightweight nature makes it suitable for devices with limited memory and processing power.
Is MQTT secure?
MQTT supports TLS encryption and username/password authentication. Security depends on proper implementation, but correctly configured MQTT systems provide strong security for IoT communications and sensitive data.
More What Is in Daily Life
- What is ambienAmbien is a prescription sedative medication containing zolpidem, used to treat insomnia by helping …
- What is amortizationAmortization is the process of paying off a loan through regular installment payments over a fixed p…
- What is amishThe Amish are a Christian religious group known for their plain lifestyle, limited use of modern tec…
- What is apathyApathy is a psychological state characterized by a lack of emotion, motivation, interest, or concern…
- What is aptApt is an adjective meaning appropriate, suitable, or having a natural tendency to do something. In …
- What is american pie aboutAmerican Pie is a 1999 teen comedy film about four high school friends who make a pact to lose their…
- What is amazon haulAmazon Haul is a mobile shopping app by Amazon offering discounted products, typically under $20 per…
- What is amnesiaAmnesia is a medical condition involving partial or complete loss of memory. It can result from brai…
- What is aortaThe aorta is the largest artery in the human body that carries oxygenated blood from the left ventri…
- What is aoAO is an acronym with multiple meanings depending on context, most commonly referring to the AO Foun…
- What is aorAOR stands for Album-Oriented Radio, a radio format that emphasizes playing complete album tracks an…
- What is aot oadsAttack on Titan OADs are original anime DVD/Blu-ray episodes released as bonus content exclusive to …
- What is aoe damageAOE damage stands for Area of Effect damage, a game mechanic where a single attack or ability damage…
- What is anemiaAnemia is a condition where your blood lacks enough healthy red blood cells or hemoglobin to carry a…
- What is an argAn ARG (Alternate Reality Game) is an interactive fiction experience that blurs the boundary between…
- What is an iedAn IED (Improvised Explosive Device) is a homemade bomb made from conventional or commercial explosi…
- What is an adverbAn adverb is a word that modifies a verb, adjective, or another adverb, describing how, when, where,…
- What is anti aliasingAnti-aliasing is a technique used in computer graphics to smooth jagged edges that appear on curved …
- What is ao3AO3 is Archive of Our Own, a non-profit fan fiction archive and community website. It allows users t…
- What is aosAOS can refer to several things: Age of Sigmar (a tabletop wargame), Armor of Ships (military vessel…
Also in Daily Life
- How To Save Money
- What does awol mean
- What does asl mean
- What does ad mean
- What does asap mean
- What does apex mean
- What does asmr stand for
- What does atp mean
- What causes autism
- What does abg mean
- Is it safe to abort at 2 months
- Is it safe to apply for citizenship now
- Is it safe to accept zelle for facebook marketplace
- Is it safe to apply vaseline on face
- Is it safe to accept venmo for facebook marketplace
More "What Is" Questions
Trending on WhatAnswer
Browse by Topic
Browse by Question Type
Sources
- Wikipedia - MQTT CC-BY-SA-4.0