In 1879, Edison did not just flip a switch â he borrowed an idea from telegraph engineers: a circuit breaker that trips open under excess current, protecting the whole grid from a single short. More than a century later, software architects rediscovered the same principle for distributed systems.
A modern platform is a web of microservices. Each service calls others â payment, inventory, notifications â and each of those calls can fail or hang. When the payment service starts timing out, the threads waiting for it pile up. Soon every service that touched payment is also stuck, and the cascade rolls upward until the front door itself goes dark.
The circuit breaker pattern breaks that chain. It wraps every outbound call in a proxy that counts failures. Once failures cross a threshold it trips open: instead of hammering a sick dependency, it returns an error immediately, freeing resources for the calls that can still succeed. After a timeout it probes once â half-open â and if the dependency has recovered, it closes again. Three states, one invariant: protect the caller from the callee's problems.
Martin Fowler popularized the pattern in 2014, but the same logic appears under names like bulkhead, retry with backoff, and timeout in every resilience library from Netflix Hystrix to Resilience4j and Polly. The insight predates microservices: any system built from unreliable parts needs a way to stop one failure from becoming all failures.
Comments
Loading comments...