Share via

How does Azure Cosmos process request

Sachin Agarwal 1 Reputation point
2021-05-24T13:22:22.88+00:00

I wanted to call Azure Cosmos in Task.Run for 200 threads , I have configured my RU to 5000 , So just wanted to know How, Azure Cosmos Process 200 request together .. does it maintain queue to process or it will process all request together ?

Azure Cosmos DB
Azure Cosmos DB

An Azure NoSQL database service for app development.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anurag Sharma 17,636 Reputation points
    2021-05-25T09:28:49.75+00:00

    Hi @Sachin Agarwal , welcome to Microsoft Q&A forum.

    It is advised to increase the number of threads/tasks to have better performance while using sdks. Creating number of threads will allow parallel execution of these requests and would in turn take lesser time to process multiple requests. However, we need to understand that if we create multiple requests and our RUs allocation does not meet the demand then we could see the throttling of request at the same time. Also how many threads we create will also depend on core configuration of our machine.

    I would also suggest you to read below article for more details on the same:

    Performance tips for Azure Cosmos DB

    ----------

    If answer helps, please mark it 'Accept Answer'

    Was this answer helpful?


Your answer

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