HyperOS Systems All articles
Enterprise Integration

The Backlog You Never Rehearsed: Evidencing Broker Retention and Replay as Controls

HyperOS Systems
The Backlog You Never Rehearsed: Evidencing Broker Retention and Replay as Controls

Photo: Earthranger, CC BY-SA 3.0, via Wikimedia Commons

Most integration estates are designed around a single comforting assumption: the queue will hold. Messages pile up during a supplier incident, a batch load overruns, or a regional failover, and the broker absorbs the shock. Nothing appears in the status page. Nothing pages anyone at 03:00. The pressure simply accumulates in a topic, and the organisation continues to believe it is resilient because no consumer has yet fallen far enough behind to matter.

That belief deserves scrutiny. A broker backlog is not a buffer in the abstract; it is a stored liability with a shelf life. Once the retention window closes, the liability is written off, and the integration quietly loses transactions it will never replay. Attesting that behaviour, before it becomes a board-level incident, is the subject here.

Backlog as a stored liability

Retention is a configuration value, and configuration values drift. A topic provisioned for seven days at design time may be running at seventy-two hours after a storage-constrained change, an upgrade, or a well-intentioned cost exercise. The operational consequence is not visible in the broker metrics most teams monitor. It only surfaces when a consumer has been offline for four days and the replay window has quietly expired beneath it.

Technology leaders should treat retention as a control with an owner, a stated value, and an evidential check. The check is straightforward: for each business-critical topic, record the configured retention, the volume implied at peak throughput, and the maximum tolerable consumer outage that retention can absorb. Where those three figures are inconsistent, you have an exposure that no uptime report will ever show you.

Three assumptions that expire without announcement

The first is the retention window itself, as above. The second is consumer throughput after recovery. A consumer that processes 800 messages a second in steady state will not necessarily sustain that rate when it is catching up on 40 million queued messages, particularly where downstream writes, rate-limited APIs or reference data lookups dominate the path. Catch-up capacity is usually lower than steady-state capacity, and the gap is rarely modelled.

The third assumption is dead-letter handling. Many estates route poison messages to a dead-letter queue and consider the matter closed. In practice the DLQ becomes an unowned filing cabinet: nobody inspects it, nobody replays it, and nobody can say how many business events have been parked there since the last review. A DLQ that is written to but never read is a data-loss mechanism with good intentions.

Measuring consumer lag with intent

Consumer lag is well understood as a metric and poorly understood as a control. The distinction is whether anyone has defined a threshold at which lag becomes an incident, and whether that threshold is derived from the retention window rather than from aesthetics.

A defensible approach sets lag thresholds at a fraction of the retention capacity, so that an alert fires while replay is still possible. Where retention absorbs six hours of peak volume, a warning at two hours of lag leaves four hours to act. That is a recoverable position. A warning at five and a half hours is a notification, not a control.

The threshold should be documented alongside the topic, the consumer group and the named owner. It should also be reviewed when throughput changes materially, because a threshold set against last year's volumes becomes progressively meaningless.

Rehearsing replay

An untested replay path is a hidden outage. The configuration may be correct, the tooling may exist, and the runbook may be well written, but none of that proves the path works against real message shapes under real time pressure.

A replay rehearsal should be scoped and scheduled rather than improvised during an incident. In a non-production environment that mirrors production schema, replay a defined batch into a consumer group, measure the achieved throughput, confirm ordering guarantees where they matter, and verify idempotency. Duplicate delivery is a normal property of most broker designs, so the question is not whether replays will duplicate but whether downstream systems tolerate it. That is an integration property, not a broker property, and it is frequently untested.

The rehearsal should also cover the partial case: what happens when replay is interrupted midway, and whether the consumer resumes from a committed offset or restarts. Resumption behaviour is where well-intentioned recovery turns into duplicate financial postings or repeated customer notifications.

Assembling the evidence

For a UK regulated estate, the evidence pack should be modest and repeatable rather than theatrical. It typically contains a register of business-critical topics with retention settings and derived lag thresholds; a record of the last replay rehearsal with throughput measured and idempotency confirmed; a DLQ review with volumes, ageing and disposition; and a named owner for each control with a review date.

That pack serves two purposes. Internally, it converts a background concern into something an operations forum can govern. Externally, it supports the operational resilience narrative that UK regulators now expect: that important business services can continue through disruption, and that the dependencies sustaining them are understood and tested rather than assumed.

A cadence that survives contact with reality

Quarterly review is usually sufficient for retention and thresholds, provided the review is triggered early by material change: a new high-volume integration, a broker upgrade, a storage tiering decision, or a supplier onboarding that alters peak traffic.

Replay rehearsals can be less frequent, but they should not be indefinitely deferred. Annual is a defensible minimum for stable estates; anything handling payments, regulatory reporting or customer-affecting state changes warrants twice yearly.

The underlying principle is simple. A broker is not a safety net by virtue of existing. It is a safety net when someone can demonstrate, with dated evidence, how much it can hold, how fast it can drain, and what happens to the messages that fall off the end.

All Articles

Related Articles

Counting What Survived: Reconciliation Evidence for Post-Failover Integration Estates

Counting What Survived: Reconciliation Evidence for Post-Failover Integration Estates

The Consent Layer Is a Control Layer: Auditing AI OAuth Grants in the SaaS Estate

The Consent Layer Is a Control Layer: Auditing AI OAuth Grants in the SaaS Estate

Open Paths, Closed Loop: Retiring Firewall Exceptions on a Quarterly Cycle

Open Paths, Closed Loop: Retiring Firewall Exceptions on a Quarterly Cycle