Cluster 14 · Enterprise Compliance · SLA · DLQ · Audit

SOC 2 & Enterprise B2B Webhook SLA, 429 Retry-After & Dead-Letter Queue Standard

Design an enterprise-grade outbound & inbound webhook SLA satisfying SOC 2 CC7.1/CC7.3/A1.2 reviews: HMAC-SHA256 signing, 300s replay defense, RFC RateLimit-* headers, exponential backoff + jitter, and 14-day DLQ replay.

100% Browser-Side · WebCrypto crypto.subtle · Strict CSP

3. Exponential Backoff & DLQ Retry Calculator

Jitter + SLA Sizing
Retry & DLQ Policy JSON (webhook-dlq-policy.json)
{
  "schema": "https://webhook.runglab.dev/schemas/sla-retry-policy/v1",
  "deliveryTimeoutMs": 5000,
  "maxAttempts": 11,
  "backoff": {
    "strategy": "exponential",
    "baseDelaySec": 60,
    "multiplier": 3,
    "maxDelaySec": 86400,
    "jitter": "equal"
  },
  "slaTargetHours": 72,
  "expectedTotalSpanSec": 324780,
  "dlq": {
    "enabled": true,
    "retentionDays": 14,
    "replayOnFix": true,
    "alertAfterDlqDepth": 10
  }
}
Expected Time to DLQ
3d 18h 13m
MEETS 72h SLA (3d 18h 13m span)
Daily Retry Load & DLQ Alert
5,500 req/day (Alert >= 10)
11x amplification on failing webhooks
Attempt Wait Band Elapsed Queue / DLQ Action
#1 Immediate 0s (initial) Initial POST delivery (enforce timeout <= 5s)
#2 45s – 1m 15s 1m Exponential retry (preserve original Idempotency-Key)
#3 2m 15s – 3m 45s 4m Exponential retry (preserve original Idempotency-Key)
#4 6m 45s – 11m 15s 13m Exponential retry (preserve original Idempotency-Key)
#5 20m 15s – 33m 45s 40m Exponential retry (preserve original Idempotency-Key)
#6 1h – 1h 41m 2h 1m Exponential retry (preserve original Idempotency-Key)
#7 3h 2m – 5h 3m 6h 4m Exponential retry (preserve original Idempotency-Key)
#8 9h 6m – 15h 11m 18h 13m Exponential retry (preserve original Idempotency-Key)
#9 18h – 1d 6h 1d 18h 13m Capped backoff interval (retry with Idempotency-Key)
#10 18h – 1d 6h 2d 18h 13m Capped backoff interval (retry with Idempotency-Key)
#11 18h – 1d 6h 3d 18h 13m Final retry -> route to Dead-Letter Queue (DLQ) & page/alert on-call
SLA & DLQ Runbook (Markdown)
# Webhook Delivery SLA & DLQ Retry Runbook
- **Attempts**: 11 total deliveries (1 initial + 10 retries)
- **Backoff Curve**: `60s × 3^n` capped at `1d` with `equal` jitter
- **Expected Time to DLQ**: **3d 18h 13m** (Target SLA: 72h — MEETS SLA)
- **Per-Request Timeout**: `5s` (respond 2xx immediately & offload work to queue)
- **Daily Retry Traffic (500 failing events/day)**: 5,500 delivery attempts/day (11x amplification)
- **DLQ Escalation Trigger**: Alert if DLQ depth >= 10 events/day or age > 72h

| Attempt | Wait Interval | Cumulative Elapsed | Behavior |
| :--- | :--- | :--- | :--- |
| #1 | Immediate | 0s (initial) | Initial POST delivery (enforce timeout <= 5s) |
| #2 | 45s – 1m 15s | 1m | Exponential retry (preserve original Idempotency-Key) |
| #3 | 2m 15s – 3m 45s | 4m | Exponential retry (preserve original Idempotency-Key) |
| #4 | 6m 45s – 11m 15s | 13m | Exponential retry (preserve original Idempotency-Key) |
| #5 | 20m 15s – 33m 45s | 40m | Exponential retry (preserve original Idempotency-Key) |
| #6 | 1h – 1h 41m | 2h 1m | Exponential retry (preserve original Idempotency-Key) |
| #7 | 3h 2m – 5h 3m | 6h 4m | Exponential retry (preserve original Idempotency-Key) |
| #8 | 9h 6m – 15h 11m | 18h 13m | Exponential retry (preserve original Idempotency-Key) |
| #9 | 18h – 1d 6h | 1d 18h 13m | Capped backoff interval (retry with Idempotency-Key) |
| #10 | 18h – 1d 6h | 2d 18h 13m | Capped backoff interval (retry with Idempotency-Key) |
| #11 | 18h – 1d 6h | 3d 18h 13m | Final retry -> route to Dead-Letter Queue (DLQ) & page/alert on-call |
WebhookSLA Guard · Live Check $29 WebhookSLA Guard Kit

Verify Live Webhook Replay Defense, 429 Retry-After & DLQ SLA Readiness

Run a live webhook endpoint & SLA audit on WebhookSLA Guard (webhook.runglab.dev), grab the turnkey $29 WebhookSLA Guard Kit (WebCrypto HMAC verifiers, replay-window store, RFC RateLimit-* middleware & DLQ runbooks) on Creem, or audit webhook OpenAPI specs on SpecDiff (spec.runglab.dev). Need a PayPal invoice? Email [email protected].

Webhook SLA, Signature & Retry Specification Matrix

Control / Header Production Baseline Reliability & Security Rationale
Cryptographic Auth HMAC-SHA256 + Timestamp <= 300s Mandatory for SOC 2 CC6.1/CC6.6 webhook integrity and replay defense
Backpressure & Fairness HTTP 429 + RateLimit-* + Retry-After Prevents noisy-neighbor retry storms from degrading multi-tenant availability (A1.1)
Retry & Jitter Standard Exponential + Equal/Full Jitter (24h–72h) Eliminates synchronized thundering-herd spikes across failed tenant endpoints
Dead-Letter Queue (DLQ) 14-day retention + Alert + Manual Replay Satisfies SOC 2 CC7.3/A1.2 zero-silent-data-loss and incident recovery evidence

Enterprise Outbound Webhook SLA Policy (Markdown)

webhook-sla-policy.md
# Enterprise Webhook Delivery SLA & Security Standard
- **Authentication**: All deliveries signed with HMAC-SHA256 (`t=<unix>,v1=<hex>`); 300s replay window enforced.
- **Delivery Timeout**: 5s connection + response timeout; customers must return 2xx and process asynchronously.
- **Retry Schedule**: 8 attempts over 24 hours (15s base, 3x exponential multiplier, 6h cap, equal +/-25% jitter).
- **Rate-Limit Etiquette**: Honors `429` / `503` `Retry-After` and IETF `RateLimit-Policy` / `RateLimit` headers.
- **Dead-Letter Queue (DLQ)**: Undelivered events retained for 14 days with webhook owner alerting and 1-click replay.

SOC 2 Webhook SLA Verification Checklist

soc2-webhook-checklist.txt
[PASS] HTTPS-only webhook destinations (TLS 1.2/1.3, SSRF private-IP egress block)
[PASS] Raw-body HMAC-SHA256 verification via constant-time comparison
[PASS] Timestamp replay window <= 300s + Delivery ID idempotency cache
[PASS] HTTP 429 responses include RFC 9110 Retry-After & RateLimit-Policy
[PASS] Exponential backoff with jitter + 14-day DLQ & on-call alerting

Implementation Steps & Key Insights

  1. Document exact retry counts, backoff caps, jitter strategy, and DLQ retention in your customer-facing Webhook SLA docs.
  2. Enforce SSRF-hardened HTTPS-only outbound webhook URLs alongside constant-time inbound HMAC verification.
  3. Honor upstream `Retry-After` headers on outbound dispatchers and emit `RateLimit-*` + `Retry-After` on inbound receivers.
  4. Verify live compliance posture via `https://webhook.runglab.dev` ($29 WebhookSLA Guard Kit) and `https://trust.runglab.dev`.
  • Enterprise FinTech and B2B buyers routinely ask during SOC 2 / VSAQ reviews: 'What happens when our webhook receiver goes down for 4 hours?' — a documented exponential schedule + 14-day DLQ answers this decisively.
  • Adding Full or Equal Jitter prevents 10,000 queued tenant retries from firing at the exact same second after a brief outage.
  • Pair Cluster 14's Webhook SLA Runbook with Cluster 13 (`/soc2-trust-center/`) and `https://webhook.runglab.dev` to close enterprise security reviews faster.

Common Production Pitfalls

  • Retrying webhooks in a tight fixed loop (e.g. every 5s) that self-DDoSes your customer's recovering API.
  • Silently dropping failed webhook payloads after 3 attempts with zero DLQ or customer notification.
  • Allowing `http://` or RFC 1918 private IPs (`127.0.0.1`, `169.254.169.254`) in customer-supplied webhook URLs.
Ship Faster: Audit your live endpoint on webhook.runglab.dev or grab the $29 WebhookSLA Guard Kit.

More Enterprise Webhook SLA & Signature Guides

← Back to Webhook SLA Kit Hub · WebhookSLA Guard ($29 Kit) → · SpecDiff OpenAPI Audit → · Cluster 7B: CORS & HMAC → · Cluster 9: OpenAPI OWASP →

Frequently Asked Questions

How long should a B2B SaaS retain failed webhook payloads in a DLQ?

7 to 14 days is standard for B2B SaaS so customers can recover from weekend or certificate outages without losing billing/audit events.

Why do enterprise security reviewers check for jitter in webhook retry schedules?

Deterministic fixed-delay retries create synchronized thundering herds when an outage ends; jitter spreads retry waves smoothly across time.

What is included in the $29 WebhookSLA Guard Kit?

Production WebCrypto verifiers, replay-window guards, RFC RateLimit-* / Retry-After middleware, exponential backoff + DLQ specs, and live endpoint SLA checks at https://webhook.runglab.dev.