CAP theorem - Availability and Partition Tolerance

后端 未结 9 1744
囚心锁ツ
囚心锁ツ 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

    Consistency:

    A read is guaranteed to return the most recent write(like ACID) for a given client. If any request comes during that time it has to wait till data sync completed across/in the node(s).


    Availability:

    every node (if not failed) always executes queries and should always respond to requests. It does not matter whether it returns the latest copy or not.


    Partition-tolerance:

    The system will continue to function when network partitions occur.


    Regarding AP, Availability(always accessible) can exist with(Cassendra) or without(RDBMS) partition tolerance

    pic source

提交回复
热议问题