In this article, we will have a quick review to point out some key differences between Cassandra and Redis, two well-known NoSQL databases.
What is it?
- Redis is an in-memory data structure store, used as database, cache and message broker.
- Cassandra is a wide-column store based on ideas of BigTable and DynamoDB.
Both Redis and Cassandra are open source NoSQL databases.
Who is behind it?
- Redis is developed and sponsored by Redis Labs
- Cassandra is Apache top-level project, originally developed by Facebook
- Redis: BSD
- Cassandra: Apache
- Redis was written in C and C++ while Cassandra was written in Java.
- Redis store the data as a key-value pair which normally not supported any SQL like language.
- Cassandra can hold huge data in a tabular format which support HiveQL, a SQL-like language.
- Cassandra follows big table like features, it holding column or column families for the list of data.
- Redis doesn’t have column concept, it stored data as key-value pair always.
- Redis supports almost any languages that you can think of:
- Pure Data
- Visual Basic
- Cassandra supports a few languages:
- Redis uses the proper Master-slave replication and Multi-master replication.
- Cassandra uses selectable replication factor.
When to use?
You should consider based on these criteria:
- Cassandra has been a preferred option for situations that require a lot of writing. It’s also a better solution when considering Fault Tolerance as it follows the proper Hadoop architecture.
- On the other hand, Redis is always used for frequently and rapidly changed data on both read and write, or when you need Key Value relationship implementation.
Need a good GUI Tool for Redis or Cassandra? Try TablePlus, a modern, native GUI client for multiple databases. It’s free anyway.
Not on Mac? Download TablePlus for Windows.