Search⌘ K
AI Features

Consistency Levels

Learn about the five Cosmos DB consistency levels from eventual to strong consistency. Understand how these settings affect data freshness, performance, and global distribution to optimize your application's behavior based on your consistency needs.

The distributed nature

To make Cosmos DB scalable and fast worldwide, data is distributed and duplicated in different nodes. Nodes can be in the same data center, region, and continent or on the other side of the world; it depends on the settings we use.

For this reason, we need to accept that to keep performance high, we need to lose consistency. For example, if we write a document in the West Europe region, it will take some time to be updated in the West US region.

In simple terms, we might not get the latest version when we read. However, based on our needs, we can select different levels of consistency. The following five are in order from the fastest ...