Software Alternatives & Reviews

Redis VS memcached

Compare Redis VS memcached and see what are their differences

Redis logo Redis

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

memcached logo memcached

High-performance, distributed memory object caching system
  • Redis Landing page
    Landing page //
    2022-10-19

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

  • memcached Landing page
    Landing page //
    2023-07-23

Redis videos

What is Redis? | Why and When to use Redis? | Tech Primers

More videos:

  • Review - Improve your Redis developer experience with RedisInsight, Redis Labs
  • Review - Redis Labs "Why NoSQL is a Safe Bet"
  • Review - Redis Enterprise Overview with Yiftach Shoolman - Redis Labs
  • Review - Redis system design | Distributed cache System design
  • Review - What is Redis and What Does It Do?
  • Review - Redis Sorted Sets Explained

memcached videos

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

Category Popularity

0-100% (relative to Redis and memcached)
Databases
80 80%
20% 20
NoSQL Databases
80 80%
20% 20
Key-Value Database
73 73%
27% 27
Graph Databases
83 83%
17% 17

User comments

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

Redis Reviews

Are Free, Open-Source Message Queues Right For You?
A notable challenge with Redis Streams is that it doesn't natively support distributed, horizontal scaling. Also, while Redis is famous for its speed and simplicity, managing and scaling a Redis installation may be complex for some users, particularly for persistent data workloads.
Source: blog.iron.io
Redis vs. KeyDB vs. Dragonfly vs. Skytable | Hacker News
1. Redis: I'll start with Redis which I'd like to call the "original" key/value store (after memcached) because it is the oldest and most widely used of all. Being a long-time follower of Redis, I do know it's single-threaded (and uses io-threads since 6.0) and hence it achieves lesser throughput than the other stores listed above which are multi-threaded, at least to some...
Memcached vs Redis - More Different Than You Would Expect
Remember when I wrote about how Redis was using malloc to assign memory? I lied. While Redis did use malloc at some point, these days Redis actually uses jemalloc. The reason for this is that jemalloc, while having lower peak performance has lower memory fragmentation helping to solve the framented memory issues that Redis experiences.
Top 15 Kafka Alternatives Popular In 2021
Redis is a known, open-source, in-memory data structure store that offers different data structures like lists, strings, hashes, sets, bitmaps, streams, geospatial indexes, etc. It is best utilized as a cache, memory broker, and cache. It has optional durability and inbuilt replication potential. It offers a great deal of availability through Redis Sentinel and Redis Cluster.
Comparing the new Redis6 multithreaded I/O to Elasticache & KeyDB
So there are 3 offerings by 3 companies, all compatible with eachother and based off open source Redis: Elasticache is offered as an optimized service offering of Redis; RedisLabs and Redis providing a core product and monetized offering, and KeyDB which remains a fast cutting edge (open source) superset of Redis. This blog looks specifically at performance, however there is...
Source: docs.keydb.dev

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...

Social recommendations and mentions

Based on our record, Redis should be more popular than memcached. It has been mentiond 185 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.

Redis mentions (185)

  • Hanami and HTMX - progress bar
    Hi there! I want to show off a little feature I made using hanami, htmx and a little bit of redis + sidekiq. - Source: dev.to / 3 days ago
  • What do you want to watch next? This is why I built GoodWatch.
    Data Handling: Utilizes Windmill for data pipelines, with a primary database powered by PostgreSQL. Auxiliary data storage is handled by MongoDB, with Redis for caching to optimize performance. - Source: dev.to / 5 days ago
  • Redis is not "open core" (2021)
    The page 404s for me currently and it does not seem to be archived by the wayback machine either: https://web.archive.org/web/20240000000000*/https://redis.io/news/121. - Source: Hacker News / about 1 month ago
  • Software Engineering Workflow
    Redis - real time data storage with different data structures in a cache. - Source: dev.to / about 1 month ago
  • Redis License Changed
    Redis.io no longer mentions open source. They have still not changed meta description on their page. It still says it is open source ^^ view-source:https://redis.io/. - Source: Hacker News / about 2 months ago
View more

memcached mentions (29)

  • Consistent Hashing: An Overview and Implementation in Golang
    Distributed caching Consistent hashing is a popular technique for distributed caching systems like Memcached and Dynamo. In these systems, the caches are distributed across many servers. When a cache miss occurs, consistent hashing is used to determine which server contains the required data. This allows the overall cache to scale to handle more requests. - Source: dev.to / 3 days ago
  • 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 / 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 / 10 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
View more

What are some alternatives?

When comparing Redis and memcached, you can also consider the following products

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.

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

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

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

neo4j - Meet Neo4j: The graph database platform powering today's mission-critical enterprise applications, including artificial intelligence, fraud detection and recommendations.