开发者

Supporting MongoDB write when client is disconnected

I'd like to develop an app that uses MongoDB as the database, but which can cope with wifi dropout disconnects, so that the javascript client can cope with unreliable net connections, syncing when the connection is restored.

Does MongoDB support any kind of client-side API/data storage, and if not then what would be the best way to code the client so it can cope with wifi dropouts?

Thanks very mu开发者_运维问答ch.


Like every database: MongoDB does not support such a functionality. Use a message queue on the client side and feed your update requests as producer into the queue and add some consumer speaking to MongoDB fetching the data out of the queue.


i think that you need functionality like queue. So when client is disconnect your queue will be collect you actions, when connect is well you will send your actions from queue

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜