Comparison between CouchDB vs MongoDB

Comparison between CouchDB vs MongoDB

CouchDB vs MongoDB

Both scale across multiple nodes easily, but MongoDB favours consistency while CouchDB favours availability. In the MongoDB replication model, a group of database nodes host the same data set and are defined as a replica set.

Who Uses These Databases?
Here are a few examples of companies that use these databases:

CouchDB: Talend SA, Akamai Technologies, Hothead Games, Inc., GenCorp Technologies, Vivint Solar, Inc.

MongoDB: Adobe, BBVA, CERN, Department of Veteran Affairs, Electronic Arts, Forbes, Under Armour.

CouchDB

Key Feature

MongoDB

It follows the document-oriented model and data is presented in JSON format.

Data Model

It follows the document-oriented model but data is presented in BSON format.
CouchDB uses HTTP/REST based interface. It is very intuitive and very well designed.

Interface

MongoDB uses binary protocol and custom protocol over TCP/IP.
Open Source

License

Open Source
In CouchDB, database contains documents.

Object Storage

In MongoDB, database contains collections and collection contains documents.
CouchDB follows Map/Reduce query method. (JavaScript+others)

Query Method

MongoDB follows Map/Reduce (JavaScript) creating collection + object-based query language.
CouchDB supports master-master replication with custom conflict resolution functions.

Replication

MongoDB supports master-slave replication.
It follows MVCC (Multi Version Concurrency Control).

Concurrency

Update in-place.
CouchDB favors availability.

Preferences

MongoDB favors consistency.
In CouchDB is safer than MongoDB

Performance Consistency

In MongoDB, database contains collections and collection contains documents.
CouchDB is eventually consistent.

Consistency

MongoDB is strongly consistent.
it is written in Erlang.

Written in

it is written in C++.
Apache Software Foundation

Developer

MongoDB, Inc
Erlang

Implementation language

C++

I hope this post helps you to understand all the comparisons between “CouchDB and MongoDB”.
Keep Learning 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *