learn / Term explained
EN

Requests and Access · Explanation of Terms

Exponential backoff

Exponential backoff

Also written as: retry backoff

What it means

A retry strategy that increases the wait after successive failures. It is often combined with a maximum delay and random jitter to prevent clients from repeatedly retrying at the same time.

A common practice is to multiply the wait time with the number of failures and set a maximum wait time and a maximum number of retries. Random jitter can spread out requests started at the same time and reduce the concentration of retries.

Backoff is intended for transient issues with potential for recovery and will not automatically fix bad addresses, invalid authentication, or operations that cannot be repeated. When the server explicitly provides Retry-After, the retry strategy should also take this indication into account.

Waiting longer does not make repetition safe. RFC 9110 says a client should not automatically retry a non-idempotent request unless its semantics are known to be idempotent or the original was never applied. A remote-session timeout may lose only the response while provisioning continues; another create can produce a second session.

In a scraping task

Allow recovery time for temporary failures

After a read-only request fails continuously, you can use a 1, 2, 4, and 8 second waiting scheme with an upper limit, and then add appropriate random changes. This is just an example of a policy, not a fixed parameter that all services should use.

Common misconceptions

  • Infinite retries are not a backoff strategy; termination conditions are equally important.
  • Before retrying a write operation with side effects, you need to confirm idempotence. Just because waiting is added, it cannot be considered safe to repeat.
  • Jitter adds randomness to waiting times and can accompany exponential backoff; it is not a synonym for backoff.

References

Organized by Northleaf Studio. The source link retains the original address to facilitate continued reading.

Back to glossary