Circuit Breaker

  • If the large of request to microservice, and the percentage of getting failure response is over the limit, the response will be directly return fallback response without triggering the function of the microservice

  • Closed: Take all the request into function and return the response, if number of percentage of response is fallback response, it will switch to open state

  • Open: Stop accepting the request for few moment and switch back to half open state

  • Half open : Take certain percentage of request to see whether the microservice run properly or not, if yes, switch to close state , else switch back to open state

Last updated

Was this helpful?