Dev tools
Redis vs Valkey: What Changed and Which to Use
Redis vs Valkey explained: the licence change and fork, AGPL Redis 8, performance, compatibility, cloud pricing, migration, and which one to choose.
In Redis vs Valkey, the core difference is licensing and governance, not how they work. Valkey is a community fork of Redis 7.2.4, created in March 2024 under the open-source BSD licence after Redis Ltd moved Redis to source-available licences, and it's run under the Linux Foundation with backing from AWS, Google Cloud, Oracle and others. Redis is developed by Redis Ltd and, since Redis 8 in 2025, is available again under an open-source licence, the AGPLv3, alongside its source-available licences. For most applications both work as drop-in in-memory data stores; choose Valkey for a permissive open-source licence and lower managed-cloud prices, and Redis for its newest built-in features and Redis Ltd's ecosystem and support.
This guide explains what changed, compares features, performance and compatibility, covers cloud pricing and migration, and gives a clear way to decide.
What Happened: The Redis License Change and the Fork
The timeline behind the Redis license story:
- 2009 to early 2024: Redis was open source under the permissive BSD licence and became the most popular in-memory data store, used for caching, sessions, queues, rate limiting and real-time features.
- March 2024: Redis Ltd changed the licence for future versions (from Redis 7.4) to a dual source-available model, the Redis Source Available License v2 (RSALv2) and the Server Side Public License v1 (SSPLv1). Neither is approved as open source by the Open Source Initiative. The main aim was to stop cloud providers from offering Redis as a managed service without a commercial agreement.
- March 2024: a group of Redis contributors, backed by the Linux Foundation and companies including AWS, Google Cloud, Oracle, Ericsson and Snap, forked the last BSD-licensed version, Redis 7.2.4, as Valkey.
- September 2024: Valkey 8.0 shipped with major changes, including a new multi-threaded I/O model, marking the point where the two projects clearly diverged.
- May 2025: with Redis 8, Redis Ltd added the AGPLv3, an OSI-approved open-source licence, as a third licensing option. Redis 8 also merged features that used to be separate modules, such as JSON, time series, probabilistic data structures and the query engine, into the core.
- 2026: both projects continue in parallel. Major cloud providers offer managed Valkey alongside or instead of Redis OSS, and AWS made Valkey 9.0 available on ElastiCache in May 2026.
Redis vs Valkey at a Glance
| Redis | Valkey | |
|---|---|---|
| Origin | Original project, created in 2009 | Fork of Redis 7.2.4, March 2024 |
| Governance | Redis Ltd | Linux Foundation project, community maintainers |
| Licence | AGPLv3, RSALv2 or SSPLv1 (Redis 8+) | BSD 3-Clause |
| Built-in extras | JSON, time series, probabilistic structures, query engine and vector search in core (Redis 8) | Core data structures; JSON, Bloom filters and search available as separate modules |
| Threading | Mostly single-threaded command execution with I/O threads | Redesigned multi-threaded I/O from Valkey 8 |
| Client compatibility | Redis clients | Works with most Redis clients and the Redis protocol |
| Managed cloud | Redis Cloud and some cloud providers | AWS ElastiCache and MemoryDB, Google Memorystore, and others |
| Commercial support | Redis Ltd | Cloud providers and third-party vendors |
What Is Valkey?
Valkey is an open-source, in-memory key-value data store that started as an exact copy of Redis 7.2.4. It keeps Redis's data structures (strings, lists, sets, sorted sets, hashes, streams), its protocol, persistence options, replication and clustering, so applications and client libraries built for Redis 7.2 generally work with Valkey without code changes.
Since the fork, Valkey has focused on performance and efficiency for large-scale deployments. Valkey 8.0 introduced a redesigned threading model for parallel I/O, and Valkey 8.1 rebuilt core data structures to use memory more efficiently. Its development is driven largely by engineers from the cloud providers that run it at massive scale, and independent analysis by Percona found Valkey attracting more pull requests per month than Redis during 2025.
As a Redis alternative, Valkey is the most direct one: same commands, same clients and same operational model, under a permissive licence.
Valkey vs Redis Performance
Valkey vs Redis performance has become a point of competition:
- Valkey's multi-threaded I/O lets it handle more requests per second on servers with many cores, which matters for very high-throughput caches. Valkey's maintainers reported large throughput gains with Valkey 8.0's threading model.
- Memory efficiency: Valkey 8.1's rebuilt hash table reduced memory overhead per key, which lowers costs for large datasets.
- Redis 8 also brought performance improvements and added new data types and query capabilities, so the gap depends on the workload and version.
For most applications, either is far faster than needed: a cache serving thousands of requests per second won't notice the difference. Benchmark your own workload, especially if you run very large clusters where efficiency translates directly into server costs.
Features: Where They Now Differ
Since the fork, each project has added features independently:
- Redis 8 includes JSON documents, time series, probabilistic data structures such as Bloom filters, and the Redis Query Engine with secondary indexing and vector search, all in the core distribution. It also added a vector set data type for similarity search.
- Valkey keeps the core lean and offers extras as modules, such as JSON, Bloom filters and a search module with vector search. Managed services increasingly bundle these modules.
If you rely on features that Redis Ltd added after the fork, such as specific commands in Redis 8, check whether Valkey has an equivalent before switching. Redis says it now maintains many commands that Valkey doesn't have, largely because of these added data models.
Compatibility and Migration
Moving from Redis to Valkey is straightforward for most workloads:
- Clients: standard Redis client libraries in Python, Node.js, Java, Go and other languages connect to Valkey unchanged.
- Commands: everything in Redis 7.2 works in Valkey.
- Data files: Valkey can load RDB and AOF persistence files from Redis 7.2 and earlier. Files written by Redis 7.4 and later use formats extended after the fork and may not load into Valkey, so migrate from those versions using replication or a data export rather than copying files.
- Managed services: AWS lets you upgrade ElastiCache clusters from Redis OSS to Valkey in place.
A typical self-managed migration:
- Inventory commands and modules your application uses.
- Stand up Valkey in a test environment and run your test suite against it.
- Replicate data from Redis to Valkey, or rebuild the cache from the source of truth.
- Switch traffic gradually, starting with non-critical services.
- Monitor latency, memory and errors, then decommission Redis.
Client Libraries and Tooling
Valkey speaks the same RESP protocol as Redis, so the existing Redis client libraries, such as redis-py, Jedis, node-redis, ioredis and go-redis, generally work with Valkey without code changes; you only change the connection address. The Valkey project also maintains its own client, Valkey GLIDE, with support for several languages including Java, Python, Node.js and Go, designed for reliability in clustered setups.
Most tooling also carries over: command-line clients, monitoring through the INFO command, and exporters for Prometheus. Before switching, check that any framework integrations you depend on, such as caching libraries, session stores and job queues, list Valkey as supported or have been tested against it.
Cloud Pricing
Managed pricing is one of the strongest practical arguments for Valkey on AWS. When AWS launched ElastiCache for Valkey in October 2024, it priced ElastiCache Serverless for Valkey 33% lower than Serverless for Redis OSS and node-based Valkey 20% lower than other node-based engines, with a lower serverless minimum (100 MB vs 1 GB). Google Cloud and other providers also offer managed Valkey.
Redis Ltd offers Redis Cloud, its own managed service with Redis 8 features and enterprise options such as active-active geo-replication. Compare current prices for your region and workload; managed pricing changes over time.
Redis vs Valkey for AI Applications
In-memory stores are common in AI apps for caching model responses, storing conversation history, rate limiting and semantic caching (reusing answers to similar questions). Both can do this:
- Redis 8 includes vector search in the core, making it easy to add semantic caching or small-scale vector retrieval.
- Valkey offers vector search through its search module, available on managed services that support it.
For large-scale retrieval, a dedicated vector database or Postgres with pgvector is often a better fit, with Redis or Valkey used as the fast cache in front. Caching repeated LLM calls is one of the simplest ways to reduce LLM costs.
Linux Distributions Switched to Valkey
Several Linux distributions replaced Redis with Valkey in their main package repositories after the 2024 licence change. Fedora made the switch in Fedora Linux 41, with a compatibility package that carries over Redis configuration, and Arch Linux moved the redis package to the community AUR in favour of valkey. On these systems, installing "Redis" from the standard repositories now gives you Valkey.
Which Should You Choose?
| Situation | Choose |
|---|---|
| You want a permissive open-source licence with no single-company control | Valkey |
| You run on AWS ElastiCache or Google Memorystore and want lower managed prices | Valkey |
| You're self-hosting a cache, sessions or queues on Redis 7.2-era features | Valkey (drop-in) |
| You need Redis 8 built-in JSON, time series, query engine or vector sets | Redis |
| You want commercial support and enterprise features from Redis Ltd | Redis (Redis Cloud or Redis Enterprise) |
| Your company accepts AGPL obligations or uses Redis unmodified internally | Either |
| You embed or redistribute the database in a product | Valkey's BSD licence is simplest |
For many teams the decision is made by their platform: if your cloud provider's managed offering is Valkey, using it is the simplest path. Self-hosted setups, for example in containers, can run either; our Docker vs Kubernetes guide covers deployment options.
Other Redis Alternatives
- Memcached: a simpler, multi-threaded cache for plain key-value caching, without Redis's data structures or persistence.
- KeyDB and Dragonfly: Redis-compatible engines focused on multi-threaded performance, with their own licences and feature sets.
- Your main database: for light caching needs, Postgres or even SQLite can sometimes be enough, avoiding another service. Our SQLite vs PostgreSQL guide covers when each fits.
FAQ
Is Valkey a drop-in replacement for Redis?
For most applications, yes. Valkey is a fork of Redis 7.2.4, supports the same commands and protocol, and works with standard Redis clients. Features added to Redis after the fork, and data files from Redis 7.4 or later, may need extra checks.
Is Redis open source again?
Yes, partly. Since Redis 8 in 2025, Redis is available under the AGPLv3, an OSI-approved open-source licence, as well as the source-available RSALv2 and SSPLv1. The AGPL has stronger obligations than Valkey's BSD licence, especially for software offered as a network service.
Why was Valkey created?
Valkey was created in March 2024 after Redis Ltd moved Redis from the BSD licence to source-available licences. Contributors and companies including AWS, Google Cloud and Oracle forked the last BSD version under the Linux Foundation to keep an open-source Redis-compatible project.
Is Valkey faster than Redis?
It can be on many-core servers, thanks to Valkey's multi-threaded I/O and memory improvements. Redis 8 has also improved performance, so results depend on version and workload. For most applications, both are faster than needed.
Should I migrate from Redis to Valkey?
Consider it if you want a permissive open-source licence, use a managed service that offers cheaper Valkey pricing, or only use features available in Redis 7.2. Stay on Redis if you depend on Redis 8 features or Redis Ltd's commercial support.