当前位置:网站首页>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刷题:二叉树08(N叉树的最大深度)
- Graduation project: design seckill e-commerce system
- Imitation of "game bird" source code, mobile game issue evaluation, open service, open test collection, game download website template
- Interpretation of leveldb source code skiplist
- Redis: order collection Zset type data operation command
- How to view installed r packages in R language
- Select function variable column name in dplyr of R language
- 统计遗传学:第三章,群体遗传
- 沃博联结束战略评估,决定保留表现优异的博姿业务
- Rhcsa 04 - process management
猜你喜欢

5张图告诉你:同样是职场人,差距怎么这么大?

2020 Bioinformatics | TransformerCPI

leetcode刷题:二叉树07(二叉树的最大深度)

Statistical genetics: Chapter 3, population genetics

分布式CAP理论

EventBridge 在 SaaS 企业集成领域的探索与实践

Redis: hash type data operation command

博朗与Virgil Abloh于2021年为纪念博朗品牌100周年而联合打造的“功能性艺术”将在博物馆展出Abloh作品期间首次亮相

UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x98 in position 1093: illegal multibyte sequence

NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
随机推荐
Use NRM and NVM to manage your NPM source and node versions
[microservice openfeign] @feignclient detailed explanation
dried food! Generation of rare samples based on GaN
Parameterization of controls in katalon
分布式CAP理论
什么是上下文?
02 specific implementation of LS command
Application scheme of Puyuan ds1000z series digital oscilloscope in communication principle experiment
I.MX6U-ALPHA开发板(模仿STM32驱动开发实验)
Touch your hand and bring you a commonjs specification
Leetcode skimming: binary tree 08 (maximum depth of n-ary tree)
Leetcode skimming: binary tree 07 (maximum depth of binary tree)
Unity draws the trajectory of pinball and billiards
Redis: operation command for collecting set type data
软件测试是干什么的 发现缺陷错误,提高软件的质量
RHCSA 03 - 文件的基础权限
Emlog user registration plug-in is worth 80 yuan
微信公众号无限回调授权系统源码
[Logitech] m720
Keysight N9320B射频频谱分析仪解决轮胎压力监测方案