知识卡片

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

因果一致保留依赖

理解等级:中级

因果一致要求有依赖关系的操作以相容顺序可见,例如先改地址、再基于新地址下单;互不相关的并发操作可以采用不同观察顺序。它减少全局排序需求,但不自动保证业务流程正确使用了这些因果依赖。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Consistency and Availability · 查看原书依据

      Causal consistency is a consistency model that preserves the causal relationships between operations. In a causally consistent system, if one operation happens before another, all nodes will observe the operations in the same order.

    参考来源

    - 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第04章《Consistency and Availability》(来源项目book-sources;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch04.xhtml) - 结论依据:原文的机制或对比支持以下核心判断:因果一致要求有依赖关系的操作以相容顺序可见,例如先改地址、再基于新地址下单;互不相关的并发操作可以采用不同观察顺序。 本卡将相邻说明中的适用限制保留为解释。 - 原始内容:Causal consistency is a consistency model that preserves the causal relationships between operations. In a causally consistent system, if one operation happens before another, all nodes will observe the operations in the same order.