Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Eventual Consistency

One of the most common patterns in cloud-provider solutions is the concept of eventual consistency. As the CAP theorem states, you can have only two of the three quality attributes Consistency, Availability, and Partition Tolerance. Most traditional applications use a system that is simply Consistent and not Available or Partition Tolerant. Cloud-based applications trend to Availability and Partition Tolerance and are often not Consistent, at least immediately.

Eventual consistency enables you to provide constant and highly scalable access to your data while sacrificing immediate consistency. Your transactions are all guaranteed to happen in order, but they may not happen immediately on all nodes in the system. You cannot create things such as sequential counters because multiple different nodes may have different values. The only consistent guarantee that you have is that eventually all nodes will come in sync.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint