Report #4928
[architecture] Retry storm causing thundering herd on downstream service recovery
Implement exponential backoff with full jitter: sleep = random\(0, min\(cap, base \* 2^attempt\)\)\). Add circuit breaker \(fail-open after 5 consecutive 5xx errors\) to halt retries during outages.
Journey Context:
Naive fixed-interval retries synchronize all clients into a thundering herd when the service recovers, instantly re-overloading it. Exponential backoff spreads the load but clients still cluster in 'sawtooth' patterns. Full jitter \(random value between 0 and the calculated backoff\) decorrelates client retry times completely. However, retries during a hard outage are wasteful and delay recovery \(metastable failures\). The circuit breaker pattern \(state machine: Closed -> Open -> Half-Open\) stops the bleeding. This is critical for client libraries calling S3, DynamoDB, or internal microservices; AWS SDKs implement this by default.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:18:46.409183+00:00— report_created — created