当前位置:网站首页>浅谈对分布式模式下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
边栏推荐
- 动态规划(一)| 斐波那契数列和归递
- 【Elastic-Job源码分析】——作业监听器
- cocoscreator3.5.2打包微信小游戏发布到QQ小游戏修改
- powershell统计文件夹大小
- 什么是EVM兼容链?
- Digital twins will be an important way to enter the "metaverse"
- Xiaobai learns reptiles - introduction to reptiles
- 一个简单的bash转powershell案例
- Filter out egrep itself when using ps | egrep
- [windows]--- SQL Server 2008 super detailed installation tutorial
猜你喜欢

UiBot存在已打开的MicrosoftEdge浏览器,无法执行安装

小米手机短信定位服务激活失败

flutter 混合开发 module 依赖

For penetration testing methods where the output point is a timestamp (take Oracle database as an example)

带你搞懂MySQL隔离级别,两个事务同时操作同一行数据会怎样?

Year-end summary - the years are quiet~

最新MySql安装教学,非常详细

Install mysqldb in mac10.14
![[swagger close] The production environment closes the swagger method](/img/43/17be22626ba152b33beaf03f92fbec.png)
[swagger close] The production environment closes the swagger method

对js的数组的理解
随机推荐
Linux modify MySQL database password
quick-3.5 ActionTimeline的setLastFrameCallFunc调用会崩溃问题
为什么redis是单线程还那么快?
sqlmap injection tutorial common commands
MySQL压缩包方式安装,傻瓜式教学
(Crypto必备干货)详细分析目前NFT的几大交易市场
Eternal blue bug reappears
[Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]
NFTs: The Heart of Digital Ownership
js中的对象与函数的理解
Understanding SSRF, this article is enough
使用ps | egrep时过滤排除掉egrep自身
feign调用不通问题,JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
cocos2d-x-3.2图片灰化效果
Error: Cannot find module ‘D:\Application\nodejs\node_modules\npm\bin\npm-cli.js‘
The server time zone value ‘й‘ is unrecognized or represents more than one time zone
自定dialog 布局没有居中解决方案
[Cloud native] Simple introduction and use of microservice Nacos
What is an EVM Compatible Chain?
一个简单的bash转powershell案例