In many scenarios, when a cloud service is down (or not responding), in order to achieve Resiliency you can prevent an application from continuously re-sending a request to the cloud service. This architectural behavior is achieved via the Circuit Breaker pattern. The state diagram of this pattern is represented in the following figure:
When application A sends requests to cloud service B, we're in the Closed state. In this state, if some error occurs the Circuit Breaker pattern counts these errors and when the predefined error limit is reached, the state becomes Open.
When we're in the Open state, requests from application ...