Cassandra: Cassandra Is The Best Choice For Use Cases
Cassandra: Cassandra Is The Best Choice For Use Cases
Stored Procedure No
support
Triggers support Yes
Replication methods Selectable replication factor
In-memory capabilities No
Conclusion In short, if you want a database that’s similar to RDBMS but offers more flexibility at the same time, ch
Cassandra. If you need a higher degree of flexibility and are willing to learn something new, pick Mon
(Source- https://tableplus.io/blog/2018/10/cassandra-vs-mongodb-nosql-db-comparison.html)
MongoDB
MongoDB was built in 2007 by 10gen, which later
renamed to MongoDB, Inc. MongoDB, Inc. provides
development of the software and sells their
enterprise solution.
Document store
No
Master-slave replication
Yes
C++
Custom binary (BSON)
Scalability
Flexibility
User-friendly
No concept of rows and columns
No re-establishment of indexing
ilar to RDBMS but offers more flexibility at the same time, choose
flexibility and are willing to learn something new, pick MongoDB.
018/10/cassandra-vs-mongodb-nosql-db-comparison.html)
Additional info
They are both NoSQL database.
No ACID compliance.
Both keep recent data in memory to improve performance.
Both data stores discourage joins and prefer denormalization.
Name Cassandra
Description Wide-column store based on ideas of BigTable
and DynamoDB Optimized for write access
Typing yes
XML support no
Secondary indexes restricted
SQL SQL-like SELECT, DML and DDL statements
(CQL)
APIs and other access methods Proprietary protocol
Thrift
Supported programming languages C#
C++
Clojure
Erlang
Go
Haskell
Java
JavaScript
Perl
PHP
Python
Ruby
Scala
Server-side scripts no
Triggers yes
Partitioning methods Sharding
Replication methods selectable replication factor
MapReduce yes
Consistency concepts Eventual Consistency
Immediate Consistency
Foreign keys no
Transaction concepts no
Concurrency yes
Durability yes
In-memory capabilities no
User concepts Access rights for users can be defined per
object
MongoDB Oracle NoSQL
One of the most popular document stores Key-value store based on Berkeley DB
Java Edition
docs.mongodb.com/manual docs.oracle.com/cd/NOSQL/index.html
JavaScript no
no no
Sharding Sharding
Master-slave replication Electable Master-Slave per shard
yes with Hadoop integration
Eventual Consistency Eventual Consistency
Immediate Consistency Immediate Consistency
no no
Multi-document ACID Transactions with configurable
snapshot isolation
yes yes
yes yes
yes yes
Access rights for users and roles Access rights for users and roles