Which scenario best illustrates the use of a fallback pattern in microservices?
easy📝 Conceptual Q2 of 15
Microservices - Resilience Patterns
Which scenario best illustrates the use of a fallback pattern in microservices?
AScaling up instances during high traffic
BLogging all requests for audit purposes
CEncrypting data before sending it to another service
DReturning cached data when the main service is down
Step-by-Step Solution
Solution:
Step 1: Identify fallback scenario
Fallback pattern is used to provide an alternative response, such as cached data, when the main service fails.
Step 2: Match options to fallback use case
Only Returning cached data when the main service is down describes returning cached data when the main service is unavailable, which is a typical fallback use.
Final Answer:
Returning cached data when the main service is down -> Option D
Quick Check:
Fallback scenario = Alternative response on failure [OK]
Quick Trick:Fallback often uses cached or default data [OK]
Common Mistakes:
MISTAKES
Confusing fallback with logging
Mixing fallback with encryption
Thinking fallback handles scaling
Master "Resilience Patterns" in Microservices
9 interactive learning modes - each teaches the same concept differently