Bird
0
0

How can you combine the circuit breaker pattern with a retry mechanism to improve system resilience without causing cascading failures?

hard📝 Trade-off Q9 of 15
Microservices - Resilience Patterns
How can you combine the circuit breaker pattern with a retry mechanism to improve system resilience without causing cascading failures?
ARetry only when circuit breaker is OPEN
BRetry regardless of circuit breaker state
CDisable circuit breaker when retries are enabled
DRetry only when circuit breaker is CLOSED, fail fast when OPEN
Step-by-Step Solution
Solution:
  1. Step 1: Understand retry and circuit breaker interaction

    Retries should happen only when the circuit breaker allows calls (CLOSED) to avoid overload.
  2. Step 2: Avoid retries during OPEN state to prevent cascading failures

    Fail fast in OPEN state to protect the system from repeated retries.
  3. Final Answer:

    Retry only when circuit breaker is CLOSED, fail fast when OPEN -> Option D
  4. Quick Check:

    Retries with CLOSED state, fail fast on OPEN [OK]
Quick Trick: Retry only if circuit breaker is CLOSED to avoid overload [OK]
Common Mistakes:
MISTAKES
  • Retrying during OPEN state causing overload
  • Disabling circuit breaker with retries
  • Retrying blindly without state check

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes