Problem Statement
At Netflix, when a downstream service is unhealthy, we need to fail fast instead of waiting for timeouts. Implement a Circuit Breaker that prevents cascading failures in distributed systems.
Circuit Breaker States
Implementation
Usage Example
Production Library
Follow-up Questions
- How do you implement per-endpoint circuit breakers?
- How do you share circuit breaker state across instances?
- What metrics would you expose for monitoring?