circuit breaker pattern

Advanced 💻 Tech / IT

Definition

A design pattern that prevents cascading failures by automatically stopping calls to a failing service, like an electrical circuit breaker but for API calls. When things go wrong, it fails fast instead of timing out slowly and taking everything down with it.

Example Usage

The payment API is down so our circuit breaker pattern kicked in, returning cached data instead of hanging for 30 seconds per request.

Origin

Popularized by Michael Nygard in 'Release It!' (2007), borrowed from electrical engineering terminology

Fun Fact

Before circuit breakers became common, a single failing microservice could bring down entire platforms—Netflix's creation of Hystrix helped popularize the pattern by preventing their streaming from dying when one service got the hiccups.

Source: Microservices architecture and fault tolerance patterns

Related Terms

Translate This Term

See “circuit breaker pattern” in Corporate Speak, Gen-Z Slang, Pirate Speak, and more.

Try the Translator