- When a request to a service fails, return an alternative response to the request.
- Basic ideas
- Fallback logic typically does little or no processing, and return value.
- Fallback logic must have little chance of failing.
- Approaches
- Return previous cached value.
Topic | Consideration | Possible Solution Options |
---|
- Web Article: Fallback pattern | https://badia-kharroubi.gitbooks.io/microservices-architecture/patterns/communication-patterns/fallback-pattern.html
- Web Article: Resilience design patterns: retry, fallback, timeout, circuit breaker | https://blog.codecentric.de/en/2019/06/resilience-design-patterns-retry-fallback-timeout-circuit-breaker/