Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Difference between Cassandra and MongoDB

  • Last Updated : 02 Jun, 2020

1. Cassandra :
Cassandra is a free and open-source, distributed, wide column store, NoSQL database management system. It was developed by Apache Software foundation and initially released on July 2008. Cassandra is designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.

2. MongoDB :
MongoDB is a cross-platform document-oriented and a non relational (i.e NoSQL) database program. It is an open-source document database, that stores the data in the form of key-value pairs. MongoDB is developed by MongoDB Inc. and initially released on 11 February 2009. It is written in C++, Go, JavaScript, Python languages. MongoDB offers high speed, high availability, and high scalability.

Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.


Difference between Cassandra and MongoBD :

1.Developed by Apache Software foundation and released on July 2008.Developed by MongoDB Inc. and initially released on 11 February 2009.
2.Cassandra is written only in Java language.MongoDB is written in C++, Go, JavaScript, Python languages.
3.Writing scalability in Cassandra is very high and efficient.Writing scalability is limited in MongoDB
4.Read performance is highly efficient in Cassandra as it takes O(1) time.Read performance is not that fast in MongoDB when compared to Cassandra.
5.Cassandra has only cursory support for secondary indexes i.e secondary indexing is resticted.MongoDB does supports the concept of secondary indexes.
6.Cassandra only supports JSON data format.MongoDB supports both JSON and BSON data formats.
7.The replication method that Cassandra supports is Selectable Replication Factor.The replication method that MongoDB supports is Master Slave Replication
8.Cassandra does not provides ACID transactions but can be tuned to support ACID properties.MongoDB provides Multi-document ACID transactions with snapshot isolation.
9.Server operating systems for Cassandra are BSD, Linux, OS X, Windows.Server operating systems for MongoDB are Solaris, Linux, OS X, Windows.
10.Famous companies like Hulu, Instagram, Intuit, Netflix, Reddit, etc uses Cassandra.Famous companies like Adobe, Amadeus, Lyft, ViaVarejo, Craftbase, etc uses MongoDB.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!