A
A
Andrey K2012-01-30 10:18:58
MongoDB
Andrey K, 2012-01-30 10:18:58

MongoDB: replication of local servers and remote server

I am writing a client application in C#, .NET for Windows. After installing the product, in addition to the client, each machine will have its own local MongoDB server, in the database of which records will be kept. The local server does not always have access to the network, if it were not for this moment, then one could simply connect to a remote server and write to its database.

I also have a remote MongoDB server accessible from the internet. When accessing the Internet, the data of the local copy must be synchronized with the public server, i.e. send locally recorded data and accept those that are in the database (sometimes they came from other machines).

How to solve this problem? Is replication suitable for this at all?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2012-01-31
@opium

Connect from the app and do what you want. Replication feel not your case.

S
sevmax, 2012-02-01
@sevmax

No, replication is not suitable in your case. Since you need to upload data from many clients to one central server.
Make an upload from the app!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question