当前位置:网站首页>Distributed cap theory
Distributed cap theory
2022-07-04 04:30:00 【InfoQ】
CAP A brief introduction to the theory

CAP Two out of three
Uniformity (Consistency): A write operation returns success , Then all subsequent read requests must read this new data ; If the return fails , Then all read operations cannot read this data . All nodes access the same latest data .
Usability (Availability): High availability for data updates , Requests can be processed in a timely manner , Not always waiting for , Even if a node fails .
Partition tolerance (Partition tolerance): Can tolerate network partition , When the network is disconnected , The separated nodes can still provide services to the outside world .
Yes CAP Theoretical understanding
- If one copy is allowed to update , It will lead to inconsistent data , That is, to lose C nature .
- If in order to ensure consistency , Set the replica on one side of the partition to unavailable , So lost again A nature .
- Unless two copies can communicate with each other , To guarantee C And promise A, This in turn leads to the loss of P nature .
CAP In depth theoretical understanding
- First , Because zoning rarely happens , So there's no reason to sacrifice when there's no partition in the system C or A.
- secondly ,C And A The trade-offs can occur repeatedly in the same system with very small granularity , And every decision may be made because of specific operation , Even because it involves specific data or users .
- Last , All three properties can be measured in degree , It's not black or white with or without . Usability is obviously in 0% To 100% Between successive changes , There are many levels of consistency , Even zoning can be subdivided into different meanings , For example, different parts of the system can have different cognition about whether there is a partition .
边栏推荐
猜你喜欢

Leetcode brush questions: binary tree 05 (flip binary tree)

分布式系统:what、why、how

PPt 教程,如何在 PowerPoint 中将演示文稿另存为 PDF 文件?

Flink learning 8: data consistency

Parameterization of controls in katalon

Rhcsa 04 - process management

02 specific implementation of LS command

普源DS1000Z系列数字示波器在通信原理实验中的应用方案

leetcode:1314. 矩阵区域和【二维前缀和模板】

戳气球和布尔运算问题(巨难)
随机推荐
02 specific implementation of LS command
Flink learning 7: application structure
什么是上下文?
Understand the principle of bytecode enhancement technology through the jvm-sandbox source code
Krypton saikr daily question - CTF
深入解析结构化异常处理(SEH) - by Matt Pietrek
RPC技术
01 QEMU starts the compiled image vfs: unable to mount root FS on unknown block (0,0)
陪驾注意事项 这23点要注意!
Detailed explanation of event cycle
R语言dplyr中的Select函数变量列名
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x98 in position 1093: illegal multibyte sequence
RHCSA 04 - 进程管理
【安全攻防】序列化与反序列,你了解多少?
Pytest basic self-study series (I)
软件测试是干什么的 发现缺陷错误,提高软件的质量
Touch your hand and bring you a commonjs specification
微信脑力比拼答题小程序_支持流量主带最新题库文件
ROS2中CMake编译选项的设置