当前位置:网站首页>浅谈对分布式模式下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
边栏推荐
猜你喜欢

this指向问题

为什么bash中的read要配合while才能读取/dev/stdin的内容

【云原生】原来2020.0.X版本开始的OpenFeign底层不再使用Ribbon了

NFTs: The Heart of Digital Ownership

npm WARN config global `--global`, `--local` are deprecated. Use `--location solution

Android软件安全与逆向分析阅读笔记

Build DVWA with phpstudy
![[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?](/img/40/be3a30743ee2bc6c82f82ab852f29c.png)
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?

2021美赛C题M奖思路

【云原生】开源数据分析 SPL 轻松应对 T+0
随机推荐
mysql常用命令
Markdown 帮助文档
For penetration testing methods where the output point is a timestamp (take Oracle database as an example)
feign调用不通问题,JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
MySQL compressed package installation, fool teaching
MySQL-如何分库分表?一看就懂
npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
cocos create EditBox 输入文字被刘海屏遮挡修改
SSH自动重连脚本
MySQL分页查询的5种方法
Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?
C language tutorial (2) - printf and data types that come with c
Access数据库的查询
Several solutions for mysql startup error The server quit without updating PID file
GUCCI、LV等奢侈品巨头如何布局元宇宙的,其他品牌应该跟上吗?
SQLite 查询表中每天插入的数量
(Crypto essential dry goods) Detailed analysis of the current NFT trading markets
Detailed explanation of pointers in C language
The server time zone value ‘й‘ is unrecognized or represents more than one time zone
Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'