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

Replicate Mongodb data across 2 servers with write access

$
0
0

I want to be able to replicate data from MongoDB, with minimal latency, across 2 (later more) servers. One server is located in China (behind the Great Firewall) and the other is located in the USA (not behind the Great Firewall).

The reason we want these two servers is for one to serve requests from outside of China, and the other to server from inside. Requests which have to pass through the Wall are incredibly slow.

The data set has to remain consistent between the two servers. Is there a way, using MongoDB, to replicate the data from one server to another (bi-directional) where both servers retain read and write capabilities.

MongoDB replica sets do not seem appropriate, as it seems only the nominated primary node retains write capabilities. If it were possible to have 2 or more primary nodes, this would work, but to the best of my knowledge there is not.

What would be an appropriate approach here? Any ideas?

Thanks again.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



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