What are some strategies to sync data between these two?
The current scenario is a web app that works with MongoDB, mongoose and node, and a mobile app that uses pouchDB and syncs against CouchDB server, but how can MongoDB server and CouchDB server be in sync when data changes in any of them?
I tried with some trigger when something changes in any of them, but it would be an infinite cycle because: MongoDB DocX changes --> CouchDB update DocX ---> MongoDB update DocX because it changed in CouchDB, and again ----> CouchDB update document DocX because it changed in MongoDB
So, how are some good strategies to do something like this?
来源:https://stackoverflow.com/questions/36216260/strategies-to-sync-mongodb-and-couchdb