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

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
主站蜘蛛池模板: 定日县| 晋城| 奉化市| 西青区| 卢湾区| 砀山县| 萨嘎县| 隆德县| 黄冈市| 五大连池市| 霍林郭勒市| 宜兰县| 广南县| 仲巴县| 昭通市| 苍梧县| 石嘴山市| 怀远县| 阳高县| 镶黄旗| 鄂州市| 长治县| 梨树县| 肥城市| 烟台市| 固始县| 仁怀市| 连城县| 苍南县| 石屏县| 南召县| 潍坊市| 进贤县| 承德市| 石渠县| 夏邑县| 太康县| 高淳县| 韶山市| 吴堡县| 兴安县|