Closed ksysoev closed 3 months ago
Nice I like this can I take this?
the existing param recoverAfter
for NewCircuitBreakerMiddleware
is not able to integrate with this gobreaker
library. We can only control how the CB turns semi-open with duration, not number of successful requests. Anyhow when the CB is open it will not allow requests anyway, so there is no way to hit the condition?
@KianYang-Lee sure feel free to drop recoverAfter
argument
Current implementation of circuit breaker midleware is quite naive and not implementing pattern properly, it would be nice to replace it with properly implemented library.
this could be a good candidate for the replacement: https://github.com/sony/gobreaker