Hi Everyone -
Although I read several documentation, still I do have some concerns regarding Cosmos db HA with multi regions.
- At present I do have Cosmos db in west us2 region which serves as main db for my Application. West US2 will be the Active region.
- We are planning to set up passive region for High Availability in say East US. In that I am planning to set my cosmos db ( as read region) utilizing Service-Managed failover in the Primary region.
Here are my Concerns :-
- By Enabling Replicate data globally, I understand that any writes happened in Primary region will be replicated automatically in the Secondary region cosmos db as well. (Can I know is this replication almost like instantaneous ?)
- Enable Automatic Failover - Does this mean - Even If my .Net Core Application in primary region is up and running, but my Primary region Cosmos db is down, will this automatic failover connect my .Net Core application in Primary region to Cosmos DB in secondary region ?? (Does this mean I don't need to do anything programmatically to point the connection string to secondary region cosmos db from my application ?)
- Also when the secondary region Cosmos db is not enabled with multi region write, Does that mean when the Primary region Cosmos db is down and when Automatic failover switched to Secondary region Cosmos db, the application cannot write to this Secondary region Cosmos db ?
- I am planning to use a Azure Front door Premium for High Availability (its for internal application with private endpoints and hence the Premium). So by any chance if Primary region is Down, and if Front switches to Secondary region - In this case, Does my .Net Core application in Secondary region can only read and cannot write to secondary region Cosmos db (if the Cosmos db is not enabled with multi-region write ?)
Appreciate your response..!!
Thanks in Advance!!
-Mathew James