-
Notifications
You must be signed in to change notification settings - Fork 49
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
Dynamic halfOpenAfter
for circuit breakers
#68
Comments
You're asking how to get "[d]ynamic halfOpenAfter for circuit breakers" to work -- I'm not sure what you mean by this, can you elaborate? |
I want the circuit breaker timeout to be derived from number of attempts, rather than a constant value. At the moment, this is my code:
Ideally, I want something like this:
Where the attempt number that is passed to the backoff function is the number of consecutive times the circuit-breaker has gone from half-open (or closed) to open. The circuit breaker moving back to the closed state would reset the attempts to 0. |
I see. I think that makes sense. PR's welcome, or I will get to this at some point. |
Is there any guidance around getting this to work?
I'm heavily hitting an API that I don't control, nor have much insight of their (seemingly inconsistent) rate-limiting functionality.
I would love it if I could do write a back-off function to workaround this, that grows with the number of attempts.
The text was updated successfully, but these errors were encountered: