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

Support staggered/hedged retries #291

Open
timothybasanov opened this issue Aug 31, 2021 · 1 comment
Open

Support staggered/hedged retries #291

timothybasanov opened this issue Aug 31, 2021 · 1 comment

Comments

@timothybasanov
Copy link

Not a Contribution.

Currently Failsafe only allows to make a single retry at a time. Sometimes it's beneficial to make several retries at the same time and hope that one of them would be successful.

It would be nice if it would be possible to configure retry and timeout policies in such a way that:

  1. A first attempt starts with a timeout of 100ms
  2. After 10ms pass, a second attempt starts with a timeout of 90ms
  3. After another 20ms pass, a third attempt starts with a timeout of 70ms
  4. When any of the attempts succeed, results are returned back immediately
  5. All executions still in-flight are cancelled

It would be super helpful to have an attempt-specific timeout in ContextualSupplier, so that some special can be done with it on the application level.

@timothybasanov timothybasanov changed the title Support staggered retries Support staggered/hedged/backup retries Sep 30, 2021
@timothybasanov
Copy link
Author

Not a Contribution.

To better align with #159, mentioning hedged requests as they are seemingly are a different name/flavor for staggered requests.

@timothybasanov timothybasanov changed the title Support staggered/hedged/backup retries Support staggered/hedged retries Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants