Comparison of MongoDB vs Cassandra: What are the Differences?

Sasha Andrieiev
2 min readJul 29, 2020

--

Cassandra and MongoDB are both “NoSQL” databases, but the reality is that they have very different strengths and value propositions.

The similarity between Cassandra vs MongoDB is, both of them do not replace RDBMS, also they are not an ACID database. When it comes to data requiring normalization and consistency, both Cassandra and MongoDB are a terrible choice.

One of the most significant differences between MongoDB and Cassandra is their strategy concerning data availability.

  • MongoDB has a single master directing multiple slave nodes. Although the strategy of automatic failover does ensure recovery, it may take up to a minute for the slave to become the master. During this time, the database isn’t able to respond to requests.
  • Cassandra, on the other hand, uses a different model. Instead of having one master node, it utilizes multiple masters inside a cluster. With multiple masters present, there is no fear of any downtime. The redundant model ensures high availability at all times.

Supported Programming Languages

  • MongoDB: Actionscript, C, C#, C++, Clojure, ColdFusion, D, Dart, Delphi, Erlang, Go, Groovy, Haskell, Java, JavaScript, Lisp, Lua, MatLab, Perl, PHP, PowerShell, Prolog, Python, R, Ruby, Scala, Smalltalk
  • Cassandra: C#, C++, Clojure, Erlang, Go, Haskell, Java, JavaScript, Perl, PHP, Python, Ruby, Scala

These are only several differences between MongoDB and Cassandra. Follow the guide below to learn more.

https://jelvix.com/blog/cassandra-vs-mongodb

--

--

Sasha Andrieiev
Sasha Andrieiev

No responses yet