Integration Server 10.15 | Microservices Runtime Guide | Using a Circuit Breaker with Services | About Circuit Breaker | Circuit States
 
Circuit States
The state of a circuit for a service determines how circuit breaker responds to a request to invoke the service.
The following table identifies how the circuit breaker responds to an invocation request based on the circuit state.
If the circuit state is
Then
Closed
The circuit breaker executes the service.
Open
The circuit breaker does not execute the service. Instead, the circuit breaker returns an exception, which allows the request to fail immediately, or circuit breaker invokes an alternative service.
Half-open
The circuit breaker executes the service the next time it is requested. If the service executes successfully, then the circuit breaker changes the circuit state to closed. If the service ends because of a failure event (exception and/or timeout), the circuit breaker changes the circuit state to open.
While the circuit is in a half-open state and circuit breaker is already executing a request for the service, any other requests for the service wait until the circuit exits the half-open state. If service execution is successful, circuit breaker closes the circuit and executes the waiting requests for the service.