Too Long; Didn't Read
The Circuit Breaker Pattern is a NodeJS tool that monitors for failures. When the number of consecutive failures crosses a threshold, the circuit breaker trips, and for the duration of a timeout period all attempts to invoke the remote service will fail immediately. The circuit breaker has defined 3 states for processing. These states are represented in colours as well. Closed as Green, Open as Red and Half Open as Yellow. The state will move from closed to open when number of failures exceeds the defined threshold and breaker trips. At this point, any requests to the service will automatically fail automatically.