Build a Circuit Breaker
closed/open/half-open state machine
Challenge 4 of Traffic & ResilienceIntermediate~55 min
Stop hammering a failing dependency. Build the Closed → Open → Half-Open state machine that trips after repeated failures, fails fast while open, probes for recovery after a timeout, and wraps calls end to end.