Glossary

Circuit Breaker

Circuit Breaker is a resilience pattern for distributed systems. It protects against cascading failures: if a downstream service goes down, it automatically "trips" and returns a fallback response instead of hanging.

Three states

Why

Without a circuit breaker: slow service A → threads in service B hang waiting → service B exhausts its thread pool → the entire cluster fails. The circuit breaker "disconnects" service A and lets the rest of the system continue operating.