Bird
0
0

How can the timeout pattern be combined with a retry pattern to improve microservice reliability without causing cascading failures?

hard📝 Trade-off Q9 of 15
Microservices - Resilience Patterns
How can the timeout pattern be combined with a retry pattern to improve microservice reliability without causing cascading failures?
ASet a long timeout and retry immediately without delay
BSet a short timeout and limit retries with exponential backoff
CDisable timeout when retrying
DRetry indefinitely without timeout
Step-by-Step Solution
Solution:
  1. Step 1: Understand retry and timeout interaction

    Retries can cause overload if timeout is long or retries are immediate.
  2. Step 2: Use short timeout and exponential backoff

    Short timeout limits wait; exponential backoff spaces retries to reduce load and cascading failures.
  3. Final Answer:

    Set a short timeout and limit retries with exponential backoff -> Option B
  4. Quick Check:

    Short timeout + backoff retries prevent overload [OK]
Quick Trick: Combine short timeout with spaced retries [OK]
Common Mistakes:
MISTAKES
  • Using long timeout with immediate retries
  • Disabling timeout during retries
  • Retrying indefinitely causing overload

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes