Replies: 1 comment 2 replies
-
Are you using circuit breaker as well? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Polly Community,
currently I'm using Polly's resilience pipeline with a callback method that runs infinitely. My goal is to recover from network failures that may occur inside an event loop, i.e. I want to try to restablish the connections and then restart the event loop.
However, I've encountered a specific challenge related to the retry strategy, especially with exponential backoff. Once the retry interval reaches its maximum (for example, a 10-minute delay after several consecutive failures), it does not reset even if the system recovers and remains healthy for an extended period. This behavior leads to less-than-ideal retry intervals when new failures occur after the system has been stable.
I'm wondering if Polly's resilience pipelines are intended for use with infinitely running processes?
Is there a built-in mechanism to reset the retry strategy after the system remains healthy for a sufficient duration? Specifically, I'm looking for a way to reset the exponential backoff to its initial state after the system has demonstrated stability for a certain period, ensuring that the retry intervals are appropriate for the current state of the system.
I would be very grateful for any insights, recommendations or examples of how Polly can be used effectively in such contexts.
Beta Was this translation helpful? Give feedback.
All reactions