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

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
主站蜘蛛池模板: 旬邑县| 调兵山市| 东乡| 丰原市| 武隆县| 龙里县| 安丘市| 平阳县| 娄底市| 延安市| 项城市| 苏尼特右旗| 淄博市| 紫阳县| 宁波市| 绵阳市| 徐州市| 堆龙德庆县| 迁安市| 迁西县| 临城县| 永嘉县| 邢台县| 盐池县| 济阳县| 宜兰县| 汽车| 禄丰县| 岐山县| 东城区| 山西省| 宜章县| 平昌县| 奉节县| 天祝| 大庆市| 长葛市| 大英县| 习水县| 尖扎县| 女性|