ruandao
V2EX  ›  问与答

Server side consistency 的理解

  •  
  •   ruandao · Nov 17, 2019 · 1409 views
    This topic created in 2372 days ago, the information mentioned may be changed or developed.

    内容来自 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 replies    2019-11-17 16:36:43 +08:00
    ruandao
        1
    ruandao  
    OP
       Nov 17, 2019
    帮我看下,哪里不对的哈
    ruandao
        2
    ruandao  
    OP
       Nov 17, 2019
    选择 最终一致性的时候

    W + R <= N

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

    以及 对应的

    R 的数量策略? 出现分区问题的时候,R 的数量策略
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2795 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 15:34 · PVG 23:34 · LAX 08:34 · JFK 11:34
    ♥ Do have faith in what you're doing.