当前位置:网站首页>浅谈对分布式模式下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
边栏推荐
- sqlite 查看表结构 android.database.sqlite.SQLiteException: table splitTable has no column named
- 计网 Packet Tracer仿真 | 简单易懂集线器和交换机对比(理论+仿真)
- Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
- kotlin 插件更新到1.3.21
- [Elastic-Job] Overview of Distributed Scheduling Tasks
- The feign call fails, JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
- npm WARN config global `--global`, `--local` are deprecated. Use `--location solution
- 通信原理——纠错编码 | 汉明码(海明码)手算详解
- Filter out egrep itself when using ps | egrep
- npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
猜你喜欢

计网 Packet Tracer仿真 | 简单易懂集线器和交换机对比(理论+仿真)

js中的this指向与原型对象

阿里一面,说说你知道消息中间件的应用场景有哪些?

Why is the redis single-threaded also so fast?

DeFi Token in the project management

feign调用不通问题,JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r

flutter 混合开发 module 依赖
![[Cloud native] Simple introduction and use of microservice Nacos](/img/06/b0594208d5b0cbf3ae8edd80ec12c4.png)
[Cloud native] Simple introduction and use of microservice Nacos

动态规划(一)| 斐波那契数列和归递

为什么redis是单线程还那么快?
随机推荐
利用phpstudy搭建DVWA
纯shell实现文本替换
[uiautomation] Get WeChat friend list (stored in txt)
quick-3.5 无法正常显示有混合纹理的csb文件
C language tutorial (1) - preparation
什么是 GameFi?
Build DVWA with phpstudy
数字孪生将成为进入“元宇宙”一项重要的途径
powershell统计文件夹大小
Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
sqlite 查看表结构 android.database.sqlite.SQLiteException: table splitTable has no column named
How to distinguish big and small endian in C language
How MySQL - depots table?A look at will understand
【Elastic-Job】分布式调度任务概览篇
Why is the redis single-threaded also so fast?
Using IIS10 to build an asp website in win11
最新MySql安装教学,非常详细
The feign call fails, JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
腾讯云GPU桌面服务器驱动安装
初识正则表达式