Quick Answer
Circuit breaker example: service A calls service B. B starts timing out. After 5 consecutive failures in 10 seconds, the circuit opens. Now A returns a cached response or error immediately without calling B (no wasted threads). After 30 seconds, the circuit goes half-open: one test request is sent. If B responds successfully, circuit closes. If not, stays open.
Answer
Stops requests to a failing service after threshold errors. Opens circuit temporarily and tests service recovery periodically. Prevents system overload during failures.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.