# MQTT Store and Forward: Buffering Industrial Data Through Outages

> Store and forward retains data during a communication outage and sends it after the connection returns.

- Canonical URL: https://wiki.aspotomasyon.com/article/mqtt-store-and-forward-design
- Publisher: ASP OTOMASYON A.Ş. (ASP OTOMASYON Wiki)
- Category: Modern Connectivity
- Published: 2026-09-13 · Updated: 2026-09-13
- Reading time: 2 min · Language: English

Store and forward retains data during a communication outage and sends it after the connection returns. MQTT delivery options are part of the design, but they do not by themselves prove that a complete historical sequence reaches a database. Define persistence, capacity, replay ordering, and duplicate handling at the application boundaries.

![MQTT Store and Forward: Buffering Industrial Data Through Outages — Capture → Buffer → Replay → Reconcile.](https://wiki.aspotomasyon.com/assets/diagrams/mqtt-store-and-forward-design.svg)

*MQTT Store and Forward: Buffering Industrial Data Through Outages — Capture → Buffer → Replay → Reconcile.*

## Design the requirement before the configuration

Distinguish a broker session queue from an edge application’s durable local buffer. Specify what survives process restart and power loss, how full storage is handled, and whether new live data takes priority over replay. Assign each record a stable identity and retain its original timestamp. A downstream consumer should be able to detect gaps and apply an idempotent write policy where repeated delivery is possible. A retained MQTT message is a latest-value mechanism, not a history archive.

## Worked scenario

Illustrative capacity calculation: 50 records per second at an average 200 encoded bytes per record require 36 MB per hour before storage and protocol overhead. An eight-hour outage therefore needs at least 288 MB for payload alone. Measure actual disk usage, index overhead, and replay throughput; include headroom and an explicit full-buffer policy.

## What to verify

| Check | Evidence to record |
| --- | --- |
| Persistence | Test application restart and approved power-loss scenarios |
| Capacity | Measure stored bytes and define a full-buffer policy |
| Replay | Retain source time and expose replay progress |
| Consumer | Detect missing IDs and tolerate expected duplicate delivery |

## Acceptance and handover

Disconnect the upstream path in a representative test, let the backlog grow, then restore it while new records continue arriving. Compare the sent and committed record identities. Measure catch-up time and confirm that operators can distinguish current readings from delayed history.

![A generic industrial messaging path. A network or broker acknowledgment is not necessarily confirmation that a downstream business action succeeded.](https://wiki.aspotomasyon.com/assets/diagrams/modern-connectivity-context.svg)

*A generic industrial messaging path. A network or broker acknowledgment is not necessarily confirmation that a downstream business action succeeded.*

## Continue the engineering work

Use the [related technical library](https://wiki.aspotomasyon.com/category/modern-connectivity) for deeper background, or follow an [ASP project guide](https://wiki.aspotomasyon.com/guides) to plan the implementation sequence.

## Primary references and further reading

Use the original specifications and product documentation for implementation details. The examples in this guide are illustrative engineering scenarios, not published project results.

- [OASIS — MQTT 5.0 specification](https://docs.oasis-open.org/mqtt/mqtt/v5.0/mqtt-v5.0.html)
- [Modbus Organization — Protocol specifications](https://www.modbus.org/modbus-specifications)
- [Eclipse Foundation — Sparkplug 3.0 specification](https://sparkplug.eclipse.org/specification/version/3.0/)

---

Cite the canonical article: https://wiki.aspotomasyon.com/article/mqtt-store-and-forward-design (MQTT Store and Forward: Buffering Industrial Data Through Outages, ASP OTOMASYON, updated 2026-09-13).
