How to implement a Circuit Breaker

This article deep dives into how to implement a circuit breaker design pattern