1.

What are use-cases for Circuit Breaker Pattern and benefits of using Circuit Breaker Pattern?

Answer»
  1. Synchronous communication over the network that is likely to fail is a potential CANDIDATE for circuit breaker.
  2. A circuit breaker is a valuable place for monitoring, any CHANGE in the breaker state should be logged so as to enable deep monitoring of microservices. It can easily troubleshoot the root CAUSE of failure.
  3. All places where a degraded functionality can be acceptable to the caller if the actual server is struggling/down. 

Benefits:-

  1. The circuit breaker can prevent a single service from failing the entire system by tripping off the circuit to the faulty microservice. 
  2. The circuit breaker can help to offload REQUESTS from a struggling server by tripping the circuit, thereby giving it a time to recover. 
  3. In PROVIDING a fallback mechanism where a stale data can be provided if real service is down.


Discussion

No Comment Found