IOSOR Learn
Webhook Delivery Attempt Exhaustion Policy Design
Defines retry limits, backoff curves, and dead-letter criteria for failed webhook events to ensure consistent handling across providers before partner route comparison.
Lead Telecom & Routing Architect · Lausanne, CH
A clear exhaustion policy caps retry attempts, applies exponential backoff with jitter, and routes permanently failed events to a dead-letter queue for audit before triggering the Decision Brief partner comparison.
Retry Limit and Attempt Counting
Set a maximum of five delivery attempts per event. Count only attempts that reach the consumer endpoint; network-level TCP failures before TLS handshake do not increment the counter. Persist attempt number, timestamp, and HTTP status in the event log for correlation with DLR receipts. Enforce a hard cap of 100 attempts per minute per partner route to prevent consumer overload. Verify webhook signatures using HMAC-SHA256 with the shared secret before processing any payload. Handle edge cases where the consumer closes the connection mid-response by treating it as a failed attempt and incrementing the counter.
Backoff Curve and Jitter
Use exponential backoff starting at 30 seconds: 30 s, 60 s, 120 s, 240 s, 480 s. Add ±15 % jitter to each interval to prevent thundering-herd retries across partners. Cap total elapsed retry window at 20 minutes so stale events move to dead-letter promptly. If a 429 Too Many Requests is received, extend the next backoff by 2x and respect the Retry-After header if present. For clock-skewed consumers, normalize timestamps using UTC before applying backoff calculations.
Dead-Letter Criteria and Payload Preservation
Move an event to dead-letter after the fifth failed attempt or when the consumer returns 4xx (except 429) indicating a permanent contract violation. Preserve the original JSON payload, all response headers, and the full retry timeline. Tag each dead-letter record with the originating partner route ID for later comparison. Store dead-letter records for 30 days with encryption at rest. If the dead-letter queue itself is unreachable, write to a local overflow buffer and flush once connectivity is restored.
Consumer-Side Idempotency and Deduplication
Require consumers to acknowledge within 10 s with 2xx. Treat missing or non-2xx as failure. Consumers must deduplicate using the event-id header; redelivery of the same event-id after acknowledgment is a protocol error and should be logged but not retried.
Monitoring, Alerting, and SLA Tie-In
Emit metrics: attempts_total, dead_letter_total, retry_latency_p95 per partner route. Alert when dead-letter rate exceeds 0.5 % over a 15-minute window. Correlate with DLR receipt latency and sender/template gate rejections to isolate root cause before escalation.
Start with IOSOR
Use the Decision Brief to compare verified partner routes for your channel and corridor. Check each route's retry honors, backoff compliance, and dead-letter export format against the policy above. Validate DLR receipt correlation, webhook latency percentiles, and sender/template gate behavior before committing traffic.
- Webhook Retry Backoff and Dead Letter.
- Webhook Batch Acknowledgment and Partial Failure Handling.
- Webhook Consumer Poison Message Quarantine Recovery.
IOSOR takeaway
Set a maximum of five delivery attempts per event. Correlate with DLR receipt latency and sender/template gate rejections to isolate root cause before escalation (/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.












