I have enabled multi-write enabled for the Cosmos account in azure portal. I don't understand if it is mandatory to set the ApplicationRegion using the SDK as well? If it is mandatory, what is the purpose of this property? I see the below documentation, but it is still not clear to me.
1 Answers
2
votes
The purpose for ApplicationRegion is in scenarios where the SDK detects the region is no longer responsive, it will use that information to know which is the next closest region to failover to. If you do not set this value the SDK will failover to the next highest region listed in the portal or by failoverPriority in your Cosmos account configuration which may not be the closest.