Skip to content

Instantly share code, notes, and snippets.

@aladine
Created August 25, 2018 16:16
Show Gist options
  • Save aladine/232d63b0c81d66e9d5f2bd0b6d58c45c to your computer and use it in GitHub Desktop.
Save aladine/232d63b0c81d66e9d5f2bd0b6d58c45c to your computer and use it in GitHub Desktop.
Main errors from hystrix circuit breaker
// 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