Technical detail · MQTT and AMQP: Routing Architectures
Bound the bridge spool and replay
A local spool is bounded bridge storage for work waiting to reach the backend. For 10,000 sensors each sending once per minute, a 10-minute backend outage creates about 10,000 × 10 = 100,000 records. Storage must include record size and metadata, and replay capacity must account for continuing arrivals.
If AMQP blocks publishing, stop acknowledging or committing MQTT-side intake until the bridge has safely retained responsibility under its contract. Verify the MQTT library’s acknowledgement controls; an in-memory callback buffer alone cannot establish durable intake. Decide what happens when the spool fills, how restart recovers it, which messages expire and who authorizes replay. The same duplicate key must survive a retry.