What is a DB request?

What is a DB request?

A database query is a request for data from a database. Usually the request is to retrieve data; however, data can also be manipulated using queries.

What is a request unit?

Request unit is a performance currency abstracting the system resources such as CPU, IOPS, and memory that are required to perform the database operations supported by Azure Cosmos DB.

How do you scale a cosmos DB?

Azure Cosmos DB scales the throughput T such 0.1*Tmax <= T <= Tmax . For example, if you set the maximum throughput to 20,000 RU/s, the throughput will scale between 2000 to 20,000 RU/s. Because scaling is automatic and instantaneous, at any point in time, you can consume up to the provisioned Tmax with no delay.

How to handle 100 millions of requests per day?

Make sure that the database is not limited in matters of concurrent connection figure, usually, the default number of connections is 100 — which is not nearly enough in most high-load scenarios. For instance, in one of my production projects, after adjusting this parameter from 0 to 300 seconds, I reduced the DB load in half.

Which is the most efficient way to make a request?

Because point reads (key/value lookups on the item ID) are the most efficient kind of read, you should make sure your item ID has a meaningful value so you can fetch your items with a point read (instead of a query) when possible. Request units for queries are dependent on a number of factors.

How can Django handle 100 million requests per day?

Take a page from Instagram, Pinterest or Disqus — they started with Django as it and took it to the next level. Sure, it might not be the same framework anymore, however, when commonsense is applied at the core, there are only fruits to bear. Write code efficiently, reuse, use bulk, monitor, measure and optimize.

How is throughput reserved at the database level?

Throughput reserved at the database level is shared unevenly, depending on the workload on a specific set of containers. If you provision throughput on a container, the throughput is guaranteed for that container, backed by the SLA.