Skip to content
All concepts

Concept

Circuit breaker

A circuit breaker watches the calls to one dependency and stops making them once too many fail. While it is open, callers fail fast or receive a fallback, which frees their threads and gives the dependency room to recover. After a pause it lets a trial call through and closes again only if that call succeeds.

Watch the breaker open: calls to the sick service stop, and requests that never needed it are served again. A live step from the lesson Circuit breakers & fallbacks (Resilience patterns). Timings and counts are illustrative.

Where you'll see it

Sources: Netflix Tech Blog: Fault tolerance in a high volume, distributed system ↗ · Netflix Hystrix wiki: How it works ↗ · Report a problem

The definition is in our own words; the sources are those of the lesson Circuit breakers & fallbacks.