知识卡片
先满足因果依赖再发布
客户端把自己见过并依赖的前序事件带入下一次请求。接收者若先收到后续更新,就先缓冲,等缺失依赖全部应用再发布。没有因果关系的并发操作可以按不同顺序出现,好比论坛中回复必须在原帖之后,互不关联的分支无须排出统一先后。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 11. Replication and Consistency Causal Consistency · 查看原书依据
Causal consistency can be implemented using logical clocks [LAMPORT78] and sending context metadata with every message, summarizing which operations logically precede the current one. When the update is received from the server, it contains the latest version of the
参考来源
- 位置:《Database Internals》Chapter 11. Replication and Consistency(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch11.html#idm46104530253928,段 152)
- 结论依据:原文用逻辑时间、乱序更新和论坛讨论分别解释显式依赖与偏序。
- 原始内容:Causal consistency can be implemented using logical clocks [LAMPORT78] and sending context metadata with every message, summarizing which operations logically precede the current one. When the update is received from the server, it contains the latest version of the