官术网_书友最值得收藏!

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:

  • Consistency: All clients see (immediately) the latest data even in the case of updates.
  • Availability: 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 the data.
  • Partition tolerance: The system continues to work regardless of arbitrary message loss or failure of part of the system.

The choice of which feature 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 ACID (atomicity, consistency, isolation, durability) properties. In contrast, many NoSQL databases adopt the basically available soft-state, eventual consistency (base) model.

主站蜘蛛池模板: 逊克县| 尼木县| 松阳县| 曲阳县| 巫溪县| 自贡市| 武强县| 安顺市| 寿宁县| 乌恰县| 临猗县| 赫章县| 南涧| 鱼台县| 甘德县| 芜湖县| 德钦县| 合肥市| 武义县| 五大连池市| 台北市| 大埔县| 会东县| 麻阳| 安平县| 宿州市| 江西省| 忻城县| 邵阳市| 舞钢市| 砀山县| 建湖县| 通州市| 望都县| 略阳县| 江安县| 城步| 永昌县| 旺苍县| 封丘县| 九台市|