Bird
0
0

You have a microservice that calls two downstream services sequentially. How would you apply the fallback pattern to ensure the overall service remains responsive if either downstream service fails?

hard📝 Trade-off Q8 of 15
Microservices - Resilience Patterns
You have a microservice that calls two downstream services sequentially. How would you apply the fallback pattern to ensure the overall service remains responsive if either downstream service fails?
AOnly add a fallback to the first downstream service call
BRetry both downstream services indefinitely until success
CImplement separate fallback methods for each downstream call and return partial data if one fails
DRemove fallback and rely on client retries
Step-by-Step Solution
Solution:
  1. Step 1: Understand fallback for multiple calls

    Each downstream call can fail independently, so separate fallbacks allow handling failures gracefully per call.
  2. Step 2: Provide partial data on failure

    Returning partial data maintains responsiveness and user experience even if one service fails.
  3. Final Answer:

    Implement separate fallback methods for each downstream call and return partial data if one fails -> Option C
  4. Quick Check:

    Separate fallbacks for each call = partial data fallback [OK]
Quick Trick: Use separate fallbacks for each service call [OK]
Common Mistakes:
MISTAKES
  • Adding fallback only to one call
  • Relying on infinite retries
  • Removing fallback entirely

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes