CAP Theory Flashcards
CAP
Consistency,
Availability,
Partition Tolerance
What is CAP Theory
CAP theory states that a distributed system can achieve at most two out of three guarantees:
Consistency,
Availability,
Partition Tolerance
Consistency
All nodes see the same data at the same time.
Consistency Relevance
Ensures all users see most up-to-date state
Difficult to achieve due to decentralized nature of DApps
Availability
Every request recieves a (non-error) reponse regardless of the individual nodes state
Availability Relevance
DApps must ensure high availability, meaning the system should be able to process transactions, even if some nodes are down or delayed.
Partition Tolerance
System continues to operate despite arbitrary partitioning (communication breaks) in the network.
Partition Tolerance Relevance
The system needs to function even when parts of the network can’t communicate with each other.