知识卡片

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

编排失败后的补偿

理解等级:高级

跨服务步骤已经部分成功而后续失败时,编排者可以发起补偿操作,例如取消先前安排的配送,并向用户说明失败。这是新的业务操作,用于修正已有结果;不能据此声称它等于单数据库事务的瞬间回滚或必然成功。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Monoliths and Microservices · 查看原书依据

      Facilitates complex transactions and workflows: Certain processes require transactions that span multiple services, where the success of the process depends on the successful completion of all constituent operations. Orchestration supports the implementation of such complex transactions, including compensating transactions for rollback in case of failures, ensuring data consistency and integrity across services. Consider for example that there is a sudden surge in traffic into the

    参考来源

    - 位置:《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) - 结论依据:原文以服务职责、依赖或运行情境展开本卡主题;本卡保留其作用条件与代价,不把局部优势推广为无条件保证。 - 原始内容:Facilitates complex transactions and workflows: Certain processes require transactions that span multiple services, where the success of the process depends on the successful completion of all constituent operations. Orchestration supports the implementation of such complex transactions, including compensating transactions for rollback in case of failures, ensuring data consistency and integrity across services. Consider for example that there is a sudden surge in traffic into the