Skip to content

Add jitter option for backoff strategies #23

@rasviitanen

Description

@rasviitanen

Is your feature request related to a problem? Please describe.
When executing many requests with a fixed backoff strategy, it's possible that requests will timeout and be retried simultaneously. If the cause for the the timeout was due to "competition", it's likely that the requests will continue to compete and timeouts will continue to happen. To make this less likely, I would like to "spread" requests out over an interval instead.

I.e. I would like the ability to go from this:
image

To this:
image

Describe the solution you'd like
I would like to add the possibility of adding a jitter to backoff strategies, such that retries are less likely to occur at the same time.
The jitter would pick a random number between a backoff interval instead of picking a fixed duration.

Additional context
The figures above are from this blog post, which describes the problem in greater detail: https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions