Circuit breaker
An automatic cutoff that stops calling a failing service and answers with an error instantly, to avoid waiting or making the failure worse.
Example
If stock fails 5 times in a row, the circuit breaker trips and orders answers in 10 ms instead of waiting 30 seconds.
Test yourself: Circuit breaker
Circuit breaker
What does a circuit breaker do when failures pass the threshold?
After 5 failures, it answers with an error in 1 ms instead of waiting 30 seconds on a dead service.
Circuit breaker
The ___ state lets a few test requests through.
After about 30 seconds open, it lets through, say, 3 requests. If they succeed, it goes back to closed; if they fail, back to open.
Circuit breaker
In the open state, the circuit breaker returns an error without ___ the service.
0 calls to the dead service during, for example, 30 seconds.
0/3
â–¶ Play