知识卡片
Saga的三个选择维度
分布式Saga不能只凭“用了消息”判断。通信可同步或异步,一致性可追求整体原子性或最终一致,协调可编排或舞蹈,组合成八种模式。整体原子目标意味着失败时试图恢复所有已完成更新,而最终一致允许服务各自提交后通过后续修复收敛。三维互相影响:降低通信或协调耦合,未必降低在整体原子要求下的实现复杂度。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 事务Saga · 查看原书依据
For example, the Epic Saga(sao) pattern indicates the values of synchronous, atomic, and orchestrated for communication, consistency, and coordination. The superscripts help you associate names to character sets more easily.
参考来源
- 位置:《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)
- 结论依据:原文的定义、示例或失败路径支持以下归纳:分布式Saga不能只凭“用了消息”判断。 其他条件结合本章同小节说明;不将模式目标当成已有运行保证。
- 原始内容:For example, the Epic Saga(sao) pattern indicates the values of synchronous, atomic, and orchestrated for communication, consistency, and coordination. The superscripts help you associate names to character sets more easily.