- 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
推薦閱讀
- Learning LibGDX Game Development(Second Edition)
- Learn TypeScript 3 by Building Web Applications
- Intel Galileo Essentials
- Getting started with Google Guava
- Designing Hyper-V Solutions
- 老“碼”識(shí)途
- 名師講壇:Java微服務(wù)架構(gòu)實(shí)戰(zhàn)(SpringBoot+SpringCloud+Docker+RabbitMQ)
- Drupal 8 Configuration Management
- Unity UI Cookbook
- Learning OpenStack Networking(Neutron)(Second Edition)
- NoSQL數(shù)據(jù)庫原理
- Python爬蟲、數(shù)據(jù)分析與可視化:工具詳解與案例實(shí)戰(zhàn)
- 編程改變生活:用Python提升你的能力(進(jìn)階篇·微課視頻版)
- Visual FoxPro 6.0程序設(shè)計(jì)
- 并行編程方法與優(yōu)化實(shí)踐