aiobreaker
aiobreaker copied to clipboard
Python implementation of the Circuit Breaker pattern.
Hi @arlyon I am currently adding circuit breaker in the rest api client I am working on, From my followin test, the fail_max value sounds wrong to me. https://github.com/mardiros/blacksmith/blob/master/tests/unittests/test_middleware.py#L206-220 When...
I am currently implementing a listener of the circuitbreaker, but actually, received object does not match the declared typed. https://github.com/mardiros/blacksmith/blob/master/src/blacksmith/middleware/circuit_breaker.py#L48-L66
Just stumbled on your project and looked over your code to see if it would fit my use cases. Two things immediately caught my eye and I like to raise...
Easiest solution: create a new class AsyncEventListeners with only async events.
Currently a listener has to define a new class. For small cases this may be undesirable.