当前位置:网站首页>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(可用性)时,系统将始终处理客户端的查询并尝试返回最新的可用的信息版本,即使由于网络分区而无法保证其是最新的。
边栏推荐
- Activiti7工作流的使用
- Kratos ares microservice framework (I)
- 基于WEB的网上购物系统的设计与实现(附:源码 论文 sql文件)
- Redis之核心配置
- Advanced Computer Network Review(4)——Congestion Control of MPTCP
- 在QWidget上实现窗口阻塞
- [text generation] recommended in the collection of papers - Stanford researchers introduce time control methods to make long text generation more smooth
- Redis core configuration
- Full stack development of quartz distributed timed task scheduling cluster
- Redis之五大基础数据结构深入、应用场景
猜你喜欢
随机推荐
Post training quantification of bminf
Global and Chinese market of linear regulators 2022-2028: Research Report on technology, participants, trends, market size and share
go-redis之初始化连接
In depth analysis and encapsulation call of requests
postman之参数化详解
Redis connection redis service command
Redis之发布订阅
Master slave replication of redis
Pytest parameterization some tips you don't know / pytest you don't know
Five layer network architecture
CUDA implementation of self defined convolution attention operator
What is MySQL? What is the learning path of MySQL
How to intercept the string correctly (for example, intercepting the stock in operation by applying the error information)
A convolution substitution of attention mechanism
Appears when importing MySQL
Pytest's collection use case rules and running specified use cases
Sentinel mode of redis
Design and implementation of film and television creation forum based on b/s (attached: source code paper SQL file project deployment tutorial)
Redis core configuration
Kratos战神微服务框架(一)







![[OC foundation framework] - [set array]](/img/b5/5e49ab9d026c60816f90f0c47b2ad8.png)
