Skip to main content

Posts

Showing posts from July, 2025

Implement Circuit Breaker Pattern in Microservices

 Calling multiple services and in the complete communication one of the service is failing (could be any reason, be it network, code issue and so on) Three state: 1. Open - Circuit is open (no call is going to Ailing service (service which is failing) 2. Close - No service failure, so circuit is closed and communicating well. 3. Half Open - some requests are going to ailing service (just to check if service started working) and some requests are stopped (not to increase load)  Polly - circuit breaker package to be used   -Retry policy implementation but rate limit