Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WithFullJitter? #21

Open
craigpastro opened this issue Sep 19, 2023 · 0 comments
Open

WithFullJitter? #21

craigpastro opened this issue Sep 19, 2023 · 0 comments

Comments

@craigpastro
Copy link

Hello! I realize I could add this middleware myself, but I was wondering if you would be interested in adding a WithFullJitter middleware? Full jitter would return a duration between 0 and Next(). According to https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/, full jitter is better than equal jitter (which is essentially what WithJitter and WithJitterPercentage are).

If you think it is a good idea I am happy to create a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant