CouchDB vs. MongoDB

Comparison FeatureCouchDBMongoDB
Data ModelIt follows the document-oriented model and data is presented in JSON format.It follows the document-oriented model but data is presented in BSON format.
InterfaceCouchDB uses HTTP/REST based interface. It is very intuitive and very well designed.MongoDB uses binary protocol and custom protocol over TCP/IP.
Object StorageIn CouchDB, database contains documents.In MongoDB, database contains collections and collection contains documents.
Query MethodCouchDB follows Map/Reduce query method. (JavaScript+others)MongoDB follows Map/Reduce (JavaScript) creating collection + object-based query language.
ReplicationCouchDB supports master-master replication with custom conflict resolution functions.MongoDB supports master-slave replication.
ConcurrencyIt follows MVCC (Multi Version Concurrency Control).Update in-place.
PreferencesCouchDB favors availability.MongoDB favors consistency.
Performance ConsistencyIn CouchDB is safer than MongoDBIn MongoDB, database contains collections and collection contains documents.
ConsistencyCouchDB is eventually consistent.MongoDB is strongly consistent.
Written init is written in Erlang.it is written in C++.





Latest Courses