IOSOR Learn
Dead Letter Queue DLR Recovery Verification Playbook
Verify failed DLRs are captured, replayed, and reconciled without duplicates before trusting route health metrics; compare partner DLQ tooling via Decision Brief.
Lead Telecom & Routing Architect · Lausanne, CH
Engineers must confirm every failed DLR lands in the DLQ, is replayed exactly once, and reconciles against the original debit before route health metrics are trusted. This playbook covers capture guarantees, idempotent replay, duplicate detection, and partner tooling comparison via Decision Brief.
1. DLQ Capture Guarantees
Configure webhook endpoints to return 2xx only after persisting the DLR payload to durable storage. Any non-2xx or timeout must trigger automatic DLQ placement with full context: message-id, corridor, template-id, carrier-code, timestamp, and retry-count. Validate capture rate daily by cross-referencing debit records against DLQ ingestion logs; target 100% capture with zero silent drops.
2. Idempotent Replay Mechanics
Replay consumers must read from the DLQ, transform payloads to the current schema, and re-emit to the primary DLR processor using the original message-id as the deduplication key. Implement exactly-once semantics via a processed-idempotency table keyed on message-id plus replay-epoch. Reject any replay that finds an existing row; log conflicts for audit. Measure replay latency p99 < 30 s from DLQ write to processor ack.
3. Duplicate Detection & Reconciliation
Run a nightly reconciliation job that joins debit ledger, primary DLR store, and DLQ replay log on message-id. Flag three anomaly classes: (a) debit without any DLR, (b) multiple DLRs for one debit, (c) DLR status mismatch between primary and replay paths. Auto-resolve class (a) via replay; escalate (b) and (c) to on-call with full context. Maintain a rolling 30-day duplicate rate < 0.01%.
4. Partner DLQ Tooling Comparison
Not all partners expose DLQ APIs, replay triggers, or visibility into capture latency. Use the Decision Brief to compare verified routes on: DLQ SLA (capture-to-visibility), replay API availability, idempotency guarantees, and reconciliation webhook support. Filter by corridor and channel to shortlist partners that meet your durability threshold.
5. Related Observability Guides
Replay consumers must read from the DLQ, transform payloads to the current schema, and re-emit to the primary DLR processor using the original message-id as the deduplication key. Implement exactly-once semantics via a processed-idempotency table keyed on message-id plus replay-epoch.
DLR Webhook Replay Gap Detection · DLR Webhook Idempotency at Scale · Circuit Breaker Telemetry During Failover.
Start with IOSOR
Open the Decision Brief to compare verified partner routes for your corridor: Compare DLQ Tooling. Run the reconciliation job, confirm duplicate rate < 0.01%, then promote the route to primary.
IOSOR takeaway
Configure webhook endpoints to return 2xx only after persisting the DLR payload to durable storage Filter by corridor and channel to shortlist partners that meet your durability threshold (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Webhook Fanout Failure Isolation: Auditing Partial Delivery Blast Radius
Isolate DLR webhook fanout blast radius per endpoint, verify partial delivery scope, and compare partner routes before a single degraded consumer becomes systemic.
- Telemetry Sampling Bias in Delivery Rate Estimation
How sampled DLR and webhook telemetry skews delivery-rate estimates, and how to validate sampling assumptions across partner routes before trusting dashboards or SLA credits.
- Telemetry Gap Attribution During Provider Maintenance Windows
Separate planned telemetry silence from real SMS delivery failures during provider maintenance, then decide whether to reroute or hold using DLR and webhook evidence.












