0
0
Microservicessystem_design~5 mins

Fallback pattern in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the Fallback pattern in microservices?
The Fallback pattern is a design approach where a system provides an alternative response or behavior when a service call fails or is unavailable, ensuring the system remains responsive and stable.
Click to reveal answer
beginner
Why is the Fallback pattern important in distributed systems?
Because services can fail or be slow, the Fallback pattern helps prevent cascading failures by providing a backup response, improving system reliability and user experience.
Click to reveal answer
intermediate
Name two common types of fallback strategies.
1. Returning a default or cached response.<br>2. Calling a backup service or a simpler version of the service.
Click to reveal answer
intermediate
How does the Fallback pattern relate to the Circuit Breaker pattern?
The Circuit Breaker detects failures and stops calls to a failing service temporarily, while the Fallback pattern provides an alternative response during that time to keep the system responsive.
Click to reveal answer
beginner
What is a risk of not implementing a Fallback pattern in microservices?
Without fallback, a failure in one service can cause delays or failures in others, leading to poor user experience or system crashes.
Click to reveal answer
What does the Fallback pattern do when a service call fails?
ARetries the call indefinitely
BProvides an alternative response or behavior
CShuts down the entire system
DIgnores the failure and continues
Which of the following is NOT a common fallback strategy?
AReturning cached data
BCalling a backup service
CReturning a default response
DIncreasing the timeout indefinitely
How does the Fallback pattern improve user experience?
ABy shutting down services to prevent errors
BBy hiding all errors from users
CBy providing quick alternative responses during failures
DBy logging errors silently
Which pattern often works together with Fallback to handle service failures?
ACircuit Breaker
BLoad Balancer
CSingleton
DObserver
What is a potential consequence of not using fallback in microservices?
ACascading failures and poor system stability
BFaster response times
CReduced system complexity
DAutomatic error correction
Explain the Fallback pattern and why it is important in microservices.
Think about what happens when a service is down and how fallback helps.
You got /3 concepts.
    Describe how the Fallback pattern works together with the Circuit Breaker pattern.
    Consider how these patterns prevent failures from spreading.
    You got /3 concepts.