- 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.
推薦閱讀
- Blender 3D Incredible Machines
- PHP+MySQL網(wǎng)站開發(fā)項目式教程
- Learning FuelPHP for Effective PHP Development
- Learning Concurrent Programming in Scala
- RSpec Essentials
- Raspberry Pi Home Automation with Arduino(Second Edition)
- Create React App 2 Quick Start Guide
- Java實戰(zhàn)(第2版)
- Linux Shell核心編程指南
- 0 bug:C/C++商用工程之道
- Natural Language Processing with Java and LingPipe Cookbook
- Visual Studio 2015高級編程(第6版)
- Arduino機器人系統(tǒng)設(shè)計及開發(fā)
- PowerDesigner 16 從入門到精通
- 大數(shù)據(jù)時代的企業(yè)升級之道(全3冊)