What makes up the Cosmos DB bill
- Throughput: provisioned RU/s billed by the hour (about €5 a month per 100 RU/s in West Europe), or RUs consumed in serverless.
- Storage: about €0.22 per GB per month, roughly ten times the price of Blob Hot storage.
- Regions: each added region bills throughput and storage again. Multi-region writes cost twice as much per RU/s.
- Options: long continuous backup, analytical store, dedicated gateway.
Choose the right throughput model
| Model | How it is billed | When it wins |
|---|---|---|
| Provisioned (manual) | Fixed RU/s, hourly, reservable | Stable, predictable load |
| Autoscale | Highest RU/s reached each hour, between 10 and 100% of the maximum, unit price × 1.5 | Variable load, average use below two thirds of the maximum |
| Serverless | RUs actually consumed, no minimum | Very light or intermittent load: dev, test, prototypes |
According to public prices, an RU consumed in serverless costs about 14 times more than a provisioned RU used at 100%. Serverless only pays off if the average load stays below about 7% of the capacity you would otherwise provision. For dev, the free tier (1,000 RU/s and 25 GB free on one account per subscription) is often enough.
Reduce the RUs consumed
- Partition key: throughput is split across physical partitions. A "hot" partition forces you to provision for it alone. Pick a high-cardinality key that appears in the most frequent queries.
- Cross-partition queries hit every partition. A direct read by id and partition key (point read) costs about 1 RU for a 1 KB document.
- Indexing: by default every property is indexed, which makes every write heavier. Exclude paths that are never filtered on.
- Shared throughput at database level pools RU/s across many small containers.
We start from the diagnosis: RU consumption per operation and the most expensive queries. One badly written query called millions of times weighs more than everything else.
Control storage and regions
TTL deletes expired documents automatically: logs, sessions, events. Cold data can move to Blob storage or a lakehouse, far cheaper per GB. Each extra region must match a real availability or latency requirement: a "just in case" read region doubles the billed throughput. Non-prod almost always fits in a single region.
Reserve the stable throughput
Reserved capacity is bought in RU/s blocks, for 1 or 3 years, and applies to every account in its scope. According to Azure public prices, it saves about 20% over 1 year and 30% over 3 years for common volumes, about 27% and 40% from 1 million RU/s, and up to almost 58% over 3 years for very large volumes. It covers neither storage nor serverless. We only reserve after reducing RUs and settling the throughput model, and only the stable base.