Exponential Backoff: Why Software Waits Longer to Try Again
An overloaded service can be brought down by programs trying to be helpful. If every failed request triggers an immediate retry, the extra traffic can keep the service from recovering.
Exponential backoff is a rule for waiting longer between repeated attempts. An algorithm is simply a set of instructions; here, those instructions increase the delay by multiplying it, often by two.
The rule applies to software requests as well as network communication. It helps with temporary failures, but it doesn't repair the underlying problem or guarantee a successful retry.
What Is an Algorithm?
What “exponential” changes
A simple doubling schedule might look like this after an initial request fails:
| Retry | Wait before this attempt |
|---|---|
| First retry | 1 second |
| Second retry | 2 seconds |
| Third retry | 4 seconds |
| Fourth retry | 8 seconds |
These are separate waiting periods, not times measured from the first request. The four pauses add up to 15 seconds, before counting the time spent making the requests themselves.
That's an illustration, not a universal setting. Real software chooses a starting delay, a multiplier and limits suited to the service; it stops retrying when the request succeeds.
A maximum delay prevents the pauses from growing without end. A separate attempt limit or overall deadline prevents software from retrying forever at that maximum delay.
Random timing keeps everyone from returning together
If a thousand programs all fail together and wait exactly one second, they may all return together. Doubling that identical wait can preserve the crowd.
Jitter means adding randomness to the timing so retries spread out. Depending on the design, software might choose a random delay within a growing range, so one individual pause can be shorter than the previous pause.
Amazon's engineers describe the relationship between timeouts, backoff and jitter: a timeout limits how long a program waits for a reply, while backoff and jitter shape later attempts.
- Try both Arm and RISC-V processors on a single board and compare them yourself.
- Skip the soldering: the header pins arrive already attached.
- Follow the step-by-step tutorial in MicroPython or C at your own pace.
A missing reply doesn't mean nothing happened
Suppose an application sends a request to create an order, but the reply never reaches it. The order might already exist even though the application reports a timeout.
Sending the request again could create a duplicate unless the service has a way to recognize it as the same operation.
An idempotent operation can be repeated without changing the intended result beyond the first successful attempt. When software retries an operation that isn't naturally idempotent, it needs a documented safeguard against duplicate effects—or it may need to avoid that retry.
Google's Cloud Storage retry guidance treats retry timing and the safety of repeating an operation as separate decisions. A longer pause doesn't make an unsafe repetition safe.
The type of error matters, too: a temporary service failure may clear up, while a request rejected for lacking permission usually needs a change before it can succeed.
Know which part of the software is retrying
A program may use a library, a collection of reusable code, that already retries failed requests. Adding another retry loop around it can multiply the number of attempts.
Before adding retries, check the library's behavior and settings. Amazon's reliability guidance recommends controlling retries at one level, testing failure scenarios and limiting the attempts or total elapsed time.
Once that limit is reached, the application should report the failure or hand it to an appropriate recovery process. Backoff buys time for recovery; it shouldn't hide an outage behind an endless “trying again.”
Ethernet Explained: What the Cable Does—and Doesn’t Do

Overload: When Work Arrives Faster Than It Can Be Finished

TCP: Putting the Missing Bytes Back in Order

QUOTE:
"Amateurs hack systems, professionals hack people."
