Strategies to sync mongoDB and couchDB

雨燕双飞 提交于 2019-12-08 02:45:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!