Software Alternatives & Reviews

memcached VS KeyDB

Compare memcached VS KeyDB and see what are their differences

memcached logo memcached

High-performance, distributed memory object caching system

KeyDB logo KeyDB

KeyDB is fast NoSQL database with full compatibility for Redis APIs, clients, and modules.
  • memcached Landing page
    Landing page //
    2023-07-23
  • KeyDB Landing page
    Landing page //
    2022-06-19

memcached videos

Course Preview: Using Memcached and Varnish to Speed Up Your Linux Web App

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 memcached and KeyDB)
Databases
79 79%
21% 21
NoSQL Databases
80 80%
20% 20
Key-Value Database
76 76%
24% 24
Graph Databases
100 100%
0% 0

User comments

Share your experience with using memcached 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 memcached and KeyDB

memcached Reviews

Redis vs. KeyDB vs. Dragonfly vs. Skytable | Hacker News
Quick ask: I don’t see “some” of the other offering out there like MemCached… what was the criteria used to select these? I don’t see any source of how the test where run, specs of the systems, how the DB where set up, etc. Would be very valuable to have in order to attempt to re-validate these test on our own platform. I also came back and saw some of your updates...
Memcached vs Redis - More Different Than You Would Expect
So knowing how the difference between Redis and memcached in-memory usage, lets see what this means. Memcached slabs once assigned never change their size. This means it is possible to poison your memcached cluster and really waste memory. If you load your empty memcached cluster with lots of 1 MB items, then all of the slabs will be allocated to that size. Adding a 80 KB...
Redis vs. Memcached: In-Memory Data Storage Systems
Memcached itself does not support distributed mode. You can only achieve the distributed storage of Memcached on the client side through distributed algorithms such as Consistent Hash. The figure below demonstrates the distributed storage implementation schema of Memcached. Before the client side sends data to the Memcached cluster, it first calculates the target node of the...
Source: medium.com
Why Redis beats Memcached for caching
Both Memcached and Redis are mature and hugely popular open source projects. Memcached was originally developed by Brad Fitzpatrick in 2003 for the LiveJournal website. Since then, Memcached has been rewritten in C (the original implementation was in Perl) and put in the public domain, where it has become a cornerstone of modern Web applications. Current development of...

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, memcached should be more popular than KeyDB. It has been mentiond 28 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.

memcached mentions (28)

  • How to choose the right type of database
    Memcached: A simple, open-source, distributed memory object caching system primarily used for caching strings. Best suited for lightweight, non-persistent caching needs. - Source: dev.to / about 2 months ago
  • A Developer's Journal: Simplifying the Twelve-Factor App
    Stores session state in a session store like Memcached or Redis. - Source: dev.to / 5 months ago
  • Django Caching 101: Understanding the Basics and Beyond
    Django supports using Memcached as a cache backend. Memcached is a high-performance, distributed memory caching system that can be used to store cached data across multiple servers. - Source: dev.to / 9 months ago
  • Node.js server-side authentication: Tokens vs. JWT
    In server-side authentication, the session state is stored on the server-side, which can be scaled horizontally across multiple servers using tools like Redis or Memcached. - Source: dev.to / 10 months ago
  • How Instagram handles data?
    The main components are sharding and caching. The storage is done with MySQL. The cache is done by memcached. Source: 12 months ago
View more

KeyDB mentions (8)

  • 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 1 year 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 2 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 2 years ago
  • Dragonflydb – A modern replacement for Redis and Memcached
    How does this compare to other multithreaded redis protocol compatibles? KeyDB is one key player https://docs.keydb.dev/. - Source: Hacker News / almost 2 years ago
  • Global Presence; I made a thing
    KeyDB is a fork of (everyone's favourite cache store) Redis, and it's messaging protocol and API is 100% compatible with Redis. What that means is you can just point any Redis client (like Hiredis or redis-rb) at a KeyDB instance, and it'll Just Work™️, with no changes required. The KeyDB selling points are: 1) multi-threading by default, and a lot of work was ploughed in to high performance around multi-threading... - Source: dev.to / about 2 years ago
View more

What are some alternatives?

When comparing memcached 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.

Skytable - Skytable is a free and open-source realtime NoSQL database that aims to provide flexible data modelling at scale.

Aerospike - Aerospike is a high-performing NoSQL database supporting high transaction volumes with low latency.

Dragonfly DB - Dragonfly - Scalable in-memory datastore made simple

PostgreSQL - PostgreSQL is a powerful, open source object-relational database system.