知识卡片
向量时钟识别版本分叉
向量为每个参与者保存一个逻辑计数,新事件推进本地分量,交换状态时按分量取最大。两个版本的向量若各有领先的分量,就表示双方经验中含有对方尚不知道的事件,可识别并发分叉。如何合并并发业务值仍由应用或冲突规则决定。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 11. Replication and Consistency Vector clocks · 查看原书依据
A vector clock is a structure for establishing a partial order between the events, detecting and resolving divergence between the event chains. With vector clocks, we can simulate common time, global state, and represent asynchronous events as synchronous ones.
参考来源
- 位置:《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#vector_clocks,段 156)
- 结论依据:原文用逻辑时钟向量、按分量合并和 Riak 的两条链说明因果历史与解决策略的区别。
- 原始内容:A vector clock is a structure for establishing a partial order between the events, detecting and resolving divergence between the event chains. With vector clocks, we can simulate common time, global state, and represent asynchronous events as synchronous ones.