© Manish Sharma 2018
Manish SharmaCosmos DB for MongoDB Developershttps://doi.org/10.1007/978-1-4842-3682-6_6

6. Consistency

Manish Sharma1 
(1)
Faridabad, Haryana, India
 

Consistency is a very important factor in database transactions. It dictates the behavior of the database during reads and writes. It is a more complex and critical factor in databases that are distributed. In this chapter, you will learn the consistency levels available in Azure Cosmos DB.

Consistency in Distributed Databases

As database systems are critical to data-driven applications, ensuring availability is important. So, to ensure high availability (HA), you will end up having multiple copies of databases (see Figure 6-1).
Figure 6-1

ReplicaSet consists of a leader (primary) ...

Get Cosmos DB for MongoDB Developers: Migrating to Azure Cosmos DB and Using the MongoDB API now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.