Scaling Azure Cosmos DB
Scaling in Azure Cosmos DB works in a different way depending on your capacity mode, as illustrated in the following screenshot:
Figure 19.12 – Selecting capacity mode in Azure Cosmos DB
The difference is quite crucial as, depending on the selected mode, Azure Cosmos DB will be scaled differently, as outlined here:
- For Provisioned throughput, you manually select provisioned capacity for your containers. If you want to incorporate some automation, you can use the Autopilot feature for dynamic capacity selection.
- Serverless mode automatically manages available throughput for your containers.
As both capacity modes offer completely different logic for handling database load, you need to analyze the behavior of your application and apply what seems to suit it the most. For example, if you feel that you are unable to predict its performance, Serverless mode is a better fit. If you need geo-distribution, then...