Synchronizing local HTML5 database with MongoDB

What is the best strategy for keeping the local database in sync with the backend one?

The idea is to use a 100% HTML5 application, so every morning the server database will be duplicated for clients, so clients will only work with IndexedDB until the end of the day when clients send all data to the server and then the server will collect it and save it again but as you can see this is a lot of work, so is it better to suggest IndexedDB or MongoDB to connect to each other?

+3


source to share


1 answer


If all your logic is on the client then you don't need MongoDB. A simple key store with REST API and a collection request on the last modified one is enough.



I had a sample google cloud storage sync app.

0


source







All Articles