Throughput buckets are now generally available in Azure Cosmos DB for NoSQL, letting you cap the share of a shared container's throughput a single workload may consume. Bulk jobs and tenant tiers get a clear boundary without duplicating data into separate containers.
Key points
- A bucket can only use a configured percentage of container throughput; an idle bucket holds no capacity back.
- Requests beyond a bucket's cap fail with HTTP 429 and substatus 3212, separating bucket throttling from other limits.
- Assign buckets per request via `QueryRequestOptions.ThroughputBucket` or per client via `CosmosClientOptions.ThroughputBucket`.
- For bulk ingestion, set a bucket on the client and enable `AllowBulkExecution`; every write counts against it.
- A container supports five numeric buckets (1–5), and configuration can change once every 10 minutes or returns 3213.
- Buckets target provisioned NoSQL only: serverless accounts and shared database throughput containers are unsupported.
Real-world use
- A multi-tenant SaaS search service where premium and standard customers query the same catalog container
- A supplier-import bulk worker moving data while live traffic keeps serving the same container
- A change-feed processor that limits source reads and destination projection writes separately
- Ad-hoc Data Explorer investigations routed to a capped bucket so production traffic is spared
This summary was generated by the agent from the original post on Azure Cosmos DB Blog. The full text and all rights belong to its author and publisher. Go to original