- 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.
推薦閱讀
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- Java Web開發學習手冊
- HTML5移動Web開發技術
- AngularJS Testing Cookbook
- 工程軟件開發技術基礎
- JavaScript語言精髓與編程實踐(第3版)
- INSTANT Sencha Touch
- PHP網絡編程學習筆記
- HTML5+CSS3網站設計基礎教程
- Mathematica Data Analysis
- jQuery炫酷應用實例集錦
- 學習OpenCV 4:基于Python的算法實戰
- 0 bug:C/C++商用工程之道
- Hands-On Nuxt.js Web Development
- Distributed Computing in Java 9