Cosmos DB returns HTTP 429 errors during peak traffic. What do you do?
IntermediateScenarioDatabases (Azure SQL, Cosmos DB, PostgreSQL)
Answer
429 means requests exceeded provisioned RUs. Check for hot partitions in the partition key metrics, optimise queries and indexing policy, enable autoscale throughput, and make sure SDK retries with backoff are on. If one partition is hot, the key design needs changing.