Cosmos DB offers different scalability options to meet your application's demands. It's designed to handle varying workloads, from small applications to large-scale enterprise solutions.
Cosmos DB scales horizontally, meaning you can add more resources to your database without disrupting your application. This is achieved through:
Cosmos DB provides several ways to scale your database:
Let's illustrate how to configure throughput autoscale.
{
"setScaling": {
"minThroughput": 500,
"maxThroughput": 2000,
"stepSize": 50
}
}
This example sets a minimum throughput of 500 RU/s and a maximum of 2000 RU/s with a step size of 50 RU/s.