7.4 Eventual Consistency
I mentioned briefly that achieving strong consistency, as described in the preceding paragraphs, is difficult or nearly impossible in distributed systems. In addition, the CAP theorem states that consistency within a distributed system can only be achieved if either availability or partition tolerance plays a subordinate role.
For this reason, the principle of eventual consistency describes a consistency model that can be understood as a compromise solution for all the challenges of the CAP theorem.
Eventual consistency is based on the what’s called weak consistency where the system does not guarantee that read access following a write operation will immediately receive the updated value. The period between the value ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access