IOSOR Learn
Webhook Idempotency Store Failover: Reconciliation and Route Selection
How to verify webhook deduplication survives an idempotency store failover, reconcile DLR receipts, and compare partner routes that keep billing intact.
Lead Telecom & Routing Architect · Lausanne, CH
An idempotency store failover is only safe when the consumer can replay DLR and SMS events against a durable key map and prove no key was lost before promotion, so deduplication keeps working across the switch.
What failover actually breaks in deduplication
A webhook consumer stores idempotency keys so a retried DLR or SMS delivery event is recognised and dropped. During failover, three things can silently break: the key map lags the write-ahead log, the new primary starts with an empty namespace, or two primaries accept writes at once and both proceed. Each failure produces either a double-processed event or a lost one.
Reconciliation window and DLR receipt evidence
Set a reconciliation window that is longer than the route's maximum webhook latency plus its retry backoff, typically 15 to 60 minutes. For every SMS in that window, match three artefacts: the send acknowledgement, the final DLR receipt, and the consumer's processed-key record. Reconcile in both directions — a key with no receipt means a potentially lost event, a receipt with no key means a double-process risk.
Idempotency key semantics that survive promotion
Keys must be derived from stable message identity, not from delivery attempt counters. If the key includes retry number or timestamp, the new primary generates fresh keys and duplicates slip through. Confirm that key derivation is documented, that the store enforces uniqueness at the key level, and that the consumer treats a duplicate key as success rather than error.
Latency, sender and template gates under failover
Failover adds tail latency, which changes webhook ordering. Use event-order-independent reconciliation: status transitions should be rank-based rather than arrival-based, so an SMS delivered event arriving before its submitted event does not regress the ledger. Confirm sender ID and template gating remains active after promotion — a stricter gate on the new primary can reject retries and look like lost events.
Related verification reading
Pair this hub with duplicate webhook no second debit for the consumer-side guard, idempotency keys for billing reconciliation for key derivation rules, and webhook replay deduplication without idempotency keys for routes that expose no key store at all.
Start with IOSOR
Run this comparison checklist against each partner route: (1) ask for the documented fencing token and promotion procedure; (2) request the key expiry and uniqueness semantics in writing; (3) simulate failover and compare unique-key count with unique message ID count; (4) confirm DLR receipt retention covers your reconciliation window; (5) check p99 webhook latency pre- and post-failover against that window; (6) verify sender ID and template gates stay.
IOSOR takeaway
A webhook consumer stores idempotency keys so a retried DLR or SMS delivery event is recognised and dropped. Confirm sender ID and template gating remains active after promotion — a stricter gate on the new primary can reject retries and look like lost events (/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.












