← Back to Concepts

Circuit Breaker Pattern

Watch how circuit breakers prevent cascading failures by stopping requests to failing services

Controls

Service Settings

Circuit Breaker Settings

3 failures
2 successes
5s

Try This:

  1. Toggle "Service Healthy" off to simulate a failing backend
  2. Click "Send Request" 3 times to trigger the circuit breaker
  3. Notice how subsequent requests are blocked (yellow) when the circuit is OPEN
  4. Wait 5 seconds for the circuit to enter HALF-OPEN state
  5. Toggle "Service Healthy" back on and send 2 successful requests to close the circuit

Circuit State

CLOSED

Client

INFO

Sending requests

Circuit Breaker
CLOSED

Backend Service

SUCCESS

Responding

How it works:

  • Closed: Requests pass through normally. Failures are counted.
  • Open: After 3 failures, circuit opens. Requests are blocked immediately.
  • Half-Open: After 5s, circuit tries again. 2 successes close it.

Metrics

Total Requests
0
Successful
0
Failed
0
Blocked
0