Architecture

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?

Lessons that use it

More architecture terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.