Created
August 25, 2018 16:16
-
-
Save aladine/232d63b0c81d66e9d5f2bd0b6d58c45c to your computer and use it in GitHub Desktop.
Main errors from hystrix circuit breaker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ErrMaxConcurrency occurs when too many of the same named command are executed at the same time. | |
ErrMaxConcurrency = CircuitError{Message: "max concurrency"} | |
// ErrCircuitOpen returns when an execution attempt "short circuits". This happens due to the circuit being measured as unhealthy. | |
ErrCircuitOpen = CircuitError{Message: "circuit open"} | |
// ErrTimeout occurs when the provided function takes too long to execute. | |
ErrTimeout = CircuitError{Message: "timeout"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment