Course contentsShow
← System Design
Lesson 1045 of 1,91927. Circuit Breakers and BulkheadsFree lesson

The Three States: Closed

Understanding the Closed state where requests flow normally and the circuit monitors for failures.

The Three States: Closed

What you'll learn: How the "Closed" state in a circuit breaker allows normal traffic flow while quietly monitoring for failures.

The Default State

The Closed state is where your circuit breaker starts and where it spends most of its time when everything is healthy. In this state, requests pass through to the downstream service exactly as if the circuit breaker weren't there. Think of it like a closed electrical circuit—current flows freely through the wire.

What Happens in Closed State

While in Closed state, the circuit breaker acts as a transparent proxy:

  1. Requests flow normally – Every call goes directly to the downstream service
  2. Monitoring happens silently – The breaker tracks successes and failures in the background
  3. Counters are maintained – It keeps a rolling window of recent call results (e.g., "5 failures in the last 100 requests")
  4. Threshold checking – After each failure, it checks: "Have we hit our failure threshold yet?"

The Transition Trigger

The Closed state continues until the failure rate crosses your configured threshold. For example, if you've set "open after 50% failures in the last 10 requests," the circuit breaker counts each failed call. Once that threshold is breached, it transitions to the Open state (covered in a future lesson).

Why It Matters

The Closed state represents healthy system operation. Your goal in system design is to keep circuits closed as much as possible—it means services are responding correctly and users get full functionality.

Key Takeaway: The Closed state is the circuit breaker's normal operating mode where traffic flows freely while the breaker silently monitors failure rates, ready to open if thresholds are exceeded.