- Hands-On Microservices with Kotlin
- Juan Antonio Medina Iglesias
- 116字
- 2021-06-30 19:10:42
Fallbacks
Think about how, even if our microservices are failing, we can still respond to whoever uses them. For example, if we design a microservice that retrieves the offers from a customer but encounters a problem acceding to the data layer, maybe it could return a default set of offers that allows the application to at least have some meaningful information. In the same way, if we consume an external service, we may have a fallback mechanism if that service is not available.
Fallbacks are a common pattern to prevent a problem within your architecture affecting other parts of the system. If we have a good fallback, our application could work until that problem is fixed.
推薦閱讀
- Learning Spring 5.0
- 算法零基礎(chǔ)一本通(Python版)
- R語言游戲數(shù)據(jù)分析與挖掘
- Git高手之路
- Mastering Python High Performance
- Python數(shù)據(jù)可視化之Matplotlib與Pyecharts實戰(zhàn)
- Hands-On Functional Programming with TypeScript
- Spring+Spring MVC+MyBatis從零開始學(xué)
- IDA Pro權(quán)威指南(第2版)
- JavaScript程序設(shè)計:基礎(chǔ)·PHP·XML
- Learning D
- Spring Boot從入門到實戰(zhàn)
- jMonkeyEngine 3.0 Beginner’s Guide
- Neo4j權(quán)威指南 (圖數(shù)據(jù)庫技術(shù)叢書)
- Go語言編程之旅:一起用Go做項目