当前位置:网站首页>浅谈对分布式模式下CAP的理解
浅谈对分布式模式下CAP的理解
2022-07-31 05:15:00 【浮生若梦l】
1.首先说一下cap代表什么
c代表一致性
a代表可用性
p代表容错性
2.一个分布式系统最多能同时满足Consistency(一致性)、 Availability(可用性)、 Partition tolerance(分区容错性)三个特性中的两个,三者不可兼得。
3.详细说明
一致性指:在一致性的需求下,当一个系统在数据一致的状态下执行更新操作后,应该保证系统 的数据仍然处于一致的状态。
可用性是指:系统提供的服务必须一直处于可用的状态,对于用户的每一个操作请求总是能够在 有限的时间内返回结果。
分区容错性指:分布式系统在遇到任何网络分区故障的时候,仍然需要能够保证对外提供满足一 致性和可用性的服务,除非是整个网络环境都发生了故障 。
4.列如:
zk集群保证了CP、redis集群保证了AP
边栏推荐
猜你喜欢
Gradle sync failed: Uninitialized object exists on backward branch 142
2021美赛C题M奖思路
[windows]--- SQL Server 2008 super detailed installation tutorial
常见JVM面试题及答案整理
Build DVWA with phpstudy
Linux中mysql密码修改方法(亲测可用)
Fragmented NFT (Fractional NFT)
npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
初识正则表达式
Using IIS10 to build an asp website in win11
随机推荐
Pure shell implementation of text replacement
数据库 | SQL查询进阶语法
[Cloud native] Ribbon is no longer used at the bottom layer of OpenFeign starting from the 2020.0.X version
Error: Cannot find module ‘D:\Application\nodejs\node_modules\npm\bin\npm-cli.js‘
Markdown 帮助文档
cocos2d-x-3.2 Physics
quick-3.5 无法正常显示有混合纹理的csb文件
NFT与数字藏品到底有何区别?
powershell统计文件夹大小
cocos2d-x-3.2创建项目方法
Android软件安全与逆向分析阅读笔记
【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】
quick-3.5 无法使用模拟器修改
[Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]
C language tutorial (3) - if and loop
For penetration testing methods where the output point is a timestamp (take Oracle database as an example)
mysql password modification method in Linux (pro-test available)
sqlite 查看表结构 android.database.sqlite.SQLiteException: table splitTable has no column named
sql 外键约束【表关系绑定】
GUCCI、LV等奢侈品巨头如何布局元宇宙的,其他品牌应该跟上吗?