I have a database which runs in two remote locations. (A & B) The server is available locally on one location (A). However, the second location (B) accesess the database over the internet.
Incase the internet at location A is down, Location B looses connection to the database.
Is it somehow possible to put another server at Location B with continous replication and following conditions:- If internet is working at Location A, then users access Location A servers only. Users can access the server available at Location B till the time internet is down at Location A. Once the connectivity is restored, both the databases can replicate. Incase there is any mismatch/duplicate, then Location A will be considered master and the changes would be overwritten?
I would like to know if such a solution is possible and the problems I can face with this setup?