← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2411.c.5

童话Saga放宽整体原子

理解等级:高级

Fairy Tale Saga采用同步、最终一致和编排。协调器仍掌握请求响应与异常路径,各领域服务独立完成本地事务,协调器不必在一场整体事务里使全部步骤同时成功。暂时不可用的服务可以留待恢复后处理,也可以安排补偿;它用短期状态不一致换取更容易理解和恢复的流程。同步通信和中央协调仍限制独立性,最终一致也必须有真正的修复机制。

与[[史诗Saga的补偿代价]]相比,核心放宽的是整体原子要求。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 事务Saga · 查看原书依据

      In this pattern, an orchestrator exists to coordinate request, response, and error handling. However, the orchestrator isn’t responsible for managing transactions, which each domain service retains responsibility for (for examples of common workflows, see Chapter 11). Thus the orchestrator can manage compensating calls, but without the requirement of occurring within an active transaction.

    参考来源

    - 位置:《Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)》第12章《Chapter 12. Transactional Sagas》(来源项目:book-sources;源文件:extracted/Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)/_epub-src/OEBPS/ch12.xhtml) - 结论依据:原文的定义、示例或失败路径支持以下归纳:Fairy Tale Saga采用同步、最终一致和编排。 其他条件结合本章同小节说明;不将模式目标当成已有运行保证。 - 原始内容:In this pattern, an orchestrator exists to coordinate request, response, and error handling. However, the orchestrator isn’t responsible for managing transactions, which each domain service retains responsibility for (for examples of common workflows, see Chapter 11). Thus the orchestrator can manage compensating calls, but without the requirement of occurring within an active transaction.