Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 572 Bytes

circuit-breaking.md

File metadata and controls

8 lines (6 loc) · 572 Bytes

Circuit Breaking

circuit_breaking

Consider the scenario above. If the inventory microservice is down, this will impact payment microservice as well. So we need to implement the circuit breaker pattern to make microservices less coupled to each other when doing synchronous communication. This way, even if the inventory service is down, we can still return the cart information and for the products we can return a default response such as retrieving them from Redis cache.