hyx icon indicating copy to clipboard operation
hyx copied to clipboard

✨ Implement error-rate-based circuit breaker

Open roma-glushko opened this issue 2 years ago • 2 comments

Hyx is providing a circuit breaker based on the consecutive error number right now.

We need to expand that and provide a circuit breaker based on rolling window stats (e.g. percentage of failed requests).

Let's think about providing the rolling window stats as a separate low-level component, so other project could use it to implement very custom rate limiters or similar things.

References:

  • https://github.com/App-vNext/Polly/wiki/Advanced-Circuit-Breaker

roma-glushko avatar Dec 21 '22 16:12 roma-glushko

@roma-glushko do you know when you plan to add this feature? We are currently evaluating which resilience framework to use for python and I came across hyx. I wanted to check with you if there is any approximate ETA on this or if the repo is actively maintained?

pratik3558 avatar Aug 05 '24 21:08 pratik3558

Hey @pratik3558 👋 This project is not abandon but it do have little time right now to keep it rolling. Other than that, Hyx supports consecutive breakers right now.

How do you plan to use the error-rate based breakers? Curious what your use case 👀

roma-glushko avatar Aug 08 '24 11:08 roma-glushko