What is mqtt broker

Last updated: April 1, 2026

Quick Answer: An MQTT broker is a server that receives messages from publishing clients and distributes them to subscribing clients based on topics. It's the central hub enabling publish-subscribe messaging in IoT and real-time applications.

Key Facts

How MQTT Brokers Work

An MQTT broker acts as a central server in a publish-subscribe messaging architecture. When a client publishes a message to a specific topic, the broker receives it and immediately forwards it to all clients that have subscribed to that topic. This decoupling between publishers and subscribers eliminates the need for direct client-to-client connections.

Architecture and Components

The broker maintains several critical components: a subscription manager that tracks which clients are interested in which topics, a message router that directs incoming messages to appropriate subscribers, and a persistence layer that can store messages for clients that are temporarily offline. The broker communicates using the MQTT protocol, which uses a binary format for efficient transmission over low-bandwidth networks.

Key Features

Common MQTT Brokers

Popular options include Mosquitto (lightweight, open-source), HiveMQ (enterprise-grade), EMQ (horizontally scalable), and AWS IoT Core (cloud-based). Each broker varies in scalability, features, and deployment options. Open-source brokers suit small deployments and development, while commercial solutions provide enterprise features, clustering, and high availability.

Use Cases

MQTT brokers power IoT applications like smart home systems, industrial sensor networks, real-time data collection, and mobile push notifications. They're ideal for scenarios with many devices sending small amounts of data over unreliable networks, making them perfect for battery-powered IoT devices and applications requiring low latency.

Related Questions

What is the difference between MQTT and HTTP?

MQTT is a lightweight publish-subscribe protocol ideal for IoT devices, while HTTP is a request-response protocol used for web browsing. MQTT uses less bandwidth and battery power, making it better for constrained devices and real-time messaging.

How does MQTT QoS work?

MQTT Quality of Service levels control message delivery guarantees. QoS 0 offers no guarantee, QoS 1 ensures at least one delivery, and QoS 2 guarantees exactly one delivery. Higher QoS levels require more network overhead.

Can MQTT brokers scale to handle millions of devices?

Yes, enterprise MQTT brokers can scale to millions of connections through clustering, load balancing, and distributed architecture. Cloud-based brokers like AWS IoT Core and Azure IoT Hub handle massive scale automatically.

Sources

  1. Wikipedia - MQTTCC-BY-SA-4.0
  2. MQTT Official OrganizationOpen Source
  3. HiveMQ - MQTT Essentials GuideCC-BY-4.0