Amazon ElastiCache vs self-hosted Valkey

ElastiCache suits teams that want AWS to run failover, patching and scaling inside their AWS accounts. Self-hosted Valkey suits teams that need full control over data location, configuration and cost structure and can staff the operations work.

On this page

Which cache fits your team: ElastiCache or self-hosted Valkey?

ElastiCache fits best when your team wants AWS to run failover, patching and version upgrades, and when the cache sits inside AWS with no data residency rule that pushes it onto your own servers. Self-hosted Valkey fits best when data must stay in facilities you control, when your platform team already runs stateful workloads on Kubernetes or EC2, or when your cost structure favors owned capacity over metered managed charges. Work through four questions before you decide: who gets paged when a primary fails or a version reaches end of support, where the cache data and its backups must physically live, how many engineers can carry on-call for a cache at 3 a.m., and whether finance prefers predictable infrastructure spend or usage-based billing. A renewal or a Redis OSS Extended Support notice often forces the timing, but it should not decide the architecture on its own.

The software choice is less of a barrier than many teams expect. Valkey is BSD-3-Clause licensed and governed by the Linux Foundation, so you can run, modify and redistribute it without a source-available restriction. Valkey shares its API and data-file compatibility with Redis OSS 7.2 and earlier, which means existing Redis client libraries generally connect without code changes. That compatibility covers the RDB and AOF formats, so the migration question is mostly about method and cutover rather than rewriting applications. Confirm two details with your own engineers before you commit: which Redis OSS version runs in production today, since later Redis Community Edition releases produce data files that Valkey does not read, and which modules your applications depend on. Those checks determine whether the move is a simple upgrade or a planned migration with a different method.

Which option fits each scenario

This table compares ElastiCache for Valkey with Valkey you run yourself across the situations that usually decide the choice. Read each row as the condition under which one option wins, then check the trade-off named in the rationale against your own staffing, data controls and version plans.

ScenarioBetter fitWhy
No dedicated cache operations staffElastiCache for ValkeyAWS handles node patching, failover mechanics and backups as part of the service, so the team keeps the operations effort small. The trade-off is less control over version timing and topology.
Workload must stay in a specific data center or air-gapped networkSelf-hosted ValkeyA managed AWS cache runs in AWS regions, so a fixed on-premises or isolated network requirement points to Valkey on your own servers. Confirm the residency terms with your compliance team.
Cluster still on Redis OSS past standard supportUpgrade or switch to ElastiCache for Valkey firstMoving to Valkey 7.2 or later is effectively an upgrade from Redis OSS 7.2 and earlier, which avoids Extended Support charges. Redis Community Edition 7.4 and later need a different migration path, so confirm your exact version.
Need control over Valkey cluster topology and failoverSelf-hosted ValkeyRunning your own nodes lets you choose replica layout, Sentinel or Cluster mode and failover thresholds. Managed services limit which of these settings you can change.
Variable or spiky traffic with uncertain capacityElastiCache ServerlessServerless billing follows actual memory and compute use, which suits unpredictable demand. Steady, high-volume workloads often cost less on provisioned nodes or self-hosted hardware, so compare both before deciding.
Team with existing Kubernetes operationsSelf-hosted ValkeyTeams already running Kubernetes can deploy and monitor Valkey with their current tooling and runbooks. This only pays off if someone owns upgrades, backups and failover testing.

How replication, Sentinel and cluster mode change the self-hosted workload

A standalone deployment has one primary that accepts writes and one or more replicas that copy its data. It is the simplest topology to run, and many caches that serve disposable or rebuildable data never need more. Replication itself is built into Valkey through REPLICAOF, but nothing in the replication link decides when a replica should become primary. That decision, and the client changes that follow it, remain with your team unless you add a failover mechanism.

  • Failover logic: Without Sentinel or an external orchestrator, promoting a replica is a manual runbook step. Someone must decide the primary is gone and redirect writes.
  • Client awareness: Applications need a stable endpoint, such as a virtual IP, DNS record or load balancer, or they must be restarted with the new address.
  • Node sizing: Each replica needs roughly the memory of the primary to hold the same dataset, and you pay for those servers even when they sit idle.
  • Persistence and backups: Replicas do not replace RDB or AOF backups. Your team sets snapshot schedules and tests restores.
  • ElastiCache equivalent: A node-based replication group with replicas and automatic failover, where AWS runs the promotion and endpoint handling.

This topology matters when brief write unavailability during a manual promotion is acceptable. Confirm ElastiCache's current failover and replica behavior in AWS documentation before comparing.

Capabilities compared: ElastiCache for Valkey and self-hosted Valkey

This table compares the engine-level capabilities that matter when moving a cache between ElastiCache for Valkey and Valkey you run yourself. Read each row as a question to answer for your workload, and treat any cell that says to confirm as an item to verify in AWS documentation before you decide.

CapabilityAmazon ElastiCache for Valkey (serverless or node-based)Self-hosted Valkey (EC2, Kubernetes or your servers)
Engine compatibilityValkey engine managed by AWS; confirm the supported engine versions in AWS documentationValkey is compatible with Redis OSS 7.2 and all earlier open-source Redis versions; the 9.1.2 line is the current stable release
Client library compatibilityStandard Redis and Valkey clients are expected to connect; confirm TLS and auth settings for your client versionExisting Redis client libraries connect to Valkey without code changes, so client endpoints and TLS settings are the main changes
RDB and AOF file compatibilityConfirm import and export options for RDB snapshots in AWS documentation before planning a cutoverReads and writes RDB and AOF files compatible with Redis OSS 7.2; Redis 7.4 and later files are not compatible
Module support (RedisModule_ API)Confirm which modules AWS supports on the engine version you chooseModules written for the RedisModule_ API work in Valkey; test each module against your chosen release line
High availability (Sentinel or Cluster)Managed replication and failover; confirm Multi-AZ and automatic failover behavior in AWS documentationSentinel for non-cluster setups with at least three Sentinel instances recommended; Valkey Cluster for sharding; you operate both
Persistence settingsConfirm backup, snapshot and persistence options in AWS documentationRDB snapshots and AOF are configured by you on each node; disk sizing and fsync policy are your decisions
Upgrades and version linesAWS schedules engine upgrades; confirm the current version policy and any extended support termsSeveral lines ship in parallel: 9.1.2, 9.0.6, 8.1.10, 8.0.11 and 7.2.14; you choose and schedule each upgrade
LicensingManaged service under AWS terms; the engine itself is Valkey, which is BSD-3-ClauseValkey is BSD-3-Clause, backed by the Linux Foundation; no license fee for the software itself

Where the data lives and who controls it

The choice between ElastiCache and self-hosted Valkey is largely a choice about who operates the cache, where its network boundary sits, and which license terms apply. Each card below covers one of those decisions and what to check before committing to either path.

Data location and network boundary

ElastiCache runs as an AWS-managed service inside your AWS account, attached to your VPC subnets, so cache nodes and their traffic stay in the regions and subnets you select. Self-hosted Valkey runs on EC2, Kubernetes or your own servers, which means you define the network boundary yourself. Confirm which AWS regions and availability zones the managed service supports for your chosen engine and tier, and map every path a request takes from application to cache.

Valkey project site

Hosting and operating model

With ElastiCache, AWS operates the nodes, patching mechanics and the underlying hosts, while you configure the cluster, sizing and maintenance windows. With self-hosted Valkey, your team or DeployOpen owns host provisioning, storage, failover tooling, backups and upgrades. Ask which operational tasks you would keep if you self-host, and who is on call when a replica fails at night.

Identity, access and encryption controls

ElastiCache access is shaped by IAM policies, security groups, encryption settings and, where configured, authentication tokens or access control lists. Self-hosted Valkey relies on your own network policies, firewall rules, TLS configuration and ACL definitions. Document which controls you can evidence for each option, and confirm how each one handles administrative access to the cache and to its configuration.

Audit and compliance evidence

Both paths can produce evidence for a compliance assessment, but the evidence differs. ElastiCache logs and AWS-provided compliance documentation cover the managed layer, while self-hosted Valkey requires you to collect configuration, access and change records yourself. DeployOpen can prepare systems, controls and evidence for an assessment, but it does not issue audit reports or certifications. Independent auditors make that determination.

Valkey licensing and governance

Valkey is licensed under BSD-3-Clause and is an open community project under LF Projects, LLC, backed by the Linux Foundation, which holds the Valkey trademarks. Its governance does not depend on a single vendor's license decisions. Confirm the license terms in the repository you deploy, and check which cloud providers' builds you use, since their packaging may add their own terms.

Valkey repository

Redis licensing history

Redis moved from BSD-3-Clause to an RSALv2 or SSPLv1 dual license in March 2024 for versions 7.4 to 7.8, citing managed service providers, and added AGPLv3 as a third option from Redis 8. Versions you run therefore carry different license terms depending on their release. Check the license of the exact Redis version in your estate before assuming it is open source, and review the Redis license page with counsel.

Redis license terms

What a managed cache costs compared with running Valkey yourself

The managed side of the bill is simple to name but hard to forecast: ElastiCache charges for capacity, either as node-hours for node-based clusters or as usage in serverless mode, plus data transfer. If the cluster still runs a Redis OSS version past standard support, Extended Support adds a premium on top of that capacity charge. Check the current rates on the AWS pricing pages for your region and engine version, and model the cost for your actual peak memory and request volume, not the average. Ask whether any version in your fleet is already in Extended Support, because that premium changes the upgrade math more than any other line item.

The self-hosted side replaces those charges with costs you pay directly: compute and memory for primaries and replicas, storage for persistence and snapshots, off-cluster backup storage, monitoring, and the people who patch, fail over and respond to incidents. Design, migration and runbook work are one-time costs. Capacity headroom, patching, monitoring and on-call time recur every month and every Valkey release line, including the security updates that Valkey publishes across its maintained branches. The main cost drivers are the size of the dataset, the number of replicas you need for failover, how many environments you run, and how many hours of on-call coverage your team can sustain without a dedicated owner.

When you request a quote from an implementation partner, insist on a written scope that names the Valkey topology (standalone with Sentinel, or Valkey Cluster), the deliverables (architecture, deployment code, backup and restore tests, failover tests, runbooks), and the operations responsibilities after handover, including who applies upgrades, who owns alerting, and what response times apply. Ask for the one-time and recurring items to be quoted separately, and confirm in writing which costs stay with your team, such as capacity planning and on-call rotations. DeployOpen does not publish a price list, so a quote follows from that written scope.

How a move from ElastiCache to self-hosted Valkey is structured

The sequence turns an ElastiCache cluster into a tested self-hosted Valkey topology with a cutover and rollback plan, so each migration choice is made from the cluster's actual facts rather than assumptions.

  1. Inventory the cluster and its clients

    The platform or cache owner records the engine version, whether the cluster runs in standalone, replicated or cluster mode, how persistence is configured, which modules are loaded, which client libraries and versions connect, and whether TLS and authentication are enforced. Client teams confirm which endpoints each application uses. The step is done when this inventory is written down and every consuming service is named, so no connection path is discovered during cutover.

  2. Classify the data as disposable or copy-required

    The data owner decides whether the keys are a cache that can be rebuilt from the source of truth or state that must survive the move, such as session data, rate-limit counters or queues. Disposable data can be warmed by letting the application repopulate keys on the new cluster, which avoids a copy but accepts a period of higher load on backing stores. Copy-required data needs one of the methods in the next step. The step closes with a signed-off classification per keyspace.

  3. Confirm the source version and file compatibility

    The engineer checks whether the source is Redis OSS 7.2 or earlier, which Valkey's migration guide describes as an effectively in-place upgrade path, or a later Redis Community Edition release such as 7.4 or newer. Valkey reads RDB and AOF files from Redis OSS 7.2, but the guide warns that Redis 7.4 and later produce data files Valkey cannot read directly and that the guide does not cover a method for them. The step is complete when the team knows which path applies or has escalated the unsupported case before any data moves.

  4. Select the transfer method from the Valkey guide

    Based on the classification and version, the team picks one documented method: copying an RDB snapshot for a full seed, REPLICAOF replication followed by promotion for a live copy, key-level MIGRATE for a selected subset of keys, or, for cluster mode, adding Valkey nodes as replicas and promoting them with CLUSTER FAILOVER. The choice and the reason for it are recorded in the migration plan. Teams should confirm current command behavior against the version they will deploy, since the migration guide is the reference for each method.

  5. Build and test the target topology

    The platform team deploys self-hosted Valkey on the chosen infrastructure, either as a standalone daemon with Valkey Sentinel for high availability or as a Valkey Cluster, and configures persistence, memory limits, authentication and TLS. Sentinel's documentation recommends at least three Sentinel instances. The team then runs failover tests and a load test that matches production patterns, and checks that the expected Redis client libraries connect without code changes. The step closes with a test report showing failover behavior and client compatibility.

  6. Run the data transfer and verify it

    The team executes the selected method, then compares key counts, sample values, memory use and expiry settings between source and target. For replicated methods, it confirms replication lag has reached a steady state before promotion. For disposable data, it confirms the application's warm-up path works against the empty target. The step is done when the verification results match the classification from the second step, with any mismatches resolved or accepted in writing by the data owner.

  7. Cut over endpoints and TLS settings

    Application teams change connection strings, certificate trust stores and TLS settings in a controlled window, usually one service at a time with monitoring on each. Writes are stopped or redirected at the point the target is promoted, and the team confirms that no service still points at the ElastiCache endpoint. The step closes when all consumers show healthy connections to Valkey and error rates, latency and hit ratios have returned to their baseline.

  8. Document and hold the rollback plan

    Before cutover, the team writes the conditions that trigger rollback, the steps to repoint clients to the original ElastiCache endpoint, and how writes made on Valkey after cutover would be handled if rollback is needed. The original cluster stays available until the agreed observation period ends. The step is complete when the rollback runbook has been rehearsed in the test environment and the owner has approved the decommissioning date for ElastiCache in writing.

The decision path from current cache to a self-hosted Valkey topology

The path starts with the engine and version your ElastiCache cluster runs. Redis OSS 7.2 or earlier can move to Valkey as an upgrade, while Redis 7.4 or later writes data files Valkey cannot read, so that branch needs a method the Valkey migration guide does not cover. Next, decide whether the data is disposable. If it is, warm the cache from its source. If it must survive the move, use an RDB snapshot, replication or key-level MIGRATE for selected keys. Finally, choose standalone with Valkey Sentinel or Valkey Cluster, and check client endpoints and TLS before cutover.

Engine version and data disposability decide the migration method, then topology decides the high availability setup.

Questions buyers ask before choosing or hiring help

What does the migration effort from ElastiCache to self-hosted Valkey depend on?

The effort depends mainly on the cluster mode, the data size, the number of clients, whether TLS is in use, which modules are loaded, and the Redis version you run today. A single replication group with a small keyspace and a few clients is a different job from a sharded cluster with dozens of services and TLS on every connection. Redis OSS 7.4 and later write data files that Valkey cannot read, so the version alone can change the method you use. Ask the implementer to inventory each of these items before agreeing on scope.

Can our team migrate ElastiCache to Valkey without outside help?

A team with Linux, networking and Redis experience can do a small migration in-house, but the work needs more than the copy itself. You need people who can operate Valkey as a standalone daemon, under Valkey Sentinel (which the project recommends with at least three Sentinel instances when not using Valkey Cluster), or as a cluster, plus monitoring, backup and an on-call rota that covers cache incidents. The Valkey migration guide documents four methods, so the team must choose one and rehearse it. Count these skills honestly against the people available before deciding.

How long does an ElastiCache to Valkey migration take?

The duration depends on the cluster topology, the data volume, the number of client applications to repoint, and how many change windows your organization allows. No general figure is reliable enough to plan around, so do not accept one from a vendor without seeing their assumptions. Ask for a timeline in the written scope, with phases for discovery, a rehearsal in a non-production environment, cutover and a post-cutover watch period. Also ask which steps you own, because client changes and approvals often set the pace more than the data copy does.

What does the migration need from our team?

The work needs access to the ElastiCache account, the target network and the application repositories, plus a named owner for DNS, for each client service and for the secrets that hold endpoints and TLS settings. You also need agreed change windows and a sign-off step before cutover, with a rollback decision defined in advance. A cache holding disposable data may be warmed rather than copied, which changes who must review the plan. Settle these owners and approvals in writing before any work starts.

Is Valkey a true drop-in replacement for Redis clients?

Valkey is designed for drop-in use: existing Redis client libraries connect without code changes, and Valkey reads and writes RDB and AOF files compatible with Redis OSS 7.2. Modules written against the RedisModule_ API are documented to work as well. Compatibility is not a substitute for testing, though. Run every client library version and every module your services use against a Valkey build, including timeouts, reconnect behavior and any commands your team depends on. Treat the test results as the compatibility evidence you keep.

Does self-hosting Valkey remove the need for AWS compliance evidence?

No. Self-hosting moves the evidence work from AWS to your own team. With ElastiCache, AWS supplies infrastructure controls that you can reference in an assessment, and your team still owns configuration, access and data handling. On your own servers or cloud accounts, you must produce the evidence yourself, covering patching, access reviews, encryption settings, backups, logging and change records. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue any audit report or attestation.

Does a team need a managed cache for production?

A managed cache is worth its premium when your team lacks the on-call capacity or Valkey skills to run failover, patching and backups reliably. It can also suit workloads where a short outage has little business cost. Self-hosting becomes attractive when you need control over versions, network placement or data residency, or when the managed premium for old Redis OSS versions outweighs the effort. Compare the total cost of ownership by component, including the people who will be paged, before choosing.

How DeployOpen helps evaluate, implement and migrate

DeployOpen is a Chainscore Labs company that plans, implements, hardens, backs up, upgrades and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For Amazon ElastiCache vs self-hosted Valkey, we start by agreeing on what your cache does, which parts of the platform you would own, and what your team can run after handover.

How we scope

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • We map which ElastiCache mode, node or serverless, your clients and failover needs depend on today.
  • We confirm Redis OSS version, client libraries and TLS settings, since they decide the migration method.

How we build

  • We deploy Valkey as standalone, with replication and Sentinel, or as a cluster, matching your failover needs.
  • We configure persistence, memory limits, authentication, TLS and network access inside your own accounts.
  • We set up monitoring, alerting and backups to storage you control, so cache recovery is tested, not assumed.

How we hand over

  • You receive architecture documentation, runbooks for failover and upgrades, and the configuration as code.
  • We test the cutover path, including the chosen migration method and client endpoint changes, before go-live.
  • We document the cold-cache plan, so your team knows what happens to hit rates during and after the move.

How we support

  • Ongoing support, version upgrades and continuous testing are available as retainers after handover.
  • Upgrades across Valkey release lines are planned and tested in a staging environment before production.
  • Ask your DeployOpen contact to confirm support hours, response terms and escalation paths in the written scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.