Open In App
Related Articles

Comparison between MongoDB vs. Cassandra

Improve Article
Save Article
Like Article

In this article we will discuss about similarities and differences between MongoDB and Cassandra.
1. MongoDB :
MongoDB is a cross-platform document-oriented database program. It is an open-source document database, which stores the data in the form of key-value pairs.

Supported Languages : C++, Go, JavaScript, Python.

2. Cassandra :
Cassandra is a free and open-source, distributed, wide column store, NoSQL database management system. Which is used to handle large amounts of data.

Supported Languages : Java

Similarities :

  1. MongoDB and Cassandra used TCP/IP Protocol to transfer/receive the data through a network.
  2. Locks are available in Both.
  3. Both will support Linux OS, Mac – OS and Windows
  4. Both will store the data in disc.
  5. MongoDB and Cassandra are open sourced(Freely available to all)
  6. Both are scalable

Difference between MongoDB and Cassandra :



Cassandra was developed by Apache Software foundation.  MongoDB was developed by MongoDB Inc. 
Cassandra can be written only in Java language. MongoDB is written in C++, Go, JavaScript, Python languages.
It will provide Local Transactions. It will not provide Local Transactions.
Triggers are available. Triggers are not available.
Data is replicated by using Multi-Master for Replication Factor. Data is replicated by using Master-Slave for Replication Factor.
Cassandra will not support Secondary Indexes. MongoDB Supports Secondary Indexes.
It is linearly scalable. It is not linearly scalable.
It stores large dataset. It can’t store large datasets.
Node failure may occur in Cassandra. Node failure never occurs in Cassandra.
Cassandra gives better throughput than MongoDB. Less throughput than Cassandra.
Cassandra  support JSON data format. MongoDB supports both JSON and BSON data formats.
Data protection is upto 80%. Data protection is upto 70%.


Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 29 Jun, 2021
Like Article
Save Article
Similar Reads
Complete Tutorials