Apache Cassandra vs. MongoDB

Overview
ProductRatingMost Used ByProduct SummaryStarting Price
Cassandra
Score 7.7 out of 10
N/A
Cassandra is a no-SQL database from Apache.N/A
MongoDB
Score 8.0 out of 10
N/A
MongoDB is an open source document-oriented database system. It is part of the NoSQL family of database systems. Instead of storing data in tables as is done in a "classical" relational database, MongoDB stores structured data as JSON-like documents with dynamic schemas (MongoDB calls the format BSON), making the integration of data in certain types of applications easier and faster.
$0.10
million reads
Pricing
Apache CassandraMongoDB
Editions & Modules
No answers on this topic
Shared
$0
per month
Serverless
$0.10million reads
million reads
Dedicated
$57
per month
Offerings
Pricing Offerings
CassandraMongoDB
Free Trial
NoYes
Free/Freemium Version
NoYes
Premium Consulting/Integration Services
NoNo
Entry-level Setup FeeNo setup feeNo setup fee
Additional DetailsFully managed, global cloud database on AWS, Azure, and GCP
More Pricing Information
Community Pulse
Apache CassandraMongoDB
Considered Both Products
Cassandra
Chose Apache Cassandra
Four years ago, I needed to choose a web-scale database. Having used relational databases for years (PostgreSQL is my favorite), I needed something that could perform well at scale with no downtime. I considered VoltDB for its in-memory speed, but it's limited in scale. I …
Chose Apache Cassandra
Apache Cassandra has the best of both worlds, it is a Java based NoSQL, linearly scalable, best in class tunable performance across different workloads, fault tolerant, distributed, masterless, time series database. We have used both Apache HBase and MongoDB for some use cases …
Chose Apache Cassandra
We evaluated MongoDB also, but don't like the single point failure possibility. The HBase coupled us too tightly to the Hadoop world while we prefer more technical flexibility. Also HBase is designed for "cold"/old historical data lake use cases and is not typically used for …
Chose Apache Cassandra
Against HBase, writes were faster. Reads not so much. Also ability to store in other formats would be good (such as objects). Compared to aerospike, does not compare. Aerospike blows it out of water.
Chose Apache Cassandra
DynamoDB is good and is also a truly global database as a service on AWS. However, if your organization is not using AWS, then Cassandra will provide a highly scalable and tuneable, consistent database.
Cassandra is also fault-tolerant and good for replication across multiple …
Chose Apache Cassandra
Technology selection should be done based on the need and not based on buzz words in the market (google searching). If your data need flat file approach and more searchable based on index and partition keys, then it's better to go for Cassandra. Cassandra is a better choice …
Chose Apache Cassandra

These are the features which makes Cassandra different from others:

  • Cassandra is a distributed datastore, with a built-in coordinator. This means that requests are intelligently forwarded to the correct node.
  • It is generally very fast, and especially shines with write heavy …
MongoDB
Chose MongoDB
We have [measured] the speed in reading/write operations in high load and finally select the winner = MongoDBWe have [not] too much data but in case there will be 10 [times] more we need Cassandra. Cassandra's storage engine provides constant-time writes no matter how big your …
Chose MongoDB
I would say Cassandra is better than MongoDB since it has the backing of Facebook to it. Its inherent properties like versioning put it into the other category of columnar databases, but it's one of the NoSQL databases which you should definitely consider for your organization …
Chose MongoDB
We selected MongoDB because of the following
  • Ease of deployment
  • Use and provisioning on their cloud
Chose MongoDB
MongoDB and Cassandra are both database system from the NoSQL family. MongoDB can be used in lots of use cases while Cassandra has a specific usage. There are some features that MongoDB provides efficiently while Cassandra doesn't and vice-versa. Like, you can update the data …
Chose MongoDB
In the beginning, we considered several products in the market. Since our project was a science and research project, our budget wasn't as big as a commercial project, but still, we wanted the product to be scalable so that we could deal with "smooth transition" from research …
Chose MongoDB
I tried Cassandra, but the performance lags behind MongoDB
Chose MongoDB
From the beginning, we thought we would have a large volume of data, so MongoDB was a natural choice. Next we started the project and found MongoDB is also developing new features that are more like SQL which was very nice for us. As data volume is growing with time, no need to …
Chose MongoDB
Cassandra: may be better for bigger use cases, in PB range, due to our use cases being slightly smaller, we did not need this, but we highly rely on efficient indexing, and low latency, which seemed to be better based on our testing in Mongodb.
Couchbase Server: Document …
Chose MongoDB
MongoDB provides better performance on a big database. If you prefer to define indexes rather than a map/reduce function, MongoDB is good for you. It's quick to start it up and very easy to learn, basically no entry barrier. MongoDB's community is very welcoming.
Chose MongoDB
I have used KairosDB, Cassandra and MySQL and mongodb proves out to be the best of them. Mainly due to it being a document-oriented database.
Chose MongoDB
MongoDB's interface is extremely intuitive and allows [you to] come up from no knowledge to a working deployment with no effort,
even without a background in the NoSQL world.
Chose MongoDB
We chose MongoDB because it fit our specific use cases better than the other two NoSQL products that I've identified. There are some use cases where those products would be better. Be sure to use the right tool for the job, for us, it was MongoDB, for you it might not be.
Chose MongoDB
I use Cassandra more often these days for best in class performance, tunable consistency, linear scalability. In similar cases, I have used Apache HBase. But if there is a need for document store, MongoDB is the top choice.
Chose MongoDB
Cassandra, CouchDB were master less technology platforms. MongoDB single master per shard is well suited for many business models
Top Pros
Top Cons
TrustRadius Insights
Apache CassandraMongoDB
Highlights

TrustRadius
Research Team Insight
Published

Cassandra and MongoDB are NoSQL databases designed to store large amounts of data in a highly scalable way. Cassandra tends to be used by mid-sized companies and larger enterprises, while MongoDB is a popular choice for companies of all sizes.

MongoDB is great for smaller businesses due to its affordability and flexible querying. Large enterprises may prefer Cassandra due to its scalability and safeguards against database downtime.

Features

Cassandra and MongoDB both have essential NoSQL database features, but they also have some standout features that set them apart.

Cassandra is a highly scalable database solution that can manage large amounts of unstructured data. Additionally, Cassandra utilizes multiple master nodes, so if one node goes down, data availability doesn’t suffer as long as other nodes are available. Cassandra is easy to set up, even without support, in part due to simple data replication capabilities.

MongoDB uses a data-oriented data model that makes it straightforward to perform data analysis. Secondary indexes are also supported by MongoDB, which makes querying flexible and fast as long as the queried documents aren’t missing indexes. JavaScript developers will also have an easy time working with MongoDB as it has a robust API with nodeJS.

Limitations

Although Cassandra and MongoDB both perform basic NoSQL database functions, they both also have some significant limitations that should be considered.

Cassandra offers limited support for secondary indexing. As a result, users must query by primary keys. Querying by primary keys limits flexibility in data modeling as data must be structured based on the queries users want to use rather than the structure of the data itself. Administration and management of Cassandra databases can also be taxing as there are frequent rolling updates that are not automated.

MongoDB’s indexing allows for quick querying if all indexes are present, but nay missing indexes can result in slowdown as each document in a collection needs to be searched. Additionally, MongoDB only has one master node per cluster. If the master node ever goes down, the data it holds will briefly become unavailable until a new node replaces it. Setup for MongoDB is more complicated than Cassandra, so support may be necessary for some organizations.

Pricing

Cassandra is an open-source NoSQL database, so the source code is available for free. Various third-party vendors provide hosting and support for Cassandra, so pricing can vary. Depending on storage and support features, some Cassandra vendors start as low as $0.36 per hour.

MongoDB has official support for three different cloud providers, AWS, Google Cloud, and Azure. Pricing depends on the cloud provider chosen, as well as cluster size and storage requirements. MongoDB pricing can start as low as a few cents per hour.

Features
Apache CassandraMongoDB
NoSQL Databases
Comparison of NoSQL Databases features of Product A and Product B
Apache Cassandra
8.0
5 Ratings
9% below category average
MongoDB
9.1
38 Ratings
4% above category average
Performance8.55 Ratings9.038 Ratings
Availability8.85 Ratings9.738 Ratings
Concurrency7.65 Ratings8.638 Ratings
Security8.05 Ratings8.638 Ratings
Scalability9.55 Ratings9.438 Ratings
Data model flexibility6.75 Ratings9.138 Ratings
Deployment model flexibility7.05 Ratings9.137 Ratings
Best Alternatives
Apache CassandraMongoDB
Small Businesses
IBM Cloudant
IBM Cloudant
Score 8.3 out of 10
IBM Cloudant
IBM Cloudant
Score 8.3 out of 10
Medium-sized Companies
IBM Cloudant
IBM Cloudant
Score 8.3 out of 10
IBM Cloudant
IBM Cloudant
Score 8.3 out of 10
Enterprises
IBM Cloudant
IBM Cloudant
Score 8.3 out of 10
IBM Cloudant
IBM Cloudant
Score 8.3 out of 10
All AlternativesView all alternativesView all alternatives
User Ratings
Apache CassandraMongoDB
Likelihood to Recommend
6.0
(16 ratings)
9.4
(78 ratings)
Likelihood to Renew
8.6
(16 ratings)
10.0
(67 ratings)
Usability
7.0
(1 ratings)
9.0
(14 ratings)
Availability
-
(0 ratings)
9.0
(1 ratings)
Support Rating
7.0
(1 ratings)
9.6
(13 ratings)
Implementation Rating
7.0
(1 ratings)
8.4
(2 ratings)
User Testimonials
Apache CassandraMongoDB
Likelihood to Recommend
Apache
Apache Cassandra is a NoSQL database and well suited where you need highly available, linearly scalable, tunable consistency and high performance across varying workloads. It has worked well for our use cases, and I shared my experiences to use it effectively at the last Cassandra summit! http://bit.ly/1Ok56TK It is a NoSQL database, finally you can tune it to be strongly consistent and successfully use it as such. However those are not usual patterns, as you negotiate on latency. It works well if you require that. If your use case needs strongly consistent environments with semantics of a relational database or if the use case needs a data warehouse, or if you need NoSQL with ACID transactions, Apache Cassandra may not be the optimum choice.
Read full review
MongoDB
If asked by a colleague I would highly recommend MongoDB. MongoDB provides incredible flexibility and is quick and easy to set up. It also provides extensive documentation which is very useful for someone new to the tool. Though I've used it for years and still referenced the docs often. From my experience and the use cases I've worked on, I'd suggest using it anywhere that needs a fast, efficient storage space for non-relational data. If a relational database is needed then another tool would be more apt.
Read full review
Pros
Apache
  • Continuous availability: as a fully distributed database (no master nodes), we can update nodes with rolling restarts and accommodate minor outages without impacting our customer services.
  • Linear scalability: for every unit of compute that you add, you get an equivalent unit of capacity. The same application can scale from a single developer's laptop to a web-scale service with billions of rows in a table.
  • Amazing performance: if you design your data model correctly, bearing in mind the queries you need to answer, you can get answers in milliseconds.
  • Time-series data: Cassandra excels at recording, processing, and retrieving time-series data. It's a simple matter to version everything and simply record what happens, rather than going back and editing things. Then, you can compute things from the recorded history.
Read full review
MongoDB
  • Being a JSON language optimizes the response time of a query, you can directly build a query logic from the same service
  • You can install a local, database-based environment rather than the non-relational real-time bases such a firebase does not allow, the local environment is paramount since you can work without relying on the internet.
  • Forming collections in Mango is relatively simple, you do not need to know of query to work with it, since it has a simple graphic environment that allows you to manage databases for those who are not experts in console management.
Read full review
Cons
Apache
  • Cassandra runs on the JVM and therefor may require a lot of GC tuning for read/write intensive applications.
  • Requires manual periodic maintenance - for example it is recommended to run a cleanup on a regular basis.
  • There are a lot of knobs and buttons to configure the system. For many cases the default configuration will be sufficient, but if its not - you will need significant ramp up on the inner workings of Cassandra in order to effectively tune it.
Read full review
MongoDB
  • An aggregate pipeline can be a bit overwhelming as a newcomer.
  • There's still no real concept of joins with references/foreign keys, although the aggregate framework has a feature that is close.
  • Database management/dev ops can still be time-consuming if rolling your own deployments. (Thankfully there are plenty of providers like Compose or even MongoDB's own Atlas that helps take care of the nitty-gritty.
Read full review
Likelihood to Renew
Apache
I would recommend Cassandra DB to those who know their use case very well, as well as know how they are going to store and retrieve data. If you need a guarantee in data storage and retrieval, and a DB that can be linearly grown by adding nodes across availability zones and regions, then this is the database you should choose.
Read full review
MongoDB
I am looking forward to increasing our SaaS subscriptions such that I get to experience global replica sets, working in reads from secondaries, and what not. Can't wait to be able to exploit some of the power that the "Big Boys" use MongoDB for.
Read full review
Usability
Apache
It’s great tool but it can be complicated when it comes administration and maintenance.
Read full review
MongoDB
NoSQL database systems such as MongoDB lack graphical interfaces by default and therefore to improve usability it is necessary to install third-party applications to see more visually the schemas and stored documents. In addition, these tools also allow us to visualize the commands to be executed for each operation.
Read full review
Support Rating
Apache
Sometimes instead giving straight answer, we ‘re getting transfered to talk professional service.
Read full review
MongoDB
Finding support from local companies can be difficult. There were times when the local company could not find a solution and we reached a solution by getting support globally. If a good local company is found, it will overcome all your problems with its global support.
Read full review
Implementation Rating
Apache
No answers on this topic
MongoDB
While the setup and configuration of MongoDB is pretty straight forward, having a vendor that performs automatic backups and scales the cluster automatically is very convenient. If you do not have a system administrator or DBA familiar with MongoDB on hand, it's a very good idea to use a 3rd party vendor that specializes in MongoDB hosting. The value is very well worth it over hosting it yourself since the cost is often reasonable among providers.
Read full review
Alternatives Considered
Apache
We evaluated MongoDB also, but don't like the single point failure possibility. The HBase coupled us too tightly to the Hadoop world while we prefer more technical flexibility. Also HBase is designed for "cold"/old historical data lake use cases and is not typically used for web and mobile applications due to its performance concern. Cassandra, by contrast, offers the availability and performance necessary for developing highly available applications. Furthermore, the Hadoop technology stack is typically deployed in a single location, while in the big international enterprise context, we demand the feasibility for deployment across countries and continents, hence finally we are favor of Cassandra
Read full review
MongoDB
We have [measured] the speed in reading/write operations in high load and finally select the winner = MongoDBWe have [not] too much data but in case there will be 10 [times] more we need Cassandra. Cassandra's storage engine provides constant-time writes no matter how big your data set grows. For analytics, MongoDB provides a custom map/reduce implementation; Cassandra provides native Hadoop support.
Read full review
Return on Investment
Apache
  • I have no experience with this but from the blogs and news what I believe is that in businesses where there is high demand for scalability, Cassandra is a good choice to go for.
  • Since it works on CQL, it is quite familiar with SQL in understanding therefore it does not prevent a new employee to start in learning and having the Cassandra experience at an industrial level.
Read full review
MongoDB
  • Open Source w/ reasonable support costs have a direct, positive impact on the ROI (we moved away from large, monolithic, locked in licensing models)
  • You do have to balance the necessary level of HA & DR with the number of servers required to scale up and scale out. Servers cost money - so DR & HR doesn't come for free (even though it's built into the architecture of MongoDB
Read full review
ScreenShots

MongoDB Screenshots

Screenshot of Screenshot of Screenshot of Screenshot of Screenshot of Screenshot of