分布式系统的CAP原则

CAP stands for Consistency, Availability, and Partition tolerance.  The theorem simply states that any shared-data system can only achieve two of these three. 

       Consistency (all nodes see the same data at the same time)

       Availability (a guarantee that every request receives a response about whether it was successful or failed)

       Partition tolerance (the system continues to operate despite arbitrary message loss)

 CAP原则的核心是只能满足其中两个,无法全部满足,这一点已被证明。

在NoSQL中,通常有两个层次的一致性:
第一种是强一致性,既集群中的所有机器状态同步保持一致。
第二种是最终一致性,既可以允许短暂的数据不一致,但数据最终会保持一致。
在分布式集群中,最终一致性通常是更合理的选择。

转载于:https://www.cnblogs.com/-U2-/p/3486284.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值