分布式理论-CAP/BASE/

分布式理论之CAP/BASE

CAP

CAP 定理(CAP theorem)又被称作布鲁尔定理(Brewer's theorem),是加州大学伯克利分校的计算机科学家埃里克·布鲁尔(Eric Brewer)在 2000 年的 ACM PODC 上提出的一个猜
想。2002 年,麻省理工学院的赛斯·吉尔伯特(Seth Gilbert)和南希·林奇(Nancy Lynch)发表了布鲁尔猜想的证明,使之成为分布式计算领域公认的一个定理。对于设计分布式系统的架构
师来说,CAP 是必须掌握的理论。

参考文献:(http://robertgreiner.com/about/)((http://robertgreiner.com/2014/08/cap-theorem-revisited/)

CAP理论是指:在一个分布式系统(指互相连接并共享数据的节点的集合)中,当涉及读写操作时,只能保证一致性(Consistence)、可用性(Availability)、分区容错性(PartitionTolerance)三者中的两个,另外一个必须被牺牲。

一致性(Consistency)

A read is guaranteed to return the most recent write for a given client.
对某个指定的客户端来说,读操作保证能够返回最新的写操作结果。

可用性(Availability)

A non-failing node will return a reasonable response within a reasonable amount of time (no error or timeout).
非故障的节点在合理的时间内返回合理的响应(不是错误和超时的响应)。

分区容忍性(Partition Tolerance)

The system will continue to function when network partitions occur
当出现网络分区后,系统能够继续“履行职责”。

CAP应用

BASE

posted @ 2022-05-24 10:14  Yichener  阅读(83)  评论(0)    收藏  举报