CAP Theorem
Only two of these goals can be Strongly Achieved in a Distributed System #21- Consistency
- All Clients will read the latest value #23
- Availability
- Availabality of Data(or Some part of Data) in case of node/network failure #25, #22
- All Clients will be able to read and write data
- Partition Tolerance
- Database is split into Multiple machines. Will not go down even if a network segmentation breaks #23
Consistency Models
Note : Cassandra provides Tuneable Consistency( to move b/w Strict & Eventual ) to the Client Application #22- Strict Consistency #21
- Read gets the latest update data(ie add, update, delete)
- Causal Consistency
- Reads get the latest update data only for operations that are causally related
- Eventual Consistency(Weak Consistency)
- Read might not get the latest update data. But future reads will eventually get the latest upate (ie all replicas of data will become Eventually Consistent)
No comments:
Post a Comment