Pub/Sub Messaging Built on MQTT 5.0
One protocol for every real-time pattern. Pub/sub routing, delivery guarantees, persistent sessions, and retained state, all native to MQTT 5.0, not built on top in your application layer.
How Pub/Sub Works
Publishers and subscribers never communicate directly. The broker handles routing, so each side can scale independently.
Publishers and subscribers are fully decoupled, so they can come and go independently. The broker handles fan-out, queuing, and session state.
Protocol Capabilities
MQTT 5.0 was designed for exactly these problems. Every capability below is native to the protocol, not bolted on.
QoS Levels
Choose your delivery guarantee per message. QoS 0 fire-and-forget, QoS 1 at-least-once, QoS 2 exactly-once. No app-level retry logic.
Retained Messages
The broker stores the last message on any topic. New subscribers receive the current state instantly, no replay logic required.
Topic Wildcards
Use + for single-level matching and # for multi-level. Build flexible subscriptions with one rule instead of dozens.
Offline Queuing
Messages stored while a client is disconnected. The broker delivers them in order the moment the client reconnects.
Persistent Sessions
Subscriptions and session state survive disconnects. Clients resume without re-subscribing or replaying state.
Last Will & Testament
Register a disconnect notification at connect time. The broker publishes it if the client drops unexpectedly. Presence detection for free.
Shared Subscriptions
Multiple consumers join a shared group. The broker load-balances messages across them. If one consumer dies, the others keep processing. No coordination logic, no shared state, no message loss.
Broker-Side Multicast
One publish. The broker delivers to thousands of subscribers in parallel. Your application sends one message, not N HTTP requests.
Application-side fan-out
Broker-side multicast
MQTT vs HTTP & WebSockets
HTTP polling and raw WebSockets leave critical messaging primitives up to your application code. MQTT provides them at the protocol layer.
| Feature | HTTP | WebSocket | MQTT |
|---|---|---|---|
| Real-time push | |||
| Pub/Sub routing | |||
| Delivery guarantees (QoS) | |||
| Offline message queuing | |||
| Persistent sessions | |||
| Retained messages | |||
| Last Will & Testament | |||
| Topic-based ACL |
Topic Architecture
Topics are hierarchical paths that define message routing. Design your namespace once and it scales across every use case.
Per-user notifications
Each user subscribes to their own topic. Only they receive their messages.
Chat rooms
All members subscribe to the same room topic and see every post.
IoT data streams
Sensors publish readings; dashboards subscribe to selected devices.
AI agent communication
Route tasks and responses directly to individual agent instances.
Start Building with Pub/Sub
Connect your first client in minutes. Free tier includes 5,000 messages per day with no credit card required.