当前位置:网站首页>分布式之 CAP 原则
分布式之 CAP 原则
2022-07-24 00:14:00 【一只小小狗】
CAP定义

Consistency 一致性: 所有节点在同一时间的数据完全一致.一致性可以分为以下三种:
强一致性: 更新操作后,后续操作一定取到的是更新后的结果
弱一致性: 更新操作后,后续操作可以容忍部分或全部没有更新
最终一致性: 更新操作后,在一段时间后要求能够取到更新后的结果
Availability 可用性: 服务在正常响应时间内一致可用
Partition Tolerance 分区容错性: 分布式系统在遇到某节点或网络分区故障的时候,仍然能够对外提供满足一致性或可用性的服务
应用场景
CA without P 放弃系统扩展性,不部署子节点,比如单节点的关系型数据库
CP without A 在分布式服务器中保持强一致性,但可能会导致同步时间长,比如分布式数据库 redis
AP without C 放弃一致性,保持高可用.每个节点使用本地数据提供服务.使得全局数据不一致.比如使用手机网购,可能浏览商品时还有货,但下单时系统告诉你下单失败.
如有错误欢迎指正
边栏推荐
- How to open a low commission account? Is it safe?
- NGFW portal authentication experiment
- OA项目之我的会议(查询)
- It basic English
- QT | set part size sizehint, minimumsizehint, sizepolicy, stretch factor
- L2TP的LAC自动拨号实验
- 进步成长的快乐
- [hcip] OSPF experiment under mGRE environment, including multi process bidirectional republication and OSPF special area
- 投资的物质回报
- Docker builds sonarqube, mysql5.7 environment
猜你喜欢

JMeter中的自动转义处理

jenkins下使用声明式(Declarative)和Jenkinsfile的方式构建Pipeline流水线项目

链表——206. 反转链表(这题很重要)

Super simple training of force deduction and problem brushing

太空射击 第07课: 添加图形

mongodb的多数据源配置

OA项目之我的会议(查询)

【微服务架构】分布式事务

【Android Kotlin】Property、Getter 和 Setter

Deep learning 9 feedforward neural network 2: realize feedforward neural network and model optimization
随机推荐
Notes on cmake compilation tool
Write all the code as soon as you change the test steps? Why not try yaml to realize data-driven?
474-82(8、221、300)
ansible命令自动补全
子矩阵的和
盘点为下个牛市做准备的10个新Layer1
Idea cannot be switched to Chinese
Automatic escape processing in JMeter
一改测试步骤代码就全写?为什么不试试用 Yaml实现数据驱动?
July 23, 2022 - mapper file description
JS學習筆記-- 數組方法 底層實現方式
day2
Pipeline pipeline project is built by declarative and jenkinsfile under Jenkins
太空射击 第07课: 添加图形
【微信小程序】拍卖商品详情页设计与交互实现(包含倒计时、实时更新出价)
Sentinel link mode flow control failure solution
Windows软件:如何安装Mysql5.7并配置环境变量
C language explanation series -- understanding of functions (2) how to use functions to exchange the values of two integer variables
vulnhub wpwn: 1
Deep learning 9 feedforward neural network 2: realize feedforward neural network and model optimization