官术网_书友最值得收藏!

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
主站蜘蛛池模板: 教育| 蕉岭县| 莫力| 洛宁县| 密云县| 永修县| 吉木萨尔县| 昌邑市| 丰都县| 金塔县| 大化| 霍林郭勒市| 金平| 佛冈县| 独山县| 盈江县| 阜新| 资溪县| 响水县| 辽中县| 宽甸| 西华县| 鲁山县| 陇南市| 明星| 临武县| 博罗县| 观塘区| 黔西县| 龙川县| 河东区| 鸡东县| 繁峙县| 闸北区| 乌恰县| 慈溪市| 三都| 长阳| 循化| 太仓市| 漳州市|