# 请求速率过大。可能需要更多请求单位，因此未进行任何更改。或在Retry-After时间后重试。

- **ID:** `cloud/azure-cosmosdb-request-rate-too-large`
- **领域:** cloud
- **类别:** resource_error
- **错误码:** `429`
- **验证级别:** ai_generated
- **修复率:** 85%

## 根因

应用程序以超过预配吞吐量（RU/s）的速率向Azure Cosmos DB发送请求，导致限制。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Azure Cosmos DB SDK for .NET 3.31+ | active | — | — |
| Azure Cosmos DB SDK for Java 4.45+ | active | — | — |

## 解决方案

1. ```
   Implement exponential backoff and retry in application code, respecting the Retry-After header from the Cosmos DB response.
   ```
2. ```
   Enable Cosmos DB autoscale throughput to automatically scale RU/s within a configured maximum.
   ```

## 无效尝试

- **Increase RU/s to a very high value without monitoring** — May lead to cost overruns; also doesn't address bursty traffic patterns that could still trigger throttling. (50% 失败率)
- **Disable retry logic in the SDK** — SDK retries are designed to handle throttling gracefully; disabling them causes immediate failures. (50% 失败率)
