Open In App

Difference between Cassandra and MongoDB

Improve
Improve
Like Article
Like
Save
Share
Report

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. 

Difference between Cassandra and MongoDB : 

S.NO. Cassandra MongoDB
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 restricted. 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.

 


Last Updated : 17 Dec, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads