- Learning PostgreSQL 11
- Salahaldin Juba Andrey Volkov
- 168字
- 2021-07-02 13:11:35
The CAP theorem
The CAP theorem states that it is impossible for a distributed computing system to simultaneously provide all three of the following guarantees:
- Consistent: All clients see (immediately) the latest data even in the case of updates.
- Available: All clients can find a replica of some data even in the case of a node failure. This means that even if some part of the system goes down, the clients can still access consistent and valid data.
- Partition tolerance: The system continues to work regardless of arbitrary message loss or failure of part of the system.
The choice of which features to discard determines the nature of the system. For example, one could sacrifice consistency to get a scalable, simple, and high-performance database management system. Often, the main difference between a relational database and a NoSQL database is consistency. A relational database enforces atomicity, consistency, isolation, and durability (ACID) properties. In contrast, many NoSQL databases adopt the basically available, soft-state, eventual consistency (BASE) model.
推薦閱讀
- Mastering Zabbix(Second Edition)
- PHP 從入門到項(xiàng)目實(shí)踐(超值版)
- 深入淺出Java虛擬機(jī):JVM原理與實(shí)戰(zhàn)
- Visual Basic程序設(shè)計(jì)教程
- HTML5 移動(dòng)Web開發(fā)從入門到精通(微課精編版)
- Scratch真好玩:教小孩學(xué)編程
- Solr Cookbook(Third Edition)
- 基于SpringBoot實(shí)現(xiàn):Java分布式中間件開發(fā)入門與實(shí)戰(zhàn)
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)教程(Windows 7+Office 2010)
- 汽車人機(jī)交互界面整合設(shè)計(jì)
- Java Web應(yīng)用開發(fā)項(xiàng)目教程
- Machine Learning for OpenCV
- Python應(yīng)用與實(shí)戰(zhàn)
- Unreal Engine 4 Game Development Essentials
- JSP程序設(shè)計(jì)實(shí)訓(xùn)與案例教程(第2版)