V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ruandao
V2EX  ›  问与答

Server side consistency 的理解

  •  
  •   ruandao · 2019-11-17 14:59:19 +08:00 · 1044 次点击
    这是一个创建于 1593 天前的主题,其中的信息可能已经有所发展或是发生改变。

    内容来自 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 进行一个读取操作时,接触的副本节点的数量

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

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

    2 条回复    2019-11-17 16:36:43 +08:00
    ruandao
        1
    ruandao  
    OP
       2019-11-17 15:12:01 +08:00
    帮我看下,哪里不对的哈
    ruandao
        2
    ruandao  
    OP
       2019-11-17 16:36:43 +08:00
    选择 最终一致性的时候

    W + R <= N

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

    以及 对应的

    R 的数量策略? 出现分区问题的时候,R 的数量策略
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   988 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:12 · PVG 04:12 · LAX 13:12 · JFK 16:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.