Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

MySQL Replication based on geo-location

$
0
0

We have a web app which is running in two different countries (Germany and USA). For us it is very important to keep the data of our customers in the country where they belong so a german customer should stay in Germany and vice-versa.

I would like to migrate to a cloud solution and have 2 DBs instances (for speed purpose) based in the US and in Germany. The webapp is generating IDs with auto-increment and I would like the links to work in both directions. So for example both links should work:

http://example.com/12.html

http://example.de/12.html

The two DB instances would be set as Master-Master replication but the issue is that I don't want the data generated in Germany to be replicated in the US DB. Obviously this causes issue with the auto-increment IDs and I have no idea how to fix that.

Would appreciate if anyone could help me or guide me on how this scenario could be handled.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>