Retries and exponential backoff

Error recovery means retrying an operation that failed transiently, with a wait that increases at each attempt (exponential backoff), often with a random component. The number of tries is bounded, and only temporary errors are replayed.

Example

delai = base * 2 ** tentative  # 1 s, 2 s, 4 s, 8 s

Related concepts

The whole glossary