Too Long; Didn't Read
Circuit Breakers in Microservices are a design pattern used extensively in distributed systems to prevent cascading failures. In this post, we’ll go through the problem of cascading failure and go over how the circuit breaker pattern is used. The circuit breaker is implemented as an interceptor intercepting all requests from user service to friends service. It consists of 3 states: closed, open, closed or half-open. Some of the requests are allowed to pass to upstream others are terminated and responded with a default response.
Share Your Thoughts