MongoDB vs CouchDB-Open Source NoSQL and Document Databases Comparison
MongoDB and CouchDB are both document-oriented databases. MongoDB and CouchDB are the best examples of open source NoSQL database. Aside from both storing documents though, it turns out that they don’t share much in common. There are a lot of difference between MongoDB and CouchDB in terms of implementation of their data-model, interface, object storage, replication methods etc.
In this article “MongoDB vs CouchDB“, I have tried to make a comparison between MongoDB and CouchDB and figured out following difference between these two Free, Open Source, NoSQL document oriented databases:
Data Model: MongoDB and CouchDB are both document oriented databases. MongoDB is JSON based while CouchDB is BSON based.
Interface: MongoDB uses custom protocol over TCP/IP while CouchDB uses HTTP/REST protocol.
Object Storage: MongoDB database contains collections and those collections contain documents while CouchDB directly contains all the documents.
Implementation Language: MongoDB is written in C++ while CouchDB is written in Erlang.
Server operating systems: MongoDB can operate on Linux, OS X, Solaris and Windows platforms while CouchDB can operate on Android, BSD, Linux, OS X, Solaris and Windows.
Replication: MongoDB supports only Master-Slave replication. On the other hand, CouchDB supports Master-Master Replication as well as Master-Slave Replication.
Triggers: MongoDB does not support triggers while CouchDB does.
Developer: MongoDB is developed by MongoDB, Inc. MongoDB was initially released in 2009. CouchDB is developed by Apache Software Foundation. CouchDB was initially release in 2005.