知识卡片
可调一致性的读写交集
N 是保存数据的节点数,写成功需 W 个确认,读成功需 R 个响应。在同一组 N 个指定副本里,R+W>N 使任意读写集合相交。N=3、R=W=2 时可承受一个不可用副本。较低 W 可加快写确认,较高 R 则增加读需等待的节点,反过来也成立。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 11. Replication and Consistency Eventual Consistency · 查看原书依据
Choosing consistency levels where (R + W > N), the system can guarantee returning the most recent written value, because there’s always an overlap between read and write sets. For example, if N = 3, W = 2, and
参考来源
- 位置:《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#tunable_consistency,段 188)
- 结论依据:原文给出变量定义、交集不等式、三副本示例及读写等待的权衡。
- 原始内容:Choosing consistency levels where (R + W > N), the system can guarantee returning the most recent written value, because there’s always an overlap between read and write sets. For example, if N = 3, W = 2, and