当前位置:网站首页>浅谈对分布式模式下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
边栏推荐
- Android software security and reverse analysis reading notes
- [Cloud native] Simple introduction and use of microservice Nacos
- js中的对象与函数的理解
- 带你搞懂MySQL隔离级别,两个事务同时操作同一行数据会怎样?
- 元宇宙的前景及四大赛道
- cocos create EditBox 输入文字被刘海屏遮挡修改
- Access数据库的查询
- 利用phpstudy搭建DVWA
- npm WARN config global `--global`, `--local` are deprecated. Use `--location solution
- MySQL高级语句(一)
猜你喜欢

MySQL错误-this is incompatible with sql_mode=only_full_group_by完美解决方案

Android software security and reverse analysis reading notes
![[uiautomation] Get WeChat friend list (stored in txt)](/img/26/1f3424c5998c52c6e10ced8529012a.png)
[uiautomation] Get WeChat friend list (stored in txt)

Linux修改MySQL数据库密码

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

【windows】--- SQL Server 2008 超详细安装教程

MySQL-如何分库分表?一看就懂

MySQL压缩包方式安装,傻瓜式教学

Year-end summary - the years are quiet~

Why does read in bash need to cooperate with while to read the contents of /dev/stdin
随机推荐
Pure shell implementation of text replacement
How to distinguish big and small endian in C language
quick-3.5 lua调用c++
Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?
正则表达式基础知识
【windows】--- SQL Server 2008 超详细安装教程
npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】
Regular Expression Basics
什么是 GameFi?
js中的this指向与原型对象
Linux modify MySQL database password
Install mysqldb in mac10.14
数字孪生将成为进入“元宇宙”一项重要的途径
Android软件安全与逆向分析阅读笔记
sql 添加 default 约束
Eternal blue bug reappears
C language tutorial (2) - printf and data types that come with c
5 methods of MySQL paging query
MySQL-如何分库分表?一看就懂