← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2313.e.5.f.10.b.3.h.1.a

订单事件承接后续处理

理解等级:高级

订单服务在完成自身必须做的校验和状态保存后,发布OrderPlaced事件,让商品、配送及邮件服务各自反应。后续处理可独立推进,减少下单路径对所有下游同步成功的依赖;本段没有给出数据库提交与消息发布的原子性机制,不能据此认定不会丢事件。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Monoliths and Microservices · 查看原书依据

      Now, let us take the example of the OrderService and try to redesign it based on choreography. Let us imagine that instead of the OrderService making specific calls to other services as illustrated in Figure 2.6, it makes a call to the inventory service to ensure that there are enough items to fulfill an order. After verifications, it updates its own storage with relevant information

    参考来源

    - 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第02章《Monoliths and Microservices》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch02.xhtml) - 结论依据:原文以服务职责、依赖或运行情境展开本卡主题;本卡保留其作用条件与代价,不把局部优势推广为无条件保证。 - 原始内容:Now, let us take the example of the OrderService and try to redesign it based on choreography. Let us imagine that instead of the OrderService making specific calls to other services as illustrated in Figure 2.6, it makes a call to the inventory service to ensure that there are enough items to fulfill an order. After verifications, it updates its own storage with relevant information