Practical MQTT patterns
Guides
Clear choices for replay, current state, queued work, and durable storage at the edge.
Choose the smallest MQTT durability model that tells the truth about your data.
These guides start with operational problems, offline consumers, current state, leased work, and constrained edge machines, then connect each one to the relevant Sagüin contract and runnable example.
Replay MQTT messages after an outage
Learn how MQTT session queues differ from a replayable log, and how Sagüin resumes each durable consumer from a stored position.
Read guideBuild a durable MQTT work queue
Use MQTT topics as a leased work queue with acknowledgements, retries, timeouts, and dead-letter handling for edge workers.
Read guideRetained messages or replay?
Compare retained messages, persistent sessions, latest-value state, and replayable logs so each MQTT workload uses the right durability model.
Read guideRun durable MQTT state on SQLite
See when one MQTT broker and one SQLite database are a practical fit for durable messaging on a small edge machine.
Read guide