circuitbreaker icon indicating copy to clipboard operation
circuitbreaker copied to clipboard

Circuit Breakers in Go

Results 22 circuitbreaker issues
Sort by recently updated
recently updated
newest added

``` select { case output

In my opinion this can be replaced by tracking success/failure counts during Success()/Failure() calls. I have made a pull request for this performance enhancement, let me know what you think,...

When adding a listener (buffered) channel with AddListener(), and consuming the events, the breaker can block forever. The test code in the linked gist can reproduce the issue with a...

This PR adds flap detection based on the algorithm used by [nagios](https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/flapping.html).

This PR will attempt to remove the mutex from the sliding window stats.

We want to use circuit breaker instance in our healthcheck reporting. Would be nice if cb instance was able to report which errors triggered it to fail. If that's something...

This library suffers from go issue [#599](https://github.com/golang/go/issues/599) when compiled for ARM using the gc compiler. The gccgo compiler appears to take care of it, but that limits the go version...

Calling Ready() on a half-open breaker will reset the breaker to open. I'm writing a test to better understand how Breaker behaves in a half-open state. I'm using `Breaker.Ready()` to...

``` go var count int cb := circuit.NewThresholdBreaker(3) //circuit function should be call 3 times err := cb.Call(func() error { count += 1 _, err := rpc.DialHTTP("tcp", "127.0.0.1:4000") //connection error...