Open In App

Difference between MongoDB and CouchDB

Last Updated : 27 Jun, 2022
Like Article

1. MongoDB : MongoDB is an open-source document-oriented database used for high volume data storage. It falls under classification of NoSQL database. NoSQL tool means that it doesn’t utilize usual rows and columns. MongoDB uses BSON (document storage format), which is a binary style of JSON documents. 2. CouchDB : Apache CouchDB is an open-source document-oriented NoSQL database that uses multiple formats and protocols to store, transfer, and process its data, it uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API. It was developed by Apache Software Foundation and initially released in 2005. It is written in Erlang. 
Difference between MongoDB and CouchDB :

1. Developed By MongoDB, Inc on 2009. Developed by Apache Software Foundation and initially released in 2005.
2. MongoDB is written in C++. CouchDB is written in Erlang.
3. It is one of the most popular document stores available both as a fully managed cloud service and for deployment on self-managed infrastructure. It is native JSON – document store inspired by Lotus Notes, scalable from globally distributed server-clusters down to mobile phones.
4. The primary database model for MongoDB is Document store. The primary database model for CouchDB is Document Store.
5. There is no Secondary database models. It has Document store as Secondary database models.
6. Server operating systems for MongoDB are Linux, OS X, Solaris and Windows. Server operating systems for CouchDB are Android, BSD, Linux, OS X, Solaris and Windows.
7. It supports predefined data types such as string, integer, double, decimal, boolean or date. It does not supports predefined data types.
8. It supports read-only SQL queries via the MongoDB Connector for BI. It does not supports SQL query language.
9. It support only one replication methods – Master-master replication. It support two replication methods – Master-master replication and Master-slave replication.
10. It supports In-memory capabilities. It does not supports In-memory capabilities.
11. It support multi-document ACID Transactions with snapshot isolation. It does not support to ensure data integrity after non-atomic manipulations of data.
12. It follows Update-in-place. It follows MVCC (Multi Version Concurrency Control).
13. MongoDB is strongly consistent. CouchDB is eventually consistent.

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads