intermediateResilience Patterns353 of 469
Retry vs Circuit Breaker.
Tests whether you know Retry assumes the failure is transient and tries again (risking amplifying load on an already-struggling downstream), while Circuit Breaker detects sustained failure and stops calling altogether for a cooldown period -- and that the two should be combined, with the breaker wrapping the retry, not either alone.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response