Server side consistency 的理解

2019-11-17 14:59:19 +08:00
 ruandao

内容来自 https://www.slideshare.net/jboner/scalability-availability-stability-patterns/196 的 195、196 页

N = the number of nodes that store replicas of the data

W = the number of replicas that need to acknowledge the receipt of the update before the update completes

R = the number of replicas that are contacted when a data object is accessed through a read operation

W + R > N strong consistency

W + R <= N eventual consistency

理解

N 存储复制数据节点的数量

W 在更新操作完成前,确认受到更新操作的节点的数量

R 进行一个读取操作时,接触的副本节点的数量

当 确认节点 + 读取涉及的节点的数量,大于 副本节点的总数时,是强一致

当 确认节点 + 读取节点的数量, 小于等于 副本节点的总数时,是最终一致性

1059 次点击
所在节点    问与答
2 条回复
ruandao
2019-11-17 15:12:01 +08:00
帮我看下,哪里不对的哈
ruandao
2019-11-17 16:36:43 +08:00
选择 最终一致性的时候

W + R <= N

W 的数量的策略?出现分区问题的时候,W 的数量的策略

以及 对应的

R 的数量策略? 出现分区问题的时候,R 的数量策略

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/620384

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX