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

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.

主站蜘蛛池模板: 天镇县| 昆山市| 朝阳市| 浙江省| 徐闻县| 曲松县| 边坝县| 察隅县| 新龙县| 彭州市| 信阳市| 太和县| 青铜峡市| 来凤县| 漳州市| 昌吉市| 湘潭县| 肃宁县| 武定县| 庆元县| 平泉县| 沈丘县| 盐亭县| 井陉县| 陇川县| 宝清县| 张掖市| 五峰| 彭州市| 雷山县| 秦皇岛市| 武冈市| 屏南县| 周口市| 孟州市| 大新县| 理塘县| 兴安县| 汉中市| 基隆市| 岐山县|