当前位置:网站首页>Understanding of cap
Understanding of cap
2022-07-28 01:05:00 【Orange ꦿ. ๓】
1.CAP Theorem :
In a distributed system ,Consistency( Uniformity )、Availability( Usability )、Partition tolerance( Partition tolerance ), Three can't get at the same time
Uniformity (c): All nodes can access the latest data
Usability (A): Every request can be answered , Whether the request succeeds or fails
Partition tolerance (P): Except for all overall network failures , No other fault can make the whole system unavailable
2.CAP The theory is that in a distributed storage system , At most, we can only achieve the above two points . And because of the current network hardware will certainly appear delay packet loss and other problems , So partition tolerance is what we have to achieve , So we can only make trade-offs between consistency and availability
CA: If you don't ask for P( Zoning is not allowed ), be C( Strong consistency ) and A( Usability ) It can be guaranteed . But give up P At the same time, it means giving up the scalability of the system , That is, distributed nodes are limited , There is no way to deploy child nodes , This is against the original intention of distributed system design
CP: If you don't ask for A( You can use ), Each request requires strong consistency between servers , and P( Partition ) Will cause unlimited synchronization time ( That is to wait for the data synchronization to access the service normally ), In case of network failure or message loss, etc , It's about sacrificing the user experience , Wait for all data to be consistent before allowing users to access the system
AP: To be highly available and allow partitioning , You need to give up consistency . Once zoning happens , Nodes may lose contact with each other , For high availability , Each node can only provide services with local data , This will lead to global data inconsistency .
边栏推荐
- 推荐系统-模型(三):精排模型【LR、GBDT、Wide&Deep、DCN、DIN、DIEN、MMOE、PLE】
- canvas模拟输入框输入
- Swear, swear, swear
- 红队大杀器 Behinder_v4.0(冰蝎4.0)
- Jerry Zhi has problems in real-time adjustment of sound change effect in magic sound mode [chapter]
- Confused SCM matrix keys
- Shell系统学习之循环结构
- Data analysis: disassembly method (details)
- Data visualization - White Snake 2: black snake robbery (3)
- 为华为打造无美系设备的产线,台积电三星能做到吗?
猜你喜欢

Basic operations of MySQL database (I) --- Based on Database
![[BuildRelease Management]Parabuild](/img/80/11c2b539c217ecd6ba55668d3e71e9.png)
[BuildRelease Management]Parabuild

Recurrence of fastjson historical vulnerabilities

网络安全漏洞分析与漏洞复现

The most detailed summary of common English terms in the chip industry (quick grasp of graphics and text)
![[BuildRelease Management]Parabuild](/img/80/11c2b539c217ecd6ba55668d3e71e9.png)
[BuildRelease Management]Parabuild

芯片行业常用英文术语最详细总结(图文快速掌握)

Postman 的使用

融云 IM & RTC 能力上新盘点

Ink wheel salon | Li Wenjie, Peking University: a graph database system for knowledge atlas application gstore
随机推荐
0-1背包问题
Wavelet transform learning notes
Process and process scheduling
Multithreading and multithreaded programming
Can TSMC Samsung build a production line without American equipment for Huawei?
小波变换学习笔记
Map set
Examples of application of JMeter in performance testing
[BuildRelease Management]Parabuild
Array related knowledge
Impact of privilege changes on existing connections
Recommended system - offline recall: u2tag2i, ICF
Read cmake in one article
接口测试实战项目02:读懂接口测试文档,上手操练
R language uses ggplot2 visualization: use ggpattern package to add custom stripe patterns, shadows, stripes, or other patterns or textures to the grouped bar graph
Storage of deep planing data in memory
网络设备硬核技术内幕 防火墙与安全网关篇 (五) 安全双修大法 中
Jerry Zhi doesn't play hidden audio files [article]
R language evaluates the relative importance of the predictive factors (variables, characteristics) of the regression model, scales the predictive variables of the regression model, and then construct
[CruiseControl]Build Result JSP