SYSTEM-DESIGN
    intermediate

    Circuit Breakers & Resilience Patterns

    Software Engineer path · lesson 94 of 99
    Caller
    Service A
    CLOSED — requests flow
    failures
    Downstream
    Service B
    Healthy
    Breaker: CLOSED
    Activity Log
    No activity yet — send a request to begin.

    Trip and recover

    Sequence

    Order the circuit breaker’s state changes as a service fails and recovers.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    1. 1Drop a step here
    2. 2Drop a step here
    3. 3Drop a step here
    4. 4Drop a step here
    5. 5Drop a step here
    5 pieces left to place

    Test your knowledge

    20 questions
    Question 1 of 20
    Score: 0

    In the circuit breaker pattern, what does the CLOSED state mean?

    The short version

    A home fuse box trips and cuts power when there is a short circuit, protecting the house from damage. You have to manually reset it once the fault is fixed — a software circuit breaker does the same for service calls, tripping open when a downstream dependency fails so the rest of the system stays safe.

    Interview Questions

    Netflix
    Amazon
    Google
    Microsoft
    Stripe
    Stripe
    Uber
    Netflix
    Meta

    Love this visualization?

    Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.

    100% free • No credit card required