Azure / azure-cosmos-dotnet-v3

.NET SDK for Azure Cosmos DB for the core SQL API
MIT License
741 stars 494 forks source link

[SDK Cold Start] - Retry Metadata Requests in Other Regions When Preferred Regions is Empty and Hub Region is Offlined #4665

Closed kundadebdatta closed 1 month ago

kundadebdatta commented 2 months ago

Acceptance Criteria:

kirankumarkolli commented 2 months ago

@kundadebdatta This is not just limited to cold start only right? In general to have HA with GlobalEndpoint when the PrefrredRegions are not set.

jeet1995 commented 2 months ago

@kundadebdatta This is not just limited to cold start only right? In general to have HA with GlobalEndpoint when the PrefrredRegions are not set.

Correct - I'd say the pending fix won't help with cold start at all as it isn't possible to construct region suffixed endpoints for the SDK to reach out for database account resolution without preferred regions (custom private DNSs may help but that again is customer driven just like preferred regions). The fix will help to not have availability be restricted to just hub / primary in case of an outage to hub / primary once the client has been warmed / has cached account metadata even with preferred regions not set.

kundadebdatta commented 2 months ago

@kundadebdatta This is not just limited to cold start only right? In general to have HA with GlobalEndpoint when the PrefrredRegions are not set.

Yes correct - this is not just bounded to cold start scenarios.