- Hands-On Microservices with Kotlin
- Juan Antonio Medina Iglesias
- 156字
- 2021-06-30 19:10:41
Build for failure
It doesn't matter how many tests we do in our microservice, how many controls are in place, how many alerts could be triggered; if our microservice is going to fail, we need to design for that failure, to handle it as gracefully as possible, and define how we could recover from it.
"Anything that can go wrong will go wrong."
– Murphy
When we approach the initial design of a microservice, we need to start working on the more basic errors that we need to handle. As the design grows, we should think of all the edge scenarios, and finally what could go really wrong. Then, we need to assess how we are going to notify, monitor, and control those situations, how we could recover, and if we have the right information and tools for solving them.
Think of these areas when you design a microservice:
- Upstream
- Downstream
- Logging
- Monitoring
- Alerting
- Recovery
- Fallbacks
推薦閱讀
- DB2 V9權(quán)威指南
- Learning Microsoft Windows Server 2012 Dynamic Access Control
- 高手是如何做產(chǎn)品設(shè)計的(全2冊)
- Java完全自學(xué)教程
- .NET 4.0面向?qū)ο缶幊搪劊夯A(chǔ)篇
- The DevOps 2.4 Toolkit
- Xamarin.Forms Projects
- Learning Salesforce Einstein
- Highcharts Cookbook
- UVM實戰(zhàn)
- Hands-On Neural Network Programming with C#
- Learning C++ by Creating Games with UE4
- Oracle Database XE 11gR2 Jump Start Guide
- Joomla!Search Engine Optimization
- Apache Solr for Indexing Data