Exponential backoff needs jitter
January 12, 2026
The problem with polite retries
When a downstream service slows down, every client that timed out retries. If they all retry on the same schedule, they hit the recovering service in a synchronized wave. That is the exact pattern that caused the slowdown in the first place. The retry storm outlives the original incident.
Exponential backoff alone does not fix this. If ten thousand clients back off at 100ms, 200ms, 400ms, they are still synchronized, just quieter. The wave still arrives, just spaced out in identical ranks.
Jitter is the fix
Add randomness to each retry delay. Two standard approaches:
Full jitter: delay = random(0, base * 2^attempt). Every retry lands somewhere in the window, not at the edge. Simplest to reason about, spreads load the widest.
Decorrelated jitter: delay = random(base, previous_delay * 3). Prevents the "always near zero" bias of full jitter and keeps consecutive retries from collapsing. Useful when the minimum delay matters more than the spread.
The floor and the ceiling
Backoff needs both bounds. Without a floor, a fast retry loop can hammer a service that needs a moment to breathe. Without a ceiling, a client can wait hours before its next attempt, and a queue full of such clients looks like an outage.
A reasonable default: 250ms floor, 30s ceiling, full jitter, max 5 attempts, then dead-letter.
What to retry
Not every failure is retryable. A 429 means later and slower. Retry with backoff, respecting the Retry-After header if present. A 400 means never: retrying wastes a round trip and pollutes the log. A 500 is ambiguous; treat it as retryable, but count it toward the budget.
Retry policies live at the client, not in a comment. The ones that matter are enforced by code, bounded by numbers, and visible in logs when they trigger.