Cosmos Db cost

Toseef Ajmeri (AU) 40 Reputation points
2024-02-08T00:28:25.9466667+00:00

Hi,

i would like to save a data with size varying from 100-250kb in cosmos Db for every order our app processes, which could be around 10,000 to 50,000 orders everyday.

I would like to check with you,

  1. Is the cosmos db cost associated with the amount of data we store into it,
  2. is the cosmos db cost associated with the number of operations that are being run on the data
  3. if i was to store such data onto cosmos db will it increase the cost to company Thanks,
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,901 questions
0 comments No comments
{count} votes

Accepted answer
  1. Adharsh Santhanam 6,015 Reputation points Volunteer Moderator
    2024-02-08T04:01:26.9+00:00

    Hello @Toseef Ajmeri (AU) The short answer to all 3 questions is YES. Now, let me explain why.

    If you look into the pricing of Azure Cosmos DB, it's billed for 3 different types of usage - compute, storage and bandwidth. See the details here - https://azure.microsoft.com/en-us/pricing/details/cosmos-db/autoscale-provisioned/

    With this in mind, let's try to look into each of your questions.

    1. Azure Cosmos DB bills for consumed storage which includes all transactional and analytical data, indexes and backups. As a result, the size of your data (100-250kb multiplied by 10000-50000 orders) directly contribute to the overall storage cost and hence affect your billing.
    2. Azure Cosmos DB uses Request Units (RU) to measure compute, storage and I/O used for processing database operations. Operations like reads, writes, queries etc. consume RU. The exact RU value for an operation is correlated to the size of the item. In a nutshell, this will also contribute to your cost.
    3. This is just an extension of my response to Q1 that Cosmos DB bills you for the data storage and hence this will impact your cost as well.

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.