Hello Iheb Jendoubi
Greetings!
As I understand, you want to know about the Azure Cosmos DB billing. Please review the information below for a better understanding:
What 400 RU/s means:
- RU/s (Request Unit per Second) is a measure of throughput in Azure Cosmos DB. It quantifies the processing power needed to perform operations (reads, writes, queries) on your database.
- 400 RU/s means you have a guaranteed capacity to perform operations that consume up to 400 Request Units in one second.
- The pricing for Azure Cosmos DB is based on the provisioned throughput and storage, which is measured in RU/s.
- If a 4KB document read costs 4 RU, then with 400 RU/s, you could theoretically perform around 100 reads per second (400 RU/s divided by 4 RU per read = 100 reads per second).
Note:
- Different operations have different RU costs (writes are typically more expensive than reads).
- Document size, indexing, query complexity, and other factors affect RU consumption.
**
Pricing based on Provisioned Throughput:
- Cosmos DB pricing is primarily based on the provisioned throughput (RU/s). You pay for the capacity you reserve, regardless of whether you fully utilize it.
- The cost is typically calculated on an hourly basis.
- Formula: Cost = (Provisioned RU/s) x (Hourly rate per RU) x (Number of hours)
- There are also costs associated with data storage, but the RU/s is the main driver of cost.
I hope this has been helpful!
Your feedback is important so please take a moment to accept answers. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!
If this answers your query, do click Accept Answer and Upvote for was this answer helpful.
Thank you.