IOSOR Learn
Partial Delivery Retry Gates for Carrier SMS MT DLR
Define retry policies for partially delivered messages across carriers to prevent duplicate sends and cost leakage, then compare partner DLR handling in the Decision Brief.
Lead Telecom & Routing Architect · Lausanne, CH
Engineers must classify partial DLR states — buffered, expired, unknown — and bind retry gates to carrier-specific finality windows so that only truly undelivered segments re-enter the queue. This prevents duplicate MT submissions and cost leakage while preserving idempotency keys across partner routes.
Carrier Finality Window Mapping
Map each carrier's DLR finality timestamp: buffered states expire at T+24h for Tier-1, T+48h for Tier-2, and T+72h for aggregator hops. Store the earliest finality per message_id in a Redis sorted set keyed by corridor. Reject any retry request before the window closes; this eliminates premature re-sends that inflate MRC and distort delivery rates.
Partial State Taxonomy & Idempotency Keys
Tag every DLR receipt with a deterministic enum: DELIVERED, EXPIRED, REJECTED, UNKNOWN, BUFFERED. Generate idempotency keys as SHA256(message_id|segment_seq|carrier_code|attempt_epoch). Persist keys for 30 days with TTL aligned to the longest finality window. The retry gate checks key existence before enqueue; a hit returns 409 without touching the partner API.
Webhook Latency & Ordering Guarantees
Require partners to POST DLRs within 500 ms p99 per segment. Deploy a sequencing buffer that reorders out-of-sequence receipts using the segment_seq field. Drop webhooks older than the finality window — they indicate partner clock drift or replay attacks. Log latency histograms per corridor; alert when p99 exceeds 1 s for two consecutive 5-min windows.
Sender & Template Gate Alignment
Bind retry eligibility to the original sender_id and template_hash verified at submit time. If a carrier rejects a segment due to template mismatch, the gate marks the entire message_id as TERMINAL — no partial retry. This prevents template drift loops where corrected segments retry against stale sender registrations.
Cost Leakage Guardrails & Observability
Instrument a cost counter per message_id that increments on every partner API call. Cap retries at 3 per segment with exponential backoff (15 s, 60 s, 300 s). Emit a structured log event on each gate decision: ALLOW, DENY_WINDOW, DENY_IDEMPOTENT, DENY_COST_CAP. Dashboard the denial reasons by corridor; investigate DENY_COST_CAP spikes within 15 min.
Start with IOSOR
Compare verified partner routes for your corridor at Decision Brief and apply the retry gates above. Cross-reference reconciliation logic at Carrier SMS MT DLR Partial Delivery Reconciliation Gates, timestamp alignment at Carrier SMS MT DLR Partial Delivery Timestamp Alignment Audit, and idempotency gates at Carrier SMS MT DLR Retry Idempotency Gates.
IOSOR takeaway
Map each carrier's DLR finality timestamp: buffered states expire at T+24h for Tier-1, T+48h for Tier-2, and T+72h for aggregator hops. Dashboard the denial reasons by corridor; investigate DENY_COST_CAP spikes within 15 min (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Embedded Route Fallback Destination Weighting: Audit and Comparison Gates
Audit how fallback destinations are weighted across embedded routes, catch silent weight drift, and decide when to rebalance or renegotiate before volume shifts.
- Embedded Route Sandbox-to-Production Promotion Gates
How to decide an embedded SMS, voice, or email route is safe to promote: verify sandbox DLR receipts, schemas, credentials, and quotas transfer to live traffic.
- Embedded Route Cost-Band Quote Drift: Verify Before You Commit Volume
Prove partner-quoted per-route cost bands still hold after destination mix, encoding, and volume-tier shifts before you sign embedded messaging volume.












