当前位置:网站首页>CAP理论
CAP理论
2022-07-06 09:01:00 【棱镜7】
Zookeeper基于CP
1.Consistency(一致性):对于客户端的每次读操作,要么读到的是最新的数据,要么读取失败。
2.Availability(可用性):任何客户端的请求都能得到响应数据,不会出现响应错误。
3.Partition tolerance(分区容忍性):大多数分布式系统都分布在多个子网络。每个子网络就叫做一个区(partition)。分区容错的意思是,区间通信可能失败。比如,一台服务器放在中国,另一台服务器放在美国,这就是两个区,它们之间可能无法通信。
CAP理论说一个分布式系统不可能同时满足C、A、P这三个特性
对于一个分布式系统而言,P是前提,必须保证,因为只要有网络交互就一定会有延迟和数据丢失。
当选择了C(一致性)时,如果由于网络分区而无法保证特定信息是最新的,则系统将返回错误或超时。
当选择了A(可用性)时,系统将始终处理客户端的查询并尝试返回最新的可用的信息版本,即使由于网络分区而无法保证其是最新的。
边栏推荐
- 一篇文章带你了解-selenium工作原理详解
- 英雄联盟轮播图自动轮播
- Redis geospatial
- 【每日一题】搬运工 (DFS / DP)
- Sqlmap installation tutorial and problem explanation under Windows Environment -- "sqlmap installation | CSDN creation punch in"
- [oc]- < getting started with UI> -- common controls uibutton
- Using label template to solve the problem of malicious input by users
- Redis之五大基础数据结构深入、应用场景
- 五层网络体系结构
- The five basic data structures of redis are in-depth and application scenarios
猜你喜欢
Redis之连接redis服务命令
An article takes you to understand the working principle of selenium in detail
Redis geospatial
【图的三大存储方式】只会用邻接矩阵就out了
MapReduce工作机制
Redis之性能指标、监控方式
Once you change the test steps, write all the code. Why not try yaml to realize data-driven?
Redis之发布订阅
Lua script of redis
Intel distiller Toolkit - Quantitative implementation 1
随机推荐
[OC foundation framework] - [set array]
Once you change the test steps, write all the code. Why not try yaml to realize data-driven?
Reids之缓存预热、雪崩、穿透
Redis分布式锁实现Redisson 15问
Multivariate cluster analysis
在QWidget上实现窗口阻塞
Using label template to solve the problem of malicious input by users
Seven layer network architecture
运维,放过监控-也放过自己吧
Global and Chinese market of capacitive displacement sensors 2022-2028: Research Report on technology, participants, trends, market size and share
Redis之性能指标、监控方式
【每日一题】搬运工 (DFS / DP)
Sqlmap installation tutorial and problem explanation under Windows Environment -- "sqlmap installation | CSDN creation punch in"
requests的深入刨析及封装调用
The carousel component of ant design calls prev and next methods in TS (typescript) environment
【文本生成】论文合集推荐丨 斯坦福研究者引入时间控制方法 长文本生成更流畅
Global and Chinese market of linear regulators 2022-2028: Research Report on technology, participants, trends, market size and share
[OC foundation framework] - string and date and time >
Global and Chinese market for annunciator panels 2022-2028: Research Report on technology, participants, trends, market size and share
Redis connection redis service command