Day 48: Cloud pattern: circuit breakers

01 Aug 2017

In a large cloud infrastructure with lot of instances of a service, circuit breaker helps to detect unhealthy nodes when errors raise.

For example, we can implement a circuit breaker in a load balancer, by tracking the number (or ratio) of 5xx http errors a service is returning or the average response time.

Associating circuit breakers to a deployment process allows auto-revert when bad releases are deployed into production. \o/

Implementation examples and papers