问题
I need a multi master database to let users talk from different continents. Each user will write his data to his local master database and it will replicate data to other master databases in other counties/continents.
The problem is that I can't store all copies of all users data in all data centers. I need something like a database/solution which will let me to set a replication level.
I need to have ability read any data from any nodes but store data on several nodes (on 3 nodes but not on all nodes).
Is there the solution? Maybe a proxy between database and application or a clever cluster? Any ideas or tips will be pleasant
回答1:
You could use a distributed cache to achieve this result. Check out how they work under WAN replication strategies.
For example, check out NCache Wan replication (Bridge)
PS: A distributed cache keeps all of the data in memory for performance reasons. You could persist it as well.
来源:https://stackoverflow.com/questions/35986610/is-there-multi-master-database-with-customizable-replication-level