Skip to content

Stockertim Dictionary · Technology · Artificial intelligence

Exponential backoff

Also called exponential back-off, retry backoff, backoff and retry

In short

Exponential backoff is a retry pattern in which the wait between attempts multiplies each time, for example 10 seconds, then 30, then 90, giving a struggling system room to recover.

  • Intermediate
  • Process
  • Checked

In detail

When a call to another system fails for a reason that may pass, such as overload or a brief network fault, trying again often works. Trying again immediately, and repeatedly, usually does not: it adds load to a system that is already struggling, and if many clients do the same the extra traffic can prevent recovery altogether. Exponential backoff spaces the attempts out, multiplying the wait by a fixed factor after each failure.

A typical setting starts with a short wait and doubles or triples it each time, with a maximum wait and a maximum number of attempts. After the last attempt the item leaves the retry loop and follows the error path. The idea is long established in networking: the standard for TCP's retransmission timer, for instance, doubles the timer after each timeout.

Two refinements are common. Jitter adds a small random amount to each wait, so that many clients that failed together do not all retry at the same instant. And where the other system says how long to wait, for example through an HTTP Retry-After header on a busy response, the client follows that instead of its own schedule.

Backoff suits temporary failures only. Retrying a request rejected for bad data or missing permission just repeats the rejection, so errors are sorted into retryable and non-retryable before the pattern applies.

Worked example

An automation at Mapleton Garden Centre posts orders to a supplier system that sometimes reports itself busy.

  1. First wait 10 seconds, multiplied by 3 after each failure: 10 x 3 = 30, then 30 x 3 = 90
  2. Maximum of 3 retries, so total waiting before giving up: 10 + 30 + 90 = 130 seconds
  3. A random 0 to 5 seconds of jitter is added to each wait.
  4. A rejection for an unknown product code is not retried; it goes straight to the error path.

Brief overloads clear within about two minutes without hammering the supplier, and real data errors reach a person at once.

In practice

Builders apply exponential backoff with jitter to calls that can fail temporarily, cap both the wait and the number of attempts, respect any wait the other system requests, and send everything else straight to the error path.

Watch out

  • Retrying errors caused by bad input or missing permission only repeats the failure.
  • Without a cap on attempts, backoff can keep an item waiting for hours.

Learn it properly

Official sources

Facts last checked on 9 November 2026.

Education, not advice: the Stockertim Dictionary explains what terms mean. It never recommends buying or selling anything.

English