I want to be able to replicate data from MongoDB with a minimum delay on 2 (later) servers. One server is located in China (behind the Great Firewall), and the other is in the United States (not behind the big firewall).
The reason we want these two servers to handle requests from outside of China, and the other to the server from the inside. The requests that must go through the wall are incredibly slow.
The dataset must remain consistent between the two servers. Is there a way to use MongoDB to replicate data from one server to another (bidirectional), where both servers retain read and write capabilities.
MongoDB replica sets do not seem appropriate, as it seems that only the designated primary node retains write capabilities. If it were possible to have 2 or more primary nodes, this would work, but as far as I know, it is not.
What would be the appropriate approach? Any ideas?
Thanks again.
source
share