circuitbreaker
circuitbreaker copied to clipboard
Circuit Breakers in Go
This PR switches from the facebookgo/clock dependency to benbjohnson/clock which is the more actively maintained drop-in replacement. It also initializes the module using `go mody init`.
If the latency of circuit remote call is higher than 1s,then One single success request would cause state switch HalfOpen to Closed easily! While the best solution is to detect...
it's code ```golang func TestBreaker22(t *testing.T) { brk := NewBreakerWithOptions(&Options{ ShouldTrip: RateTripFunc(0.6, 100), }) flag := 0 start := time.Now().UnixNano() for i := 0; i < 200; i++ { err...
No reaction to pull requests.
It is unclear the relationships between the following options when setting a circuit breaker: `WindowTime`, `WindowBuckets`, and `Backoff`. It looks like `WindowTime` is divided up into `WindowBuckets` for circuit polling,...
If the context is cancelled on the request the breaker considers that an error. Instead of creating a new context, we use the one provided on the `http.Request`, which returns...
github.com/cenk/backoff has been renamed back to github.com/cenkalti/backoff. Fixes #53.
Hi, You are using an old import path : _github.com/cenk/backoff_ wich is now : **github.com/cenkalti/backoff** Is that possible to update it please ? Thank you
Hello Thanks for the library. I added implementation of `Stringer` interface for `BreakerEvent`. Usage example: ``` ch := builder.cb.Subscribe() go func() { for { e :=