SlideShare a Scribd company logo
Cassandra vs. MongoDB
Expressive Object Model
MongoDB supports a rich and expressive object model. Objects can have
properties and can be nested in one another (a.k.a. “object oriented”).
Cassandra offers a fairly traditional table structure with rows, columns, and
each column has a specific type.
Verdict: If your problem domain needs a rich data model then MongoDB is a better fit for you.
Cassandra vs. MongoDB
Secondary Indexes
MongoDB – secondary indexes are first class constructs making it easy to
index any property of an object stored in MongoDB even if it is nested.
Cassandra – has only cursory support for secondary indexes. Good if you will
mostly be going to be querying by the primary key.
Verdict: If your application needs secondary indexes and needs flexibility in the query model
then MongoDB is a better fit for you.
Cassandra vs. MongoDB
High Availability
MongoDB supports a “single master” model. Meaning master node + a number
of slave nodes.
Cassandra supports a “multiple master” model. The loss of a single node does
not affect the ability of the cluster to take writes – so you can achieve 100%
uptime for writes.
Verdict: If you need 100% uptime Cassandra is a better fit for you.
Cassandra vs. MongoDB
Write Scalability
MongoDB with its “single master” model can take writes only on the primary.
You can deploy multiple shards but essentially only 1/3 of your data nodes
can take writes.
Cassandra with its “multiple master” model can take writes on any server. The
more servers you have in the cluster, the better it will scale.
Verdict: If write scalability is your thing, Cassandra is a better fit for you.
Cassandra vs. MongoDB
Query Language Support
Cassandra supports the CQL query language which is very similar to SQL, but
has limitations.
MongoDB at this point has no support for a query language. The queries are
structured as JSON fragments.
Verdict: If you need query language support, Cassandra is the better fit for you.
Cassandra vs. MongoDB
Performance Benchmarks – Database Model
The database model/schema of the application being tested makes a big
difference.
Some schema’s are well suited for MongoDB and some are well suited for
Cassandra.
Cassandra vs. MongoDB
Performance Benchmarks – Load Characteristics
In write-heavy benchmarks, Cassandra is
expected to trump MongoDB.
In read-heavy benchmarks, MongoDB
and Cassandra should be similar in
performance.
Cassandra vs. MongoDB
Performance Benchmarks – Consistency Requirements
Very often in a number of the ‘Marketing’ benchmarks the knobs are tuned to
disadvantage the other side. Pay close attention to the consistency settings.
Benchmark load may/may not reflect the performance of your application. So
find a benchmark load that reflects the performance characteristics of your
application.
Cassandra vs. MongoDB
Easy of Use
MongoDB is simple to get up and running.
Cassandra has made strides and the adoption of CQL as the primary interface
and it has taken this a step further making it simple for legions of SQL
programmers to use Cassandra.
Verdict: Both are fairly easy to use and ramp up.
Cassandra vs. MongoDB
Native Aggregation
MongoDB has a built in aggregation framework to run an ETL pipeline to
transform the data stored in the database.
Cassandra does not have a built-in aggregation framework.
Cassandra vs. MongoDB
Performance Benchmarks – Consistency Requirements
MongoDB you can choose to not enforce any schema on your documents.
Each document in MongoDB can be a different structure and it is up to your
application to interpret the data.
Cassandra in the newer versions (with CQL as the default language) provides
static typing. You need to define the type of very column upfront.
Cassandra vs. MongoDB
Summary
To summarize here are the important differences in table form:
Cassandra vs. MongoDB
Sign Up for a free 30 day Trial
Thanks for reading! Full article here
Hosting & management for MongoDB® and Redis®. NoSQL management Simplified.

More Related Content

What's hot (20)

PPT
Schemaless Databases
Dan Gunter
 
PPTX
AWS VS AZURE VS GCP.pptx
Raneesh Ramesan
 
PDF
Understanding Data Partitioning and Replication in Apache Cassandra
DataStax
 
PPTX
Data Lake Overview
James Serra
 
PDF
SQOOP PPT
Dushhyant Kumar
 
PDF
Introduction à ElasticSearch
Fadel Chafai
 
PPTX
Snowflake Automated Deployments / CI/CD Pipelines
Drew Hansen
 
PPTX
Introduction to Hadoop Technology
Manish Borkar
 
PPTX
Best Practices in DataOps: How to Create Agile, Automated Data Pipelines
Eric Kavanagh
 
PPTX
SQL Server Integration Services
Robert MacLean
 
PPTX
Introducing MongoDB Atlas
MongoDB
 
PPTX
Hadoop Training | Hadoop Training For Beginners | Hadoop Architecture | Hadoo...
Simplilearn
 
PDF
The Microsoft Well Architected Framework For Data Analytics
Stephanie Locke
 
PDF
Data Product Architectures
Benjamin Bengfort
 
PPTX
HBase.pptx
Sadhik7
 
PPTX
An Overview of Apache Cassandra
DataStax
 
PPT
8. column oriented databases
Fabio Fumarola
 
PDF
Introducing Databricks Delta
Databricks
 
PDF
Intro to Cassandra
DataStax Academy
 
ODP
Deep Dive Into Elasticsearch
Knoldus Inc.
 
Schemaless Databases
Dan Gunter
 
AWS VS AZURE VS GCP.pptx
Raneesh Ramesan
 
Understanding Data Partitioning and Replication in Apache Cassandra
DataStax
 
Data Lake Overview
James Serra
 
SQOOP PPT
Dushhyant Kumar
 
Introduction à ElasticSearch
Fadel Chafai
 
Snowflake Automated Deployments / CI/CD Pipelines
Drew Hansen
 
Introduction to Hadoop Technology
Manish Borkar
 
Best Practices in DataOps: How to Create Agile, Automated Data Pipelines
Eric Kavanagh
 
SQL Server Integration Services
Robert MacLean
 
Introducing MongoDB Atlas
MongoDB
 
Hadoop Training | Hadoop Training For Beginners | Hadoop Architecture | Hadoo...
Simplilearn
 
The Microsoft Well Architected Framework For Data Analytics
Stephanie Locke
 
Data Product Architectures
Benjamin Bengfort
 
HBase.pptx
Sadhik7
 
An Overview of Apache Cassandra
DataStax
 
8. column oriented databases
Fabio Fumarola
 
Introducing Databricks Delta
Databricks
 
Intro to Cassandra
DataStax Academy
 
Deep Dive Into Elasticsearch
Knoldus Inc.
 

Viewers also liked (20)

PPTX
Running 400-node Cassandra + Spark Clusters in Azure (Anubhav Kale, Microsoft...
DataStax
 
PPTX
HBase Vs Cassandra Vs MongoDB - Choosing the right NoSQL database
Edureka!
 
PPTX
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Athiq Ahamed
 
PDF
Cassandra By Example: Data Modelling with CQL3
Eric Evans
 
PPT
VP R&D Open Seminar: Caching
Moshe Kaplan
 
PDF
LesFurets.com: From 0 to Cassandra on AWS in 30 days - Tsunami Alerting Syste...
DataStax Academy
 
PPT
NoSQL Options Compared
Sergey Bushik
 
PDF
Polyglot Persistence with MongoDB and Neo4j
Corie Pollock
 
PPT
Web systems architecture, Performance and More
Moshe Kaplan
 
PDF
Cassandra + Spark + Elk
Vasil Remeniuk
 
PDF
HBase杂谈
Joseph Pan
 
PDF
Understanding Data Consistency in Apache Cassandra
DataStax
 
KEY
Strengths and Weaknesses of MongoDB
lehresman
 
PDF
Not Your Father's Database by Vida Ha
Spark Summit
 
PDF
Indexing in Cassandra
Ed Anuff
 
KEY
Introduction to Cassandra: Replication and Consistency
Benjamin Black
 
PPTX
Real-time Data Integration with Kafka and Cassandra (Ewen Cheslack-Postava, C...
DataStax
 
PDF
Cassandra Explained
Eric Evans
 
PPTX
BI, Reporting and Analytics on Apache Cassandra
Victor Coustenoble
 
PPTX
Cisco OpenSOC
James Sirota
 
Running 400-node Cassandra + Spark Clusters in Azure (Anubhav Kale, Microsoft...
DataStax
 
HBase Vs Cassandra Vs MongoDB - Choosing the right NoSQL database
Edureka!
 
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Athiq Ahamed
 
Cassandra By Example: Data Modelling with CQL3
Eric Evans
 
VP R&D Open Seminar: Caching
Moshe Kaplan
 
LesFurets.com: From 0 to Cassandra on AWS in 30 days - Tsunami Alerting Syste...
DataStax Academy
 
NoSQL Options Compared
Sergey Bushik
 
Polyglot Persistence with MongoDB and Neo4j
Corie Pollock
 
Web systems architecture, Performance and More
Moshe Kaplan
 
Cassandra + Spark + Elk
Vasil Remeniuk
 
HBase杂谈
Joseph Pan
 
Understanding Data Consistency in Apache Cassandra
DataStax
 
Strengths and Weaknesses of MongoDB
lehresman
 
Not Your Father's Database by Vida Ha
Spark Summit
 
Indexing in Cassandra
Ed Anuff
 
Introduction to Cassandra: Replication and Consistency
Benjamin Black
 
Real-time Data Integration with Kafka and Cassandra (Ewen Cheslack-Postava, C...
DataStax
 
Cassandra Explained
Eric Evans
 
BI, Reporting and Analytics on Apache Cassandra
Victor Coustenoble
 
Cisco OpenSOC
James Sirota
 
Ad

Similar to Cassandra vs. MongoDB (20)

PDF
Comparison between mongo db and cassandra using ycsb
sonalighai
 
PPTX
Cassandra for mission critical data
Oleksandr Semenov
 
PPTX
Appache Cassandra
nehabsairam
 
PDF
No sq lv1_0
Tuan Luong
 
PPTX
Intro slides from Cassandra London July 2011
Dave Gardner
 
PPTX
The myth of Cassandra
Cameron Kilgore
 
PPTX
Cassandra-vs-MongoDB
Jainul Musani
 
PPTX
Cassandra
Pooja GV
 
PPTX
Cassandra Learning
Ehsan Javanmard
 
PPTX
cassandra_presentation_final
SergioBruno21
 
PPTX
Cassandra tutorial
Ramakrishna kapa
 
PPTX
Unit -3 _Cassandra-CRUD Operations_Practice Examples
chayapathiar1
 
PPTX
Unit -3 -Features of Cassandra, CQL Data types, CQLSH, Keyspaces
ssuser9d6aac
 
PPT
Introduction to cassandra
Nguyen Quang
 
PDF
Cassandra
Carbo Kuo
 
PDF
White paper on cassandra
Navanit Katiyar
 
PPTX
Muskan Kumari (1276) Intro to NoSql.pptx. pptx
jeetigangar18
 
PPTX
MongoDB Training
Arcadian Learning
 
PPTX
Mongo db
Gyanendra Yadav
 
PPTX
NoSQL - Cassandra & MongoDB.pptx
Naveen Kumar
 
Comparison between mongo db and cassandra using ycsb
sonalighai
 
Cassandra for mission critical data
Oleksandr Semenov
 
Appache Cassandra
nehabsairam
 
No sq lv1_0
Tuan Luong
 
Intro slides from Cassandra London July 2011
Dave Gardner
 
The myth of Cassandra
Cameron Kilgore
 
Cassandra-vs-MongoDB
Jainul Musani
 
Cassandra
Pooja GV
 
Cassandra Learning
Ehsan Javanmard
 
cassandra_presentation_final
SergioBruno21
 
Cassandra tutorial
Ramakrishna kapa
 
Unit -3 _Cassandra-CRUD Operations_Practice Examples
chayapathiar1
 
Unit -3 -Features of Cassandra, CQL Data types, CQLSH, Keyspaces
ssuser9d6aac
 
Introduction to cassandra
Nguyen Quang
 
Cassandra
Carbo Kuo
 
White paper on cassandra
Navanit Katiyar
 
Muskan Kumari (1276) Intro to NoSql.pptx. pptx
jeetigangar18
 
MongoDB Training
Arcadian Learning
 
Mongo db
Gyanendra Yadav
 
NoSQL - Cassandra & MongoDB.pptx
Naveen Kumar
 
Ad

More from ScaleGrid.io (7)

PDF
Working with JSON Data in PostgreSQL vs. MongoDB
ScaleGrid.io
 
PDF
What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...
ScaleGrid.io
 
PDF
Redis vs. MongoDB: Comparing In-Memory Databases with Percona Memory Engine
ScaleGrid.io
 
PPTX
Introduction to Redis Data Structures: Sets
ScaleGrid.io
 
PPTX
Introduction to Redis Data Structures: Sorted Sets
ScaleGrid.io
 
PPTX
Introduction to Redis Data Structures: Hashes
ScaleGrid.io
 
PPTX
Introduction to Redis Data Structures
ScaleGrid.io
 
Working with JSON Data in PostgreSQL vs. MongoDB
ScaleGrid.io
 
What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...
ScaleGrid.io
 
Redis vs. MongoDB: Comparing In-Memory Databases with Percona Memory Engine
ScaleGrid.io
 
Introduction to Redis Data Structures: Sets
ScaleGrid.io
 
Introduction to Redis Data Structures: Sorted Sets
ScaleGrid.io
 
Introduction to Redis Data Structures: Hashes
ScaleGrid.io
 
Introduction to Redis Data Structures
ScaleGrid.io
 

Recently uploaded (20)

PDF
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
PPTX
Hashing Introduction , hash functions and techniques
sailajam21
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PPTX
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
PDF
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPTX
Day2 B2 Best.pptx
helenjenefa1
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
DOC
MRRS Strength and Durability of Concrete
CivilMythili
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
Element 11. ELECTRICITY safety and hazards
merrandomohandas
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PPT
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
PPTX
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
PDF
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PPTX
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
Hashing Introduction , hash functions and techniques
sailajam21
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
Day2 B2 Best.pptx
helenjenefa1
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
MRRS Strength and Durability of Concrete
CivilMythili
 
Design Thinking basics for Engineers.pdf
CMR University
 
Element 11. ELECTRICITY safety and hazards
merrandomohandas
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 

Cassandra vs. MongoDB

  • 2. Expressive Object Model MongoDB supports a rich and expressive object model. Objects can have properties and can be nested in one another (a.k.a. “object oriented”). Cassandra offers a fairly traditional table structure with rows, columns, and each column has a specific type. Verdict: If your problem domain needs a rich data model then MongoDB is a better fit for you. Cassandra vs. MongoDB
  • 3. Secondary Indexes MongoDB – secondary indexes are first class constructs making it easy to index any property of an object stored in MongoDB even if it is nested. Cassandra – has only cursory support for secondary indexes. Good if you will mostly be going to be querying by the primary key. Verdict: If your application needs secondary indexes and needs flexibility in the query model then MongoDB is a better fit for you. Cassandra vs. MongoDB
  • 4. High Availability MongoDB supports a “single master” model. Meaning master node + a number of slave nodes. Cassandra supports a “multiple master” model. The loss of a single node does not affect the ability of the cluster to take writes – so you can achieve 100% uptime for writes. Verdict: If you need 100% uptime Cassandra is a better fit for you. Cassandra vs. MongoDB
  • 5. Write Scalability MongoDB with its “single master” model can take writes only on the primary. You can deploy multiple shards but essentially only 1/3 of your data nodes can take writes. Cassandra with its “multiple master” model can take writes on any server. The more servers you have in the cluster, the better it will scale. Verdict: If write scalability is your thing, Cassandra is a better fit for you. Cassandra vs. MongoDB
  • 6. Query Language Support Cassandra supports the CQL query language which is very similar to SQL, but has limitations. MongoDB at this point has no support for a query language. The queries are structured as JSON fragments. Verdict: If you need query language support, Cassandra is the better fit for you. Cassandra vs. MongoDB
  • 7. Performance Benchmarks – Database Model The database model/schema of the application being tested makes a big difference. Some schema’s are well suited for MongoDB and some are well suited for Cassandra. Cassandra vs. MongoDB
  • 8. Performance Benchmarks – Load Characteristics In write-heavy benchmarks, Cassandra is expected to trump MongoDB. In read-heavy benchmarks, MongoDB and Cassandra should be similar in performance. Cassandra vs. MongoDB
  • 9. Performance Benchmarks – Consistency Requirements Very often in a number of the ‘Marketing’ benchmarks the knobs are tuned to disadvantage the other side. Pay close attention to the consistency settings. Benchmark load may/may not reflect the performance of your application. So find a benchmark load that reflects the performance characteristics of your application. Cassandra vs. MongoDB
  • 10. Easy of Use MongoDB is simple to get up and running. Cassandra has made strides and the adoption of CQL as the primary interface and it has taken this a step further making it simple for legions of SQL programmers to use Cassandra. Verdict: Both are fairly easy to use and ramp up. Cassandra vs. MongoDB
  • 11. Native Aggregation MongoDB has a built in aggregation framework to run an ETL pipeline to transform the data stored in the database. Cassandra does not have a built-in aggregation framework. Cassandra vs. MongoDB
  • 12. Performance Benchmarks – Consistency Requirements MongoDB you can choose to not enforce any schema on your documents. Each document in MongoDB can be a different structure and it is up to your application to interpret the data. Cassandra in the newer versions (with CQL as the default language) provides static typing. You need to define the type of very column upfront. Cassandra vs. MongoDB
  • 13. Summary To summarize here are the important differences in table form: Cassandra vs. MongoDB
  • 14. Sign Up for a free 30 day Trial Thanks for reading! Full article here Hosting & management for MongoDB® and Redis®. NoSQL management Simplified.