- 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.
推薦閱讀
- Java程序設計(慕課版)
- Vue.js前端開發基礎與項目實戰
- Creating Mobile Apps with jQuery Mobile(Second Edition)
- C#程序設計(項目教學版)
- HTML+CSS+JavaScript網頁制作:從入門到精通(第4版)
- Web前端開發最佳實踐
- 體驗之道:從需求到實踐的用戶體驗實戰
- Elasticsearch搜索引擎構建入門與實戰
- Web開發新體驗
- C語言程序設計實驗指導與習題精解
- Mastering PostgreSQL 11(Second Edition)
- Build Your Own PaaS with Docker
- C++程序設計基礎(下)
- HTML5與CSS3權威指南(第2版·上冊)
- Metasploit for Beginners