IOSOR Learn
Replaying Webhook Backlogs After a Partner Outage
How to drain a webhook backlog after a partner outage without double-posting ledger events, keeping ordering intact and comparing partner routes for replay capacity.
Lead Telecom & Routing Architect · Lausanne, CH
Drain the backlog by replaying only deliveries that never reached a terminal state, keyed by idempotency so nothing posts twice — and pick partner routes by verified replay-rate ceiling, not by headline price.
How to freeze the backlog before replay starts
Stop accepting new outbound attempts for affected channels first, then snapshot the delivery queue with its retry counters and timestamps. That snapshot is your replay boundary: everything older than the boundary is candidate backlog, everything newer goes through the normal live path. Record the partner cutover instant from the DLR feed so you can tell outage-window events from post-recovery traffic. Without this freeze, live retries race your replay sweep and you double-post ledger entries before deduplication can catch them.
Ordering rules when events arrive twice
A backlog is not a clean queue — it holds attempts that timed out mid-flight, so the partner may have delivered while your side recorded failure. Replay in original attempt order per recipient and per channel, and let deduplication on the event key suppress anything the partner already confirmed. Where ordering matters for ledger posting, hold the replay of dependent events until the earlier one resolves, and cap concurrency so the ordering window stays small.
Choosing partner routes when replay capacity is the bottleneck
Replay capacity, not steady-state throughput, decides route viability after an outage. Establish each route's sustained delivery rate ceiling and how it degrades under burst, since a backlog drains at the lower of your replay concurrency and the partner's accept rate. Compare cost bands only after you have the replay-rate figure, otherwise a cheaper route with a low burst ceiling stalls the sweep and inflates the outage.
Exhaustion policy before you sweep
Decide exhaustion behaviour before the replay starts. Attempts that already hit their retry limit inside the outage window should not silently reset their counters; either the exhaustion policy promotes them to a manual queue, or you requeue with an explicit, logged counter reset. Freeze a per-recipient cap so a single stuck destination cannot consume the replay budget and starve healthy traffic.
Rotating routes and reconciling after the sweep
If replay stalls on one route, cut over to a verified failover route for the remaining backlog rather than raising concurrency indefinitely. Rebalance consumers across routes so the sweep finishes at a predictable time, and re-run deduplication after the cutover — a route change can resurface keys that looked resolved. Close the incident only when every cancelled attempt in the backlog resolves to a deduplicated event, a DLR-backed delivery, or an exhaustion decision, never to a silent drop.
Start with IOSOR
Run the replay-capacity comparison before committing: open verified partner route comparison and check replay-rate ceilings, cost bands and DLR completeness for each route on your channel and corridor.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Stop accepting new outbound attempts for affected channels first, then snapshot the delivery queue with its retry counters and timestamps. Close the incident only when every cancelled attempt in the backlog resolves to a deduplicated event, a DLR-backed delivery, or an exhaustion decision, never to a silent drop (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Webhook Endpoint Health Probes and Failover Gate Verification
How to probe webhook endpoint health, set failover gates, and verify partner route readiness before committing SMS volume to a new channel.
- Webhook Retry Storm Control: Backoff and Jitter Policy Comparison
Compare retry backoff and jitter policies that stop synchronized webhook storms across partner routes while preserving DLR delivery SLAs and rate-limit headroom.
- Webhook Endpoint Failover: DNS Cutover Gates for Partner Route Comparison
Decide when to fail over webhook ingestion across regions or providers without losing events, duplicating debits, or breaking signature validation.












