- 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
推薦閱讀
- HornetQ Messaging Developer’s Guide
- 玩轉Scratch少兒趣味編程
- The Supervised Learning Workshop
- Learning AWS Lumberyard Game Development
- WordPress Plugin Development Cookbook(Second Edition)
- Data Analysis with Stata
- C++ 從入門到項目實踐(超值版)
- 學Python也可以這么有趣
- 可解釋機器學習:模型、方法與實踐
- Angular開發入門與實戰
- C/C++程序員面試指南
- C語言程序設計
- Learning Grunt
- Hack與HHVM權威指南
- Modular Programming with JavaScript