当前位置:网站首页>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+Pytest自动化测试框架实战
- Pytest之收集用例规则与运行指定用例
- [three storage methods of graph] just use adjacency matrix to go out
- go-redis之初始化连接
- Intel distiller Toolkit - Quantitative implementation 3
- 基于B/S的医院管理住院系统的研究与实现(附:源码 论文 sql文件)
- Selenium+pytest automated test framework practice (Part 2)
- 有软件负载均衡,也有硬件负载均衡,选择哪个?
- 068.查找插入位置--二分查找
- 七层网络体系结构
猜你喜欢

Withdrawal of wechat applet (enterprise payment to change)

软件负载均衡和硬件负载均衡的选择

【shell脚本】——归档文件脚本

Redis cluster

CUDA implementation of self defined convolution attention operator

Advanced Computer Network Review(3)——BBR

Persistence practice of redis (Linux version)

Opencv+dlib realizes "matching" glasses for Mona Lisa

Advanced Computer Network Review(3)——BBR

基于B/S的医院管理住院系统的研究与实现(附:源码 论文 sql文件)
随机推荐
甘肃旅游产品预订增四倍:“绿马”走红,甘肃博物馆周边民宿一房难求
[oc]- < getting started with UI> -- learning common controls
Global and Chinese market of electric pruners 2022-2028: Research Report on technology, participants, trends, market size and share
068.查找插入位置--二分查找
CUDA implementation of self defined convolution attention operator
Opencv+dlib realizes "matching" glasses for Mona Lisa
How to intercept the string correctly (for example, intercepting the stock in operation by applying the error information)
为拿 Offer,“闭关修炼,相信努力必成大器
The five basic data structures of redis are in-depth and application scenarios
Redis之核心配置
SimCLR:NLP中的对比学习
Intel distiller Toolkit - Quantitative implementation 1
QML type: locale, date
Redis之cluster集群
一改测试步骤代码就全写 为什么不试试用 Yaml实现数据驱动?
AcWing 2456. Notepad
Once you change the test steps, write all the code. Why not try yaml to realize data-driven?
Redis之Bitmap
【图的三大存储方式】只会用邻接矩阵就out了
Mysql database recovery (using mysqlbinlog command)