MQTT

networking
application-protocols
mqtt
Route map for the MQTT module, connecting publish-subscribe architecture, topics, QoS, sessions, security, implementation, and production review.
Keywords

MQTT, IoT messaging, publish-subscribe, MQTT topics, MQTT QoS, MQTT broker

Broker Bex, your messaging guide

Your guide: Broker Bex

“A message with no subscriber is a tree falling in an empty forest — design the topic before the payload.”

MQTT Module Guide

MQTT is the application protocol many IoT systems use when devices publish telemetry, receive commands, and reconnect across unreliable links. This module groups the MQTT chapters into a focused book so the protocol can be built, searched, and reviewed as its own route.

Use this book when you need to reason about MQTT as a system design choice, not just as a client library. The chapters move from broker and topic architecture through QoS, sessions, security, implementation patterns, labs, and production deployment evidence.

Start With One Message

Imagine one sensor reading leaving a device: it needs a topic name, a broker route, a delivery promise, a session rule, and proof that the right subscriber received it. This module follows that message from first publication to production operation so MQTT feels like a system you can inspect, not a library call you hope works.

Design Questions

  • What does each topic represent, and who is allowed to publish or subscribe to it?
  • Which messages can tolerate loss, duplicates, delays, or replay?
  • Does the system need retained messages, persistent sessions, or last will notifications?
  • Where is security enforced: TLS, client identity, topic ACLs, broker policy, or application confirmation?
  • What production evidence proves the broker, clients, and monitoring behave as expected?