ExponentialBackoff
Geometrically increasing capped retry delay
Mechanism
A Backoff delay policy whose unjittered delay grows geometrically across consecutive unsuccessful attempts: base_delay * multiplier^attempt_index. A configurable jitter factor may perturb the candidate delay to decorrelate concurrent attempts, after which the scheduled delay is clamped to max_delay. The caller defines retry eligibility, retry budget, and when the attempt sequence resets.
Invariants
- Scheduled delay is greater than zero and does not exceed max_delay.
- Before jitter, delay is non-decreasing with attempt_index until max_delay is reached.
Parameters
- base_delay: type=Duration, range=> 0, description=Delay before the first subsequent attempt
- multiplier: type=Float, range=(1, unbounded), description=Geometric growth factor applied per unsuccessful attempt
- max_delay: type=Duration, range=[base_delay, unbounded), description=Upper bound applied after optional jitter
- jitter_factor: type=Float, range=[0.0, 1.0], description=Proportional randomization of the candidate delay
Failure modes
- Synchronized retries when jitter is zero or correlated across callers.
- Excessive recovery delay when the multiplier or cap is too large.
- Retry amplification when callers use the delay policy without a retry budget.
Where this came from
—
Builds on
- Backoff references
Used by
- Retry composes_with
Identity
- Ref:
ExponentialBackoff#f5e5 - Hash: sema:ExponentialBackoff#mh:SHA-256:f5e5ff69408a272184da86cf5698f6675e9dfe2aa47917616a695e117602b828
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository