← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 10294.a.4.a.2.c.1.b.9.b.2 · 生成模型:未记录

多写寄存器的合并策略

理解等级:中级

末次写入获胜寄存器给值附唯一、可全序的时间戳,冲突时保留较大者,合并与到达次序无关。若业务需看见每项并发写,可以保留多值供应用决定如何合并。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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