知识卡片
多写寄存器的合并策略
末次写入获胜寄存器给值附唯一、可全序的时间戳,冲突时保留较大者,合并与到达次序无关。若业务需看见每项并发写,可以保留多值供应用决定如何合并。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 11. Replication and Consistency Strong Eventual Consistency and CRDTs · 查看原书依据
To save and replicate values, we can use registers. The simplest version of the register is the last-write-wins register (LWW register), which stores a unique, globally ordered timestamp attached to each value to resolve conflicts. In case of a
参考来源
- 位置:《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#idm46104530060792,段 230)
- 结论依据:原文区分单一时间戳获胜和多值寄存器的保留规则。
- 原始内容:To save and replicate values, we can use registers. The simplest version of the register is the last-write-wins register (LWW register), which stores a unique, globally ordered timestamp attached to each value to resolve conflicts. In case of a