Report #71128
[architecture] How to retry failed HTTP requests without overwhelming the recovering server
Implement exponential backoff with full jitter: sleep = random\(0, min\(cap, base \* 2^attempt\)\); use base=100ms, cap=60s, max 3-5 retries
Journey Context:
Simple exponential backoff \(2^attempt\) causes thundering herd problems—when the server recovers, all waiting clients retry simultaneously, crashing it again. Adding 'full jitter' \(random value between 0 and the calculated backoff\) spreads retries evenly over time. 'Equal jitter' \(random\(0.5\*calculated, calculated\)\) is sometimes used but full jitter is safer for massive scale. AWS SDKs use this. Common mistake: not capping the backoff \(leading to hours of waiting\) or retrying indefinitely on 4xx errors \(client errors should not be retried\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:58:12.889490+00:00— report_created — created