In my implementation of circuit breaker, I need to use some percentage of total calls made to the endpoint in half open state (e.g 80% of total calls or 20% of total calls to be sent in half open state) rather than using hard-coded value for the same. I checked resilience4j, it does not provide the dynamic calculation during the half open state. I do not want to use any external service which can provide me the percentage value to be used in the circuit breaker configuration. Please provide insights of how can this be achieved? Should I try creating my own implementation for circuit breaker following any library?
I checked resilience4j, it does not provide the flexibility for adding percentage of calls in half open state.
NEERAJ SHUKLA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.