CouchDB vs MongoDB

Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

CouchDB
CouchDB

282
239
+ 1
136
MongoDB
MongoDB

15.6K
12.2K
+ 1
3.8K
Add tool

CouchDB vs MongoDB: What are the differences?

CouchDB: HTTP + JSON document database with Map Reduce views and peer-based replication. Apache CouchDB is a database that uses JSON for documents, JavaScript for MapReduce indexes, and regular HTTP for its API. CouchDB is a database that completely embraces the web. Store your data with JSON documents. Access your documents and query your indexes with your web browser, via HTTP. Index, combine, and transform your documents with JavaScript; MongoDB: The database for giant ideas. MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.

CouchDB and MongoDB can be categorized as "Databases" tools.

"JSON" is the primary reason why developers consider CouchDB over the competitors, whereas "Document-oriented storage" was stated as the key factor in picking MongoDB.

CouchDB and MongoDB are both open source tools. It seems that MongoDB with 16.3K GitHub stars and 4.1K forks on GitHub has more adoption than CouchDB with 4.24K GitHub stars and 835 GitHub forks.

According to the StackShare community, MongoDB has a broader approval, being mentioned in 2189 company stacks & 2218 developers stacks; compared to CouchDB, which is listed in 61 company stacks and 31 developer stacks.

What is CouchDB?

Apache CouchDB is a database that uses JSON for documents, JavaScript for MapReduce indexes, and regular HTTP for its API. CouchDB is a database that completely embraces the web. Store your data with JSON documents. Access your documents and query your indexes with your web browser, via HTTP. Index, combine, and transform your documents with JavaScript.

What is MongoDB?

MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose CouchDB?
Why do developers choose MongoDB?

Sign up to add, upvote and see more prosMake informed product decisions

What are the cons of using CouchDB?
What are the cons of using MongoDB?
    Be the first to leave a con
    What companies use CouchDB?
    What companies use MongoDB?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with CouchDB?
    What tools integrate with MongoDB?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to CouchDB and MongoDB?
    Couchbase
    Developed as an alternative to traditionally inflexible SQL databases, the Couchbase NoSQL database is built on an open source foundation and architected to help developers solve real-world problems and meet high scalability demands.
    Cloudant
    Cloudant’s distributed database as a service (DBaaS) allows developers of fast-growing web and mobile apps to focus on building and improving their products, instead of worrying about scaling and managing databases on their own.
    MariaDB
    Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry. MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.
    RethinkDB
    RethinkDB is built to store JSON documents, and scale to multiple machines with very little effort. It has a pleasant query language that supports really useful queries like table joins and group by, and is easy to setup and learn.
    Redis
    Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
    See all alternatives
    Decisions about CouchDB and MongoDB
    No stack decisions found
    Interest over time
    Reviews of CouchDB and MongoDB
    No reviews found
    How developers use CouchDB and MongoDB
    Avatar of Tarun Singh
    Tarun Singh uses MongoDBMongoDB

    Used MongoDB as primary database. It holds trip data of NYC taxis for the year 2013. It is a huge dataset and it's primary feature is geo coordinates with pickup and drop off locations. Also used MongoDB's map reduce to process this large dataset for aggregation. This aggregated result was then used to show visualizations.

    Avatar of Trello
    Trello uses MongoDBMongoDB

    MongoDB fills our more traditional database needs. We knew we wanted Trello to be blisteringly fast. One of the coolest and most performance-obsessed teams we know is our next-door neighbor and sister company StackExchange. Talking to their dev lead David at lunch one day, I learned that even though they use SQL Server for data storage, they actually primarily store a lot of their data in a denormalized format for performance, and normalize only when they need to.

    Avatar of Foursquare
    Foursquare uses MongoDBMongoDB

    Nearly all of our backend storage is on MongoDB. This has also worked out pretty well. It's enabled us to scale up faster/easier than if we had rolled our own solution on top of PostgreSQL (which we were using previously). There have been a few roadbumps along the way, but the team at 10gen has been a big help with thing.

    Avatar of King's Digital Lab
    King's Digital Lab uses CouchDBCouchDB

    Document (JSON) DB.

    • - queries must be pre-defined as views (not as flexible as query formulation on the fly)
    • - community and ecosystem not as large as mongodb
    • + PouchDB is an excellent JS library to interact with CouchDB or even work in offline-then-sync moce
    Avatar of AngeloR
    AngeloR uses MongoDBMongoDB

    We are testing out MongoDB at the moment. Currently we are only using a small EC2 setup for a delayed job queue backed by agenda. If it works out well we might look to see where it could become a primary document storage engine for us.

    Avatar of Matt Welke
    Matt Welke uses MongoDBMongoDB

    Used for proofs of concept and personal projects with a document data model, especially with need for strong geographic queries. Often not chosen in long term apps due to chance data model can end up relational as needs develop.

    Avatar of Smileupps
    Smileupps uses CouchDBCouchDB

    By being built on, of, in and around CouchDB, Smileupps offers to its customers secure and reliable CouchDB hosting and a CouchDB-based app store to build and sell serious business-enabled web applications

    Avatar of Giant Swarm
    Giant Swarm uses CouchDBCouchDB

    We use CouchDB in an internal analysis tool for usage data.

    Avatar of Mathias Vonende
    Mathias Vonende uses CouchDBCouchDB

    Storage for unstructured, linked and timeseries data.

    Avatar of Aaron Buchanan
    Aaron Buchanan uses CouchDBCouchDB

    json store + geo + _changes

    How much does CouchDB cost?
    How much does MongoDB cost?
    Pricing unavailable
    News about CouchDB
    More news