Software Alternatives, Accelerators & Startups

Apache Cassandra VS KeyDB

Compare Apache Cassandra VS KeyDB and see what are their differences

Apache Cassandra logo Apache Cassandra

The Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance.

KeyDB logo KeyDB

KeyDB is fast NoSQL database with full compatibility for Redis APIs, clients, and modules.
  • Apache Cassandra Landing page
    Landing page //
    2022-04-17
  • KeyDB Landing page
    Landing page //
    2022-06-19

Apache Cassandra features and specs

  • Scalability
    Apache Cassandra is designed for linear scalability and can handle large volumes of data across many commodity servers without a single point of failure.
  • High Availability
    Cassandra ensures high availability by replicating data across multiple nodes. Even if some nodes fail, the system remains operational.
  • Performance
    It provides fast writes and reads by using a peer-to-peer architecture, making it highly suitable for applications requiring quick data access.
  • Flexible Data Model
    Cassandra supports a flexible schema, allowing users to add new columns to a table at any time, making it adaptable for various use cases.
  • Geographical Distribution
    Data can be distributed across multiple data centers, ensuring low-latency access for geographically distributed users.
  • No Single Point of Failure
    Its decentralized nature ensures there is no single point of failure, which enhances resilience and fault-tolerance.

Possible disadvantages of Apache Cassandra

  • Complexity
    Managing and configuring Cassandra can be complex, requiring specialized knowledge and skills for optimal performance.
  • Eventual Consistency
    Cassandra follows an eventual consistency model, meaning that there might be a delay before all nodes have the latest data, which may not be suitable for all use cases.
  • Write-heavy Operations
    Although Cassandra handles writes efficiently, write-heavy workloads can lead to compaction issues and increased read latency.
  • Limited Query Capabilities
    Cassandra's query capabilities are relatively limited compared to traditional RDBMS, lacking support for complex joins and aggregations.
  • Maintenance Overhead
    Regular maintenance tasks such as node repair and compaction are necessary to ensure optimal performance, adding to the administrative overhead.
  • Tooling and Ecosystem
    While the ecosystem for Cassandra is growing, it is still not as extensive or mature as those for some other database technologies.

KeyDB features and specs

  • High Performance
    KeyDB offers superior performance over Redis by allowing multi-threading, which utilizes multiple CPU cores efficiently, leading to significant improvements in throughput and latency.
  • Redis Compatibility
    KeyDB is fully compatible with Redis, meaning users can easily switch between Redis and KeyDB without needing to change their existing code or data structures.
  • Active Replication
    It supports multi-primary (active-active) replication, enabling all replicas to accept writes without worrying about conflicts, which increases availability and resilience.
  • Built-in TLS
    KeyDB includes built-in TLS support which enhances security by allowing data encryption in transit, a feature that requires third-party solutions in some Redis setups.
  • Persistence Options
    KeyDB supports both RDB snapshotting and AOF logging, offering flexible persistence strategies to balance between performance and durability.

Possible disadvantages of KeyDB

  • Community Size
    KeyDB, while gaining popularity, has a smaller community compared to Redis, which can lead to less community support and fewer third-party tools or extensions.
  • Maturity
    As a relatively newer project compared to Redis, KeyDB may lack the same level of proven stability and maturity, making it a potentially riskier choice for critical applications.
  • Documentation and Resources
    While KeyDB has extensive documentation, it might not be as comprehensive or complete as Redis, potentially leading to longer project integration times.
  • Potential Compatibility Issues
    Although KeyDB is compatible with Redis, advanced Redis features or unusual configurations might face compatibility issues during migration.
  • Less Architectural Simplicity
    The added complexity of multi-threading and active-active replication modes can increase the operational overhead compared to Redis's simpler single-threaded, master-slave architecture.

Apache Cassandra videos

Course Intro | DS101: Introduction to Apache Cassandra™

More videos:

  • Review - Introduction to Apache Cassandra™

KeyDB videos

KeyDB on FLASH (Redis Compatible)

More videos:

  • Demo - Simple Demo of KeyDB on Flash in under 7 minutes (Drop in Redis Alternative)

Category Popularity

0-100% (relative to Apache Cassandra and KeyDB)
Databases
85 85%
15% 15
NoSQL Databases
82 82%
18% 18
Key-Value Database
0 0%
100% 100
Relational Databases
93 93%
7% 7

User comments

Share your experience with using Apache Cassandra and KeyDB. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare Apache Cassandra and KeyDB

Apache Cassandra Reviews

16 Top Big Data Analytics Tools You Should Know About
Application Areas: If you want to work with SQL-like data types on a No-SQL database, Cassandra is a good choice. It is a popular pick in the IoT, fraud detection applications, recommendation engines, product catalogs and playlists, and messaging applications, providing fast real-time insights.
9 Best MongoDB alternatives in 2019
The Apache Cassandra is an ideal choice for you if you want scalability and high availability without affecting its performance. This MongoDB alternative tool offers support for replicating across multiple datacenters.
Source: www.guru99.com

KeyDB Reviews

Redis vs. KeyDB vs. Dragonfly vs. Skytable | Hacker News
2. KeyDB: The second is KeyDB. IIRC, I saw it in a blog post which said that it is a "multithreaded fork of Redis that is 5X faster"[1]. I really liked the idea because I was previously running several instances of Redis on the same node and proxying them like a "single-node cluster." Why? To increase CPU utilization. A single KeyDB instance could replace the unwanted...
Comparing the new Redis6 multithreaded I/O to Elasticache & KeyDB
Because of KeyDB’s multithreading and performance gains, we typically need a much larger benchmark machine than the one KeyDB is running on. We have found that a 32 core m5.8xlarge is needed to produce enough throughput with memtier. This supports throughput for up to a 16 core KeyDB instance (medium to 4xlarge)
Source: docs.keydb.dev
KeyDB: A Multithreaded Redis Fork | Hacker News
"KeyDB works by running the normal Redis event loop on multiple threads. Network IO, and query parsing are done concurrently. Each connection is assigned a thread on accept(). Access to the core hash table is guarded by spinlock. Because the hashtable access is extremely fast this lock has low contention. Transactions hold the lock for the duration of the EXEC command....

Social recommendations and mentions

Based on our record, Apache Cassandra should be more popular than KeyDB. It has been mentiond 44 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Apache Cassandra mentions (44)

  • Why You Shouldn’t Invest In Vector Databases?
    In fact, even in the absence of these commercial databases, users can effortlessly install PostgreSQL and leverage its built-in pgvector functionality for vector search. PostgreSQL stands as the benchmark in the realm of open-source databases, offering comprehensive support across various domains of database management. It excels in transaction processing (e.g., CockroachDB), online analytics (e.g., DuckDB),... - Source: dev.to / 7 days ago
  • Data integrity in Ably Pub/Sub
    All messages are persisted durably for two minutes, but Pub/Sub channels can be configured to persist messages for longer periods of time using the persisted messages feature. Persisted messages are additionally written to Cassandra. Multiple copies of the message are stored in a quorum of globally-distributed Cassandra nodes. - Source: dev.to / 5 months ago
  • Which Database is Perfect for You? A Comprehensive Guide to MySQL, PostgreSQL, NoSQL, and More
    Cassandra is a highly scalable, distributed NoSQL database designed to handle large amounts of data across many commodity servers without a single point of failure. - Source: dev.to / 10 months ago
  • Consistent Hashing: An Overview and Implementation in Golang
    Distributed storage Distributed storage systems like Cassandra, DynamoDB, and Voldemort also use consistent hashing. In these systems, data is partitioned across many servers. Consistent hashing is used to map data to the servers that store the data. When new servers are added or removed, consistent hashing minimizes the amount of data that needs to be remapped to different servers. - Source: dev.to / 12 months ago
  • Understanding SQL vs. NoSQL Databases: A Beginner's Guide
    On the other hand, NoSQL databases are non-relational databases. They store data in flexible, JSON-like documents, key-value pairs, or wide-column stores. Examples include MongoDB, Couchbase, and Cassandra. - Source: dev.to / about 1 year ago
View more

KeyDB mentions (10)

  • Redis
    These facts only hold when the size of your payload and the number of connections remain relatively small. This easily jumps out the window with ever-increasing load parameters. The threshold is, unfortunately, rather low at a high number of connections and increased payload sizes. Modern large-scale micro-services will easily have over 100 running instances at medium scale. And since most instances employ some... - Source: dev.to / 3 months ago
  • Introducing LMS Moodle Operator
    The LMS Moodle Operator serves as a meta-operator, orchestrating the deployment and management of Moodle instances in Kubernetes. It handles the entire stack required to run Moodle, including components like Postgres, Keydb, NFS-Ganesha, and Moodle itself. Each of these components has its own Kubernetes Operator, ensuring seamless integration and management. - Source: dev.to / about 1 year ago
  • Dragonfly Is Production Ready (and we raised $21M)
    Congrats on the funding and getting production ready, it's good that KeyDB (and Redis) get some competition. https://docs.keydb.dev/ Open question, how does Dragonfly differ from KeyDB? - Source: Hacker News / about 2 years ago
  • I deleted 78% of my Redis container and it still works
    See: Distroless images[0] This is one of the huge benefits of recent systems languages like go and rust -- they compile to single binaries so you can use things like scatch[1] containers. You may have to fiddle with gnu libc/musl libc (usually when getaddrinfo is involved/dns etc), but once you're done with it, packaging is so easy. Even languages like Node (IMO the most progressive of the scripting languages)... - Source: Hacker News / almost 3 years ago
  • Dragonflydb – A modern replacement for Redis and Memcached
    Interesting project. Very similar to KeyDB [1] which also developed a multi-threaded scale-up approach to Redis. It's since been acquired by Snapchat. There's also Aerospike [2] which has developed a lot around low-latency performance. 1. https://docs.keydb.dev/ 2. https://aerospike.com/. - Source: Hacker News / almost 3 years ago
View more

What are some alternatives?

When comparing Apache Cassandra and KeyDB, you can also consider the following products

Redis - Redis is an open source in-memory data structure project implementing a distributed, in-memory key-value database with optional durability.

MongoDB - MongoDB (from "humongous") is a scalable, high-performance NoSQL database.

ArangoDB - A distributed open-source database with a flexible data model for documents, graphs, and key-values.

Apache Ignite - high-performance, integrated and distributed in-memory platform for computing and transacting on...

OrientDB - OrientDB - The World's First Distributed Multi-Model NoSQL Database with a Graph Database Engine.

memcached - High-performance, distributed memory object caching system