当前位置:网站首页>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(可用性)时,系统将始终处理客户端的查询并尝试返回最新的可用的信息版本,即使由于网络分区而无法保证其是最新的。
边栏推荐
- Global and Chinese markets for hardware based encryption 2022-2028: Research Report on technology, participants, trends, market size and share
- Redis core configuration
- Advanced Computer Network Review(4)——Congestion Control of MPTCP
- Ijcai2022 collection of papers (continuously updated)
- Redis之连接redis服务命令
- Intel distiller Toolkit - Quantitative implementation 3
- IDS cache preheating, avalanche, penetration
- Solve the problem of inconsistency between database field name and entity class attribute name (resultmap result set mapping)
- requests的深入刨析及封装调用
- Simclr: comparative learning in NLP
猜你喜欢
Advanced Computer Network Review(3)——BBR
一篇文章带你了解-selenium工作原理详解
Blue Bridge Cup_ Single chip microcomputer_ Measure the frequency of 555
[OC foundation framework] - [set array]
In order to get an offer, "I believe that hard work will make great achievements
Redis cluster
Lua script of redis
Servlet learning diary 8 - servlet life cycle and thread safety
Redis' performance indicators and monitoring methods
Redis connection redis service command
随机推荐
Le modèle sentinelle de redis
Redis之Lua脚本
In order to get an offer, "I believe that hard work will make great achievements
BN folding and its quantification
requests的深入刨析及封装调用
Servlet learning diary 7 -- servlet forwarding and redirection
[oc]- < getting started with UI> -- learning common controls
Detailed explanation of cookies and sessions
Blue Bridge Cup_ Single chip microcomputer_ PWM output
Five layer network architecture
Advanced Computer Network Review(4)——Congestion Control of MPTCP
Redis之核心配置
有软件负载均衡,也有硬件负载均衡,选择哪个?
[OC foundation framework] - string and date and time >
MySQL数据库优化的几种方式(笔面试必问)
Kratos战神微服务框架(一)
Redis geospatial
什么是MySQL?MySql的学习之路是怎样的
Global and Chinese markets for small seed seeders 2022-2028: Research Report on technology, participants, trends, market size and share
【每日一题】搬运工 (DFS / DP)