ruandao
V2EX  ›  问与答

Networks aren't reliable, so you'll need to support partition tolerance. 这句话要怎么理解

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

    分布式系统内,网络不可靠是必然的,这个我理解

    但是,要支持分区容忍,要怎么支持?具体是做什么操作? 重试?

    高可用,节点 over 的时候,将流量导到其他节点(可能不是最新的),

    强一致,节点 over 到一定数量的时候, 直接报错

    分区容忍,具体要怎么进行操作?

    1 replies    2019-11-17 23:36:03 +08:00
    Raymon111111
        1
    Raymon111111  
       Nov 17, 2019
    CAP 理论中, P 不可避免, 也就是说网络必然会出问题.

    那么 C 和 A 只能保一个

    partition tolerance 我理解是要考虑要 P 的可能而使得系统至少保住 C 或者 A 中的一个
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2832 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:20 · PVG 12:20 · LAX 21:20 · JFK 00:20
    ♥ Do have faith in what you're doing.