How to Move ElastiCache From Redis to Valkey: In-Place or Blue/Green (2026)
Redis engines are being retired and Valkey costs less. Here is how to choose between the managed upgrade and a blue/green move, and how to cut over safely.
On this page 7 sections
To move ElastiCache from Redis to Valkey, choose between the managed in-place upgrade and a blue/green migration with RedisShake. In-place is simpler, with one endpoint and a quick cutover. Blue/green costs more for a while but gives you a validation window and a rollback path. Rehearse either route on a staging copy first.
Backtrace covers the infrastructure choices that decide whether a deploy stays boring. This guide is for backend engineers and platform teams who run ElastiCache for Redis OSS and want a clear plan to move to Valkey before a vendor deadline forces a rushed one.
Why Are Teams Moving From Redis OSS to Valkey Now?
Three forces are pushing teams: a license change that split the ecosystem, lower prices on managed Valkey, and platform providers retiring the Redis engine. Valkey was forked from the Redis codebase in 2024 after Redis moved away from its permissive license. Managed providers such as AWS and Cloud.gov now support it.
The deadline pressure is real on some platforms. Cloud.gov, a US government hosting platform, announced that it is retiring its Redis engine for Elasticache. New instances can no longer choose Redis. Customers have until January 15, 2027 to upgrade existing instances themselves, and support for the Redis engine ends that day.
You may not run on Cloud.gov, but the pattern repeats. A provider announces a retirement date, and the teams that planned early move on a quiet Tuesday. The teams that waited move under pressure.
Cost is the other draw. In a case study on AWS's database blog, the crypto trading firm MaiCoin reported Valkey pricing of roughly 20% lower for node-based ElastiCache clusters and up to 33% lower for ElastiCache Serverless. Check your own bill before you count on that number. The savings depend on your instance types and how you run the cluster.
In-Place Upgrade or Blue/Green: Which Should You Pick?
Pick the in-place upgrade when your cache is disposable and your clients reconnect cleanly. Pick blue/green when the cache holds data you cannot rebuild quickly or when a bad cutover would hurt revenue. The right answer depends on how much a rollback is worth to you.
| Factor | In-place upgrade | Blue/green with RedisShake |
|---|---|---|
| Endpoint | Same cluster endpoint | New cluster, new endpoint |
| App changes | Minimal | Endpoint switch at cutover |
| Live validation window | None | Yes, before traffic moves |
| Rollback path | Not available | Point traffic back to blue |
| Cost during move | Normal | Roughly double for a time |
| Operational effort | Low | Higher |
MaiCoin compared both options before choosing. The in-place route offered a single endpoint and a quick cutover, but it provided no live validation window and no rollback, which raised recovery complexity. The team chose blue/green for its trading and wallet workloads because they needed a clear way back.
Most teams are not running a crypto exchange. A session cache or a rate limiter can usually be rebuilt in minutes, and for those the in-place route is a sensible default. Treat a queue, a leaderboard or any cache that takes hours to warm as the blue/green case.
How to Run the Managed In-Place Upgrade
The managed upgrade handles replication and failover for you. According to the AWS write-up of the managed upgrade, the service creates a new set of Valkey nodes in the same cluster. Those nodes replicate from the existing Redis OSS primaries. When replication finishes, the service fails over, promotes a Valkey replica to primary, updates the cluster's DNS endpoint and deletes the old Redis nodes.
Follow these steps in order.
- List every cluster, its engine version and the services that connect to it.
- Take a manual snapshot of each cluster you plan to change.
- Restore a snapshot into a staging cluster and upgrade that copy first.
- Run your integration tests against the upgraded staging cluster.
- Choose a low-traffic window and start the upgrade on production.
- Watch the failover and confirm that every client reconnects.
The failover is where applications get hurt. Clients with short timeouts or no retry logic will throw errors for a moment while the endpoint moves. If your service cannot retry a cache call safely, fix that before you start. Our guide to blue-green and canary rollouts explains why a rollout needs a defined way back before it begins.
The snapshot step costs little and buys a lot. Because the in-place path has no rollback, a snapshot is your only copy of the pre-upgrade state. Take it, and confirm that you can actually restore it before you rely on it.
How to Run a Blue/Green Migration With RedisShake
A blue/green migration keeps your current Redis cluster as blue and builds a Valkey cluster as green. RedisShake, an open source tool with Valkey support, keeps the two in sync. You validate green while blue still serves traffic, then move clients over. The AWS case study walks through this in detail, and the steps below summarize it.
Start with the prerequisites. Provision source and target clusters with the same configuration, including VPC and instance types, except for the engine. Set up a migration EC2 instance in the same VPC with access to both clusters. Ask the ElastiCache service team to enable PSYNC on both clusters. Do this early, because it depends on AWS and not on you.
Next, configure RedisShake. In the reader section, point at the source address, set TLS to true, and enable both RDB and AOF sync. In the writer section, point at the target and set TLS to true. If you use cluster mode, set the cluster flag to true on both sides. Then run the tool and tail its log.
MaiCoin used a full sync with SCAN followed by continuous updates. It set rdb_restore_command_behavior=rewrite to prevent key conflicts. Time-to-live values were preserved, and the team could resynchronize smoothly after an interruption.
Verify before you move anything. Compare DBSIZE on both clusters, sample a few known keys, and watch replication lag. AWS's closing advice is to enable TLS on both endpoints, monitor lag and validate thoroughly before switching traffic. When the numbers match, shift clients to the green endpoint and keep blue running until you trust the result.
One note on tooling. The same case study says RIOT, another migration tool, became unmaintained in October 2025, so it was not chosen. Check a tool's maintenance status before you build a plan around it.
What Should You Test Before You Shift Traffic?
Test the behaviors your application actually depends on, not just whether keys copied. A cache can hold every key and still break a feature if a client library or a Lua script behaves differently.
Build a short checklist and run it against green.
- Every client library connects with TLS and authenticates.
- Keys that need a time-to-live still expire on schedule.
- Pub/sub subscribers receive messages after reconnecting.
- Scripts and transactions return the same results as on blue.
- p99 latency under load stays inside your budget.
Run your smoke tests as part of this check. A good smoke test exercises the cache path end to end, and our piece on how smoke tests catch broken deployments shows how to keep them small enough to run on every change.
Do not change anything else during the move. If you also rename keys or change a serialization format, you cannot tell whether a failure came from the engine or from your change. The same discipline applies to database changes, as our walkthrough of zero-downtime schema migrations explains. Move one thing at a time.
MaiCoin benchmarked Redis 7.1.0 against Valkey 7.2.6 and 8.0.1 before it committed. Valkey 8.0.1 showed the highest throughput, lowest latency and best memory efficiency in its tests, though Redis occasionally hit a slightly higher peak throughput with worse p99 latency. That is one team's workload. Run your own benchmark with your own key sizes and access patterns.
What Should You Watch After Cutover?
Watch tail latency, error rates, memory fragmentation and replication lag for at least a full traffic cycle. A daily peak, a weekly batch job and a month-end report can each expose a different problem. One quiet hour proves little.
Keep the old cluster running for a defined period on a blue/green move. Decide the length up front, write it in the plan and assign someone to delete it. An old cluster left running quietly doubles your cache bill, and nobody remembers why it exists six months later.
For an in-place upgrade, the old nodes are already gone. Your rollback is the snapshot, so know the restore steps and the time they take. If p99 latency or error rates drift outside your thresholds, decide in advance who calls the rollback and at what number.
Conclusion
Moving from Redis to Valkey is a routine engine change when you plan it. Use the in-place upgrade for disposable caches and blue/green for data you cannot afford to lose or rebuild slowly. Snapshot first, rehearse on staging, and set a rollback owner before you begin.
Your next step is an inventory. List every ElastiCache cluster this week, sort them by how painful a bad cutover would be, and schedule the least risky one first. The Backtrace team will keep this guide current as the managed upgrade paths change.