MQTT Broker
The central server in an MQTT pub/sub system. All messages pass through the broker.
Broker functions:
- Accepts messages from publisher clients
- Stores retained messages (one per topic)
- Manages subscriptions (subscribe/unsubscribe requests)
- Forwards messages to subscribed clients
- Handles persistent sessions (stores missed messages for QoS 1/2)
- Sends Last Will & Testament on unexpected client disconnect
Brokers can be public (test.mosquitto.org) or private. Azure IoT Hub acts as a managed MQTT broker.
See Also
- MQTT and IoT Protocols topic
- Sub concept, QoS concept