14 ms·
Out of curiosity, what use cases did you have for CouchDB that weren't feasible with MongoDB?
by anonytrary 8y ago
Out of curiosity, what use cases did you have for CouchDB that weren't feasible with MongoDB?
- gorbypark 8y agoThe best part of CouchDB is PouchDB, in my opinion. It's kinda cool having an in browser database that just syncs "almost effortlessly" with the cloud hosted version.
- WorldMaker 8y agoIn my case, at least, PouchDB is still a lot handier of an offline-first mobile-capable DB than just about anything else, and because it speaks the CouchDB replication/sync API that still leaves a lot of use cases where CouchDB is more feasible. (It would be great to have more document DBs converge on a replication/sync API for offline-first applications. I've voted on the UserVoice suggestions to CosmosDB on the idea.)
- karmelapple 8y agoSame here. We love how replication is built in to CouchDB from the ground up. I wish MongoDB, which seems to still have more love for it in the world than CouchDB/Cloudant, would have that replication built-in.
- metheus 8y agoWait... do you mean something other than https://docs.mongodb.com/manual/replication/ https://docs.mongodb.com/manual/replication/ ?
- karmelapple 8y agoI'm thinking about the use case to have a native app be able to work nicely with no internet connection, but then once the internet connection resumes, it downloads new data from the server and sends its offline-modified data up to the server. From a quick search online [0] [1], I see people doing offline MongoDB sync using SQLite, but nothing like using Mongo directly. With CouchDB, we can use either the old Couchbase native app SDK, or the Cloudant native app SDK, to sync up nicely with a CouchDB instance in the cloud. We've had this running for awhile, and it works quite well, and we do not have to shuffle information to and from a SQLite database... at least, we're not doing it, since the Cloudant or Couchbase SDKs for iOS and Android keep track of all the data and store it on the mobile device however they'd like. If there is anything similar for Mongo, I'd be interested to know! [0] https://stackoverflow.com/questions/23623295/how-to-make-an-android-app-work-in-offline-mode-in-android https://stackoverflow.com/questions/23623295/how-to-make-an-... [1] https://stackoverflow.com/questions/13295960/sqlite-on-android-and-mongodb-with-synchronization https://stackoverflow.com/questions/13295960/sqlite-on-andro...
- metheus 8y agoDunno if this thread is too cold for you to notice my reply, but there absolutely is... MongoDB Mobile was released last year, and along with Stitch, MognoDB’s serverless application platform, you can get exactly what you want — mobile sync.
- WorldMaker 8y agoCouchDB "replication" was designed to be "master-master" (or "no master" sort of) where replication is not a coordinated process but a distributed push/pull of concurrent revisions with basic conflict resolution rules. Whereas, Mongo only built support for classic RDMS-style replication where one database serves as the master or primary, and any number of secondaries can try to keep up with it. It's a bit like SVN versus git. Mongo when replicated still has the SVN centralized mentality, whereas CouchDB is a lot more like git. Compare Ref: http://docs.couchdb.org/en/stable/replication/intro.html http://docs.couchdb.org/en/stable/replication/intro.html
- mark_l_watson 8y agoEasy remote replication. Also, I found BigCouch effective - multi-tenant but otherwise just like using CouchDB.