May 2019
Intermediate to advanced
504 pages
11h 50m
English
The pricing model for Cosmos DB is rather complicated. This calculation involves many factors, such as the global availability, consistence, and another abstract unit called the Request Unit (RU). Similar to the Data Transaction Unit (DTU), it is a measure of the system resources that are used (for example, CPU, memory, and IO) to read a 1 KB item. The number of factors can effect the RU's usage, such as item size, complexity, indexing, consistency level, and executed queries. It is possible to keep track of the RU consumption by using the request charge headers that are returned by the DB.
Let's take a look at the following document DB client execution:
var query = client.CreateDocumentQuery<Item>( UriFactory.CreateDocumentCollectionUri ...Read now
Unlock full access