Rexsilient.Retry.Strategy.Decorrelated (Rexsilient v1.0.0)

Copy Markdown View Source

Waits a random time based on the previous wait, up to a maximum.

Each wait is a random value from base_delay to three times the previous wait, capped at max_delay; see Rexsilient.Jitter.decorrelated/3. Waits grow on average, like Rexsilient.Retry.Strategy.Exponential, but each caller's waits drift apart.

Options

  • :base_delay - the shortest wait, in milliseconds, and the base of the first one. Required.

  • :max_delay - the longest wait, in milliseconds. Required.

Examples

strategy Rexsilient.Retry.Strategy.Decorrelated,
  base_delay: 100,
  max_delay: 5_000