ADR 0007 — Retry Schedule and Auto-Disable Defaults
Status: Accepted
Context
Section titled “Context”Retry policy is the heart of a delivery system’s operational behavior. Too aggressive hammers struggling receivers; too lazy makes webhooks feel unreliable; unbounded retries turn dead endpoints into permanent load.
Svix’s production-proven defaults are the de-facto industry baseline: attempts at 0s, 5s, 5m, 30m, 2h, 5h, 10h (≈17.5 hours of coverage), then dead-letter; endpoints failing consistently for multiple days get disabled.
Decision
Section titled “Decision”- Default retry schedule
["0s", "5s", "5m", "30m", "2h", "5h", "10h"]— Svix-compatible on purpose: it covers transient blips (5s), deploys (5m/30m), and outages (hours) with only 7 attempts, and anyone migrating from Svix keeps identical behavior. Fully configurable per dispatcher (retrySchedule), with ±10% jitter on every delay so synchronized failures don’t retry in lockstep. - Exhaustion = dead-letter (
status: "failed"), never silent drop: visible in the UI, replayable viaretryDelivery/recoverEndpoint, offloadable via thedelivery.exhaustedhook event. - Auto-disable endpoints whose every attempt has failed for 5 consecutive days (any success clears the streak; configurable via
autoDisable: { failingForDays }, orfalseto opt out). Matches Svix’s disable window, keeps dead endpoints from consuming the retry budget forever, and emitsendpoint.auto-disabledso hosts can notify the customer. - Deliveries to manually or auto-disabled endpoints are held, not failed — re-enabling resumes them.
Consequences
Section titled “Consequences”- Migrations from Svix keep operational muscle memory.
- A dead endpoint costs at most
schedule.lengthattempts per message for at mostfailingForDaysdays. - Jitter makes exact retry times non-deterministic by design; tests assert bounds, not instants.