0

I am planning an application for an organization with remote locations where internet is not stable, So I need a NoSql database, that can read & write locally, and sync with central server when online.

can mongoDB sharding be used with this scenario?

1 Answers1

1

Better to ask: Why mongoDB sharding cannot be used with this scenario?

If you want to use local mongoDb clients to gather data queues you should understand the restrictions of such way.

Sharding is about effective data replication, not about local data gathering to send to server when internet is on, isn't it? Because shards are getting data from master instead of scenario when replica has more actual data than master? I would advise to use local private queues to gather user data when server and internet are not accessed by user client and send data from private queues when internet is on.

I think you can use mongoDb to save client information without internet alongside with any other Db or even any version control system :) But sharding it's not about it.

There are more information:

  1. Using a database table as a queue
  2. https://learn.microsoft.com/en-us/biztalk/core/message-queuing-queues?redirectedfrom=MSDN
  3. https://docs.oracle.com/cd/E11882_01/server.112/e11013/manage.htm#ADQUE2563
Vlad Rudskoy
  • 677
  • 3
  • 7
  • 24