← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2313.e.5.f.10.b.3.i.2.c.2.a

响应路径只保留必要工作

理解等级:中级

同步响应路径应保留决定当前业务结果必须完成的工作,把可独立后续处理的任务移到事件流程。例如下单不能只为更快返回就省略必要库存校验;是否可延后支付、配送等步骤须依据具体业务契约,而非一概认定都不重要。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Architecture of Distributed Systems · 查看原书依据

      Consider the OrderService, when customers place an order, order service should be able to provide a success as soon as possible. This is the most critical part of the application and brings business to the organization. A good design will ensure that any processing that is critical to respond to the user with a success or failure is only processed in this blocking path. In

    参考来源

    - 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第03章《Architecture of Distributed Systems》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch03.xhtml) - 结论依据:原文给出本卡对象的职责及相关使用情境,本卡保留相应边界,不将具体产品功能或概述推广为无条件保证。 - 原始内容:Consider the OrderService, when customers place an order, order service should be able to provide a success as soon as possible. This is the most critical part of the application and brings business to the organization. A good design will ensure that any processing that is critical to respond to the user with a success or failure is only processed in this blocking path. In