Everybody Retries at Once: Backoff, Jitter, and the Synchronized Herd
Here is a failure that looks like a capacity problem and is really a timing problem. A node is briefly unavailable — it restarted, it paused, a switch dropped a link for a moment — and a large population of clients all receive an error within the same narrow window. Each client is well-behaved: it waits a moment and retries, and if the retry fails it waits longer and retries again, doubling the delay each time. This is exponential backoff, it is the textbook answer, and on its own it is not enough.
The trouble is that every client in that population failed at the same time and is running the same backoff schedule, so they do not just retry — they retry in unison. One second after the blip, all thousand clients retry at once. If that wave fails or the node is still warming up, two seconds later all thousand retry again, together. The backoff is working in the sense that each client is making fewer attempts over time, but the attempts are stacked into synchronized spikes, and a spike of a thousand simultaneous requests against a node that just came back is often enough to knock it down again. The herd never disperses; it just arrives less often, in the same tight clump.
That clump is the whole problem, and it is why backoff without jitter can turn a half-second blip into a rolling outage. The clients have accidentally formed a distributed clock, all ticking in phase, and every tick lands on the same target at the same moment. What you want instead is for the same total number of retries to arrive spread out — a steady trickle the recovering node can absorb rather than a wall it cannot. The way you get there is to deliberately desynchronize the clients, and the tool for that is jitter.
Jitter breaks the phase lock
Jitter is randomness added to the backoff delay so that two clients which failed at the same instant do not retry at the same instant. Instead of sleeping for exactly base × 2^attempt, a client sleeps for a randomized amount drawn from a window related to that value. The expected delay is similar, so the backoff still grows and the average retry rate still falls — but the clients are no longer in phase, and their retries smear across the interval rather than piling onto a single point. The recovering node sees a distribution instead of a spike.
The effect is dramatic because the spike height, not the total count, is what overwhelms a server. A thousand retries spread uniformly over a two-second window is a few hundred requests per second — ordinary load. The same thousand retries delivered in a single millisecond is an instantaneous wall that blows through any queue. Jitter does not reduce how many retries happen; it reduces how many happen at the same moment, and that is the number that decides whether the node survives the retry wave.
The standard strategies
There are a handful of well-known ways to add jitter, popularized by an AWS analysis of the problem, and they differ in how aggressively they spread the herd.
delay = base * 2^attempt // the undithered target, capped at `cap`
// No jitter — the synchronized herd. Avoid under correlated failures.
sleep = min(cap, delay)
// Full jitter — pick anywhere in [0, delay]. Best spread; the usual default.
sleep = random(0, min(cap, delay))
// Equal jitter — keep half as a floor, randomize the other half.
var t = min(cap, delay);
sleep = t/2 + random(0, t/2)
// Decorrelated jitter — climb off the PREVIOUS sleep, not the attempt count.
sleep = min(cap, random(base, prevSleep * 3))
Full jitter — a uniform draw between zero and the backoff target — gives the widest, flattest spread and is the right default for a thundering herd, because it makes two clients' delays as independent as possible. Equal jitter keeps a floor of half the target so a client never retries too eagerly, trading some spread for a guarantee that the delay keeps growing; it is a reasonable choice when you want the backoff to stay visibly exponential. Decorrelated jitter bases each sleep on the previous sleep rather than the attempt number, which both spreads the herd and lets the delay wander upward quickly, and tends to minimize total completion time under contention. All of them cap the delay at a ceiling so backoff never grows to minutes, and all of them beat no jitter by a wide margin the moment failures are correlated.
The reconnect case is the same shape in a different costume. When a server restarts, every client that was connected to it tries to reconnect, and if they all reconnect immediately — or all on the same fixed timer — the restart is greeted by a connection storm that can prevent it from coming up at all. Jittering the reconnect delay spreads that storm exactly as it spreads a retry wave, which is part of what lets a transport layer heal itself without a flood: a client that notices its connection dropped waits a randomized moment before redialing, so a thousand clients redial across a window instead of in an instant.
Jitter is necessary, not sufficient
Spreading the herd keeps a recovering node from being spiked back down, but it does nothing about the deeper hazard: retries add load, and under a real overload the extra load is exactly what you cannot afford. If the system is not briefly blipping but genuinely saturated, every client politely backing off with full jitter is still, in aggregate, piling more work onto a system that is already underwater — a classic metastable failure that jitter alone will not break, because the problem is the volume of retries, not their timing.
So jitter belongs in front of the same safeguards that bound retry volume. Cap the number of attempts, so a doomed request gives up instead of retrying forever. Run retries against a budget — allow retries to be only a small fraction of total traffic and shed them once that fraction is exceeded — so a widespread failure cannot multiply into a retry storm no matter how well-spread it is. And where a dependency is clearly down, a circuit breaker should stop the retries at the source rather than spreading them nicely across time. Jitter decides when the retries land; the budget decides whether they should be sent at all, and you need both. Retries during ownership churn lean on the same combination: spread them so they do not synchronize, and bound them so they do not amplify.
Wrap-up
Plain exponential backoff lowers the rate of retries but leaves a correlated population retrying in lockstep, so the load arrives as synchronized spikes that re-overload a node at the worst possible moment and keep a brief blip alive as a rolling outage. Jitter fixes it by randomizing the delays so the herd smears across time into a trickle the recovering node can absorb — full jitter for the widest spread and the usual default, equal jitter when you want a growing floor, decorrelated jitter to spread and climb at once, always under a delay cap, and the same randomization on reconnect to defuse connection storms. But timing is only half the story: jitter keeps retries from clumping, and it must sit in front of attempt caps, retry budgets, and circuit breakers that keep retries from multiplying, because a well-spread retry storm is still a retry storm. Spread them so they do not collide; bound them so they do not amplify — and a half-second blip stays a half-second blip.