Skip to main content

Backoff Algorithms

Rebound uses a simple exponential backoff system:

finalDelay = initialDelay * (backoffFactor ^ currentAttempt)

Example:

@Rebound({
delay: 1000,
backoffFactor: 2,
})
AttemptDelay
11000 ms
22000 ms
34000 ms

Exponential backoff is ideal for:

  • Rate-limited APIs
  • Backend overload protection
  • Avoiding retry floods