Switching to Valkey on ElastiCache: Cost Savings Without Compromise
Every modern application today has one thing in common: it relies on speed. Users don’t wait around, systems can’t tolerate bottlenecks, and a couple hundred milliseconds can make the difference between a smooth experience and an abandoned page. And at the center of that performance equation, more often than not, is an in-memory data store.
If you’ve built or scaled a web app in the last decade, you’ve probably touched Redis. It became the de facto choice for caching, session management, leaderboard counters, and dozens of other high-throughput patterns. Developers liked it because it was simple and blazing fast. Businesses liked it because it was reliable and battle-tested.
But here’s where things get interesting: Redis, the project, isn’t what it once was. In 2021, Redis Ltd. changed its licensing model. The shift didn’t break anything technically, but it introduced a layer of legal and philosophical uncertainty. For some teams, that wasn’t a big deal. For others—especially those who care about open-source independence—it was a red flag.
That’s when Valkey stepped in: a fork of Redis that promised the same performance and compatibility but without the licensing headaches. And now that Amazon ElastiCache officially supports Valkey as a first-class engine, the conversation around in-memory stores has opened up in a big way.
Let’s unpack what this means: the history, the trade-offs, and why Valkey on ElastiCache is suddenly a very practical option.

redis oss to valkey
The Redis Story: From Darling to Debate
Redis has a long history. It started in 2009 as a personal project by Salvatore Sanfilippo (a.k.a. antirez). It wasn’t supposed to be a global phenomenon—it was simply a clever way to store data in memory with a simple command set. But it struck a chord, and within a few years, Redis was one of the most widely used open-source databases on the planet.
The BSD license was a big reason for that growth. It gave developers total freedom to use, modify, and even commercialize Redis. Startups built products on top of it. Cloud providers offered Redis services. And the community flourished because nobody had to second-guess whether the license would get in the way.
Fast-forward to 2021. Redis Ltd. introduced the Redis Source Available License (RSAL). Technically, you could still see and use the code, but there were strings attached. If you were a company offering Redis as a hosted service, the license limited what you could do. That meant Redis was no longer “open source” in the eyes of the Open Source Initiative (OSI).
This didn’t matter much to individual developers running Redis on their laptops. But for enterprises thinking about five- or ten-year horizons, the shift raised questions:
- Would Redis continue to evolve openly, or would its roadmap increasingly serve the interests of Redis Ltd.?
- What if future license changes introduced new restrictions?
- Was it wise to build critical infrastructure on a technology with unclear governance?
The answers weren’t comforting for everyone.
The Rise of Valkey
Valkey exists because of those concerns. It’s a fork of Redis, backed by community governance under the Linux Foundation. The goal is simple: keep Redis alive as a true open-source project.
From a technical perspective, Valkey is a drop-in replacement. It uses the same RESP (Redis Serialization Protocol), so client libraries don’t need to change. If your app already uses redis-py in Python, ioredis in Node.js, or Jedis in Java, you can point them to Valkey without touching a single line of code.
Valkey supports the full range of data structures you’d expect: strings, hashes, sets, sorted sets, streams, bitmaps, hyperloglogs. Persistence is there too (via RDB snapshots or Append-Only Files). Clustering, replication, failover—all the operational features you rely on in Redis—are included.
One subtle but important point: Valkey modules work as well. Things like RedisGraph and RediSearch continue to run, so teams don’t lose out on advanced capabilities.
And performance? Early benchmarks show Valkey not only matches Redis but sometimes edges it out. In high-concurrency, read-heavy workloads, Valkey has been measured to deliver slightly faster response times—up to 5% in some tests.
Migration: Surprisingly Boring (in a Good Way)
Here’s the best part: moving from Redis OSS to Valkey isn’t a complex migration project. It’s more like swapping one endpoint for another.
The process usually looks like this:
- Create a Valkey cluster in ElastiCache. Whether you prefer the AWS Management Console, CLI, or Terraform, the steps are identical to provisioning Redis.
- Move your data. You can replicate data with tools like redis-cli or redis-shake, or you can restore from a snapshot.
- Update connection strings in your applications to point at the Valkey endpoint.
- Test performance and integrity before sending production traffic.
migration
That’s it. No refactoring client libraries, no retraining your developers, no features missing in action. For most teams, the switch is so uneventful that the bigger question becomes, “Why didn’t we do this earlier?”
Everyday Scenarios Where Valkey Fits
If you’re wondering whether Valkey is ready for prime time, the answer is yes. Anywhere you’d use Redis, Valkey fits right in. Common patterns include:
- Caching – speeding up web responses and database queries.
- Session storage – managing millions of concurrent logins in real-time apps.
- Pub/Sub messaging – powering event-driven systems and real-time notifications.
- Rate limiting and queues – handling distributed jobs and API throttling.
- Analytics – maintaining counters, metrics, and dashboards with millisecond latency.
These aren’t niche use cases. They’re the bread and butter of modern web architectures, and Valkey checks every box.
Why ElastiCache Support Changes the Equation
Now, some developers might say: “Okay, Valkey is cool, but I don’t want to run it myself.” And that’s where Amazon ElastiCache enters the picture.
AWS already managed Redis at scale for thousands of customers. By making Valkey a first-class option, they’ve essentially removed any operational barrier to adoption. You get the same fully managed experience—clustering, scaling, monitoring, patching—but you also get:
- Lower costs: Up to 33% cheaper on serverless deployments, ~20% cheaper on node-based clusters.
- Freedom from lock-in: BSD-3 licensing ensures you aren’t tied to Redis Ltd. decisions.
- Smooth migration: No code changes required.
- Community trust: Governance through the Linux Foundation, not a single vendor.
For a lot of teams, that combination is rare. Normally, you pick between the convenience of a managed service and the purity of open source. With Valkey on ElastiCache, you get both.
So, Who Should Actually Switch?
If you’re currently running Redis OSS in ElastiCache, Valkey is almost a no-brainer. The risk is minimal, the migration effort is light, and the savings are real. Even if the budget line isn’t your top concern, the assurance of true open-source licensing gives you long-term stability.
If you’re starting from scratch, it’s even clearer. Why bet on a database with uncertain licensing when you can begin with one that’s governed transparently and still gives you the same experience?
Of course, not every team will feel the pressure. Some businesses are deeply invested in Redis Enterprise features that Valkey doesn’t replicate. Others might prefer to stick with what they know until there’s a pressing reason to move. That’s fine. But for the vast majority of Redis OSS users, Valkey is the smarter path forward.
Wrapping It Up
Valkey isn’t here to reinvent Redis. It’s here to preserve the qualities that made Redis so valuable in the first place: speed, simplicity, and openness. On ElastiCache, it comes with the added benefits of AWS reliability and meaningful cost savings.
The decision boils down to this: do you want the Redis experience you already know, but with lower costs and true open-source independence? If the answer is yes, Valkey is the way forward.
Sometimes in tech, the “new thing” is actually just a reset to what worked best before. Valkey feels like exactly that reset.