CAP theorem - Availability and Partition Tolerance

后端 未结 9 1762
囚心锁ツ
囚心锁ツ 2020-12-04 04:09

While I try to understand the \"Availability\" (A) and \"Partition tolerance\" (P) in CAP, I found it difficult to understand the explanations from various articles.

<
9条回答
  •  悲哀的现实
    2020-12-04 05:02

    Simple way to understand CAP theorem:

    In case of network partition, one needs to choose between perfect availability and perfect consistency.

    Picking consistency means not being able to answer a client's query as the system cannot guarantee to return the most recent write. This sacrifices availability.

    Picking availability means being able to respond to a client's request but the system cannot guarantee consistency, i.e., the most recent value written. Available systems provide the best possible answer under the given circumstance.

    This explanation is from this excellent article. Hope it will help.

提交回复
热议问题