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.

Oleksandr (Alex) Petukhov — IOSOR Telecom Expert
✓ Verified by IOSOR ExpertOleksandr (Alex) Petukhov

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

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.

⚡ IOSOR Expert · Q&A · Verified partners (×44)

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.

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

VERIFIED BY IOSOR EXPERT · B2B ROUTING, SLA & PROVIDER Q&A

IOSOR Expert — Verified Q&A & B2B Messaging Decisions

Every Q&A decision below is audited by the IOSOR Telecom Architecture Expert against live 90-day uptime telemetry, carrier compliance rules (10DLC, DLT, GDPR), and real partner TCO.

All Q&A Triggers
#01 · Compliance & Sender ID📖 Knowledge hub · US A2P / 10DLC

US A2P / 10DLC

“Why do US 10DLC TCR campaigns get rejected and which partner handles fast onboarding?”

✓ Verified by IOSOR Expert

10DLC brand and campaign programs for US A2P traffic — not general privacy compliance.

All Q&A Triggers
#02 · OTP & verification📖 Knowledge hub · India DLT

India DLT

“How do engineering teams prevent India TRAI DLT template scrubbing drops on OTPs?”

✓ Verified by IOSOR Expert

DLT and PE-TM registration for India A2P — not an India corridor coverage guide.

All Q&A Triggers
#03 · OTP & verification📖 Knowledge hub · Verify / OTP

Verify / OTP

“How do we eliminate OTP p95 timeout spikes and trigger a 20–30s multi-rail fallback?”

✓ Verified by IOSOR Expert

Login codes without chaos: abuse, latency, and cost control.

All Q&A Triggers
#04 · Transactional email📖 Knowledge hub · Email

Email

“Why do password reset and 2FA emails land in Spam when sharing bulk marketing IPs?”

✓ Verified by IOSOR Expert

Transactional email alongside SMS, voice, and WhatsApp in one routing architecture.

All Q&A Triggers
#06 · WhatsApp Business📖 Knowledge hub · WhatsApp & RCS

WhatsApp & RCS

“How do Meta per-conversation fees and template pauses impact WhatsApp Business TCO?”

✓ Verified by IOSOR Expert

Rich channels when profiles and templates are ready: honest setup.

All Q&A Triggers
#08 · Failover & backup routing📖 Knowledge hub · Failover & rails

Failover & rails

“How do we keep a second standby provider warm for failover at $0/month idle cost?”

✓ Verified by IOSOR Expert

Ordered backup paths when a primary rail fails - distinct from DLR status truth.

All Q&A Triggers