Azure Cosmos DB Provisioned Throughput Inconsistent Response Times Across Regions
I'm working through a tutorial and I'm trying to configure I've been researching this but I'm working on a personal project and I've searched everywhere and can't find a clear answer... I'm experiencing inconsistent response times when accessing my Azure Cosmos DB instances that are set up with provisioned throughput across multiple regions. I have configured the database to replicate across East US and West Europe, but I've noticed that queries executed in West Europe are often taking much longer than expected, even though the provisioned throughput is identical in both regions. Here’s the setup I have: - Azure Cosmos DB API for SQL (Core) - Provisioned throughput: 1000 RU/s in both East US and West Europe. - Using SDK version 3.29.0 for .NET Core. When running a query like this: ```csharp var container = cosmosClient.GetContainer("DatabaseName", "ContainerName"); var query = "SELECT * FROM c WHERE c.id = @id"; var queryDefinition = new QueryDefinition(query).WithParameter("@id", "some-id"); var iterator = container.GetItemQueryIterator<Item>(queryDefinition); while (iterator.HasMoreResults) { var response = await iterator.ReadNextAsync(); // Process results } ``` I often see response times in West Europe exceeding 500 ms, while the same query in East US is around 50 ms. I’ve tried increasing the throughput to 2000 RU/s in West Europe, but the performance did not improve significantly. I’ve also checked the Azure Monitor and found that the region’s request units consumed are below the provisioned limit during these slow query times. I’m puzzled and was hoping someone could share insights on whether there are additional configurations or best practices I might be overlooking to optimize cross-region performance. Is it a known issue, or might I be missing something in my setup? For context: I'm using C# on Windows. How would you solve this? For context: I'm using C# on macOS. Any ideas what could be causing this? What are your experiences with this? I recently upgraded to C# latest. I'd be grateful for any help. This issue appeared after updating to C# 3.9. Could someone point me to the right documentation?