Guide

Memcached vs Redis on AWS: which ElastiCache engine fits

Memcached vs Redis on AWS comes down to what the cache has to do. ElastiCache offers Memcached, Valkey and Redis OSS, and AWS's own comparison puts replication, failover, backups and richer data types on the Valkey and Redis OSS side.

45 minutes with an engineer: we review your workload and sketch the design.

  • AWS docs read 19 Nov 2026
  • OSStend runs Memcached, Redis and Valkey

Memcached vs Redis on AWS: choose Memcached on ElastiCache for a simple, multithreaded cache of objects that can be refilled, with no replication or failover. Choose Valkey or Redis OSS for replication, Multi-AZ automatic failover, backups, richer data types and pub/sub. AWS prices Valkey below Redis OSS. Facts from AWS's ElastiCache docs and pricing page, read 19 Nov 2026.

Customers

  • Microsoft logo
  • Henry Schein logo
  • Enbridge logo
  • Gojek logo

Partners

  • Broadcom logo
  • Redis logo
  • VMware Tanzu logo
  • OSSeva logo

Should you choose Memcached or Redis on ElastiCache?

Choose Memcached when you need the simplest model, large multi-core nodes, scaling by adding and removing nodes, and a cache of objects that can be rebuilt. Choose Valkey or Redis OSS when the data needs replication, failover, backups, richer data types or pub/sub.

That split follows AWS's own guidance on its engine comparison page, which lists Memcached for the simplest model, multi-core nodes, scaling out and in, and object caching, and lists Valkey or Redis OSS for the features that come with newer versions (AWS engine comparison, checked 19 Nov 2026). Memcached is a good choice for a simple cache: it has no persistence to tune and no failover to configure, and for a read-through cache of database rows or rendered pages that is often what is wanted.

The cost of that simplicity is what happens when a node fails. With no replication, the objects on a lost Memcached node are gone, and the application refills them from the database. A cache the database can survive a cold start without is a good fit. A session store, a rate limiter or a queue is not.

Which engines does ElastiCache offer, and where are they serverless?

ElastiCache works with the Valkey, Memcached and Redis OSS engines, in two formats: serverless and node-based clusters. Serverless is compatible with Valkey 7.2 and later, Memcached 1.6.22 and later, and Redis OSS 7.1, so all three engines are available in both formats.

ElastiCache Serverless runs the engine in cluster mode, is only compatible with clients that support TLS, and gives one endpoint with a proxy layer that hides the cluster layout (AWS docs, checked 19 Nov 2026). Public endpoints for serverless caches need Valkey 9.0 or later (AWS docs). Node-based clusters let you pick node type, count and placement, and apply patches on your schedule.

FeatureMemcached
Data typesSimple (strings and objects)Complex: strings, sets, sorted sets, lists, hashes, bitmaps, HyperLogLog, and geospatial indexes
Replication and automatic failoverNo high availability (replication); no automatic failoverYes; automatic failover optional with cluster mode disabled and required with cluster mode enabled
Multi-AZNot listedYes, with replicas in other Availability Zones
Backup and restoreFor serverless caches only, not node-based clustersYes, node-based and serverless
Pub/Sub, sorted setsNoYes
Multi-threadedYesNo in AWS's summary table
Data partitioningYesCluster mode enabled only
Online reshardingNoCluster mode enabled only
Scale out and in by adding nodesYes, the cluster is modifiableCluster mode enabled: yes, limited
Auto Discovery of nodesYes, Memcached onlyNo
Search, hash field expiration, durabilityNoOn newer Valkey versions: vector search from 8.2, full-text search and hash field expiration from 9.0, Multi-AZ durability from 9.0 with cluster mode enabled
Compliance (FedRAMP, HIPAA, PCI DSS)Listed: FedRAMP and HIPAA from Memcached 1.6.12, and PCI DSSListed from 4.0.10

Source: AWS's comparison of node-based Valkey, Memcached and Redis OSS clusters, the Auto Discovery page and the ElastiCache overview, checked 19 Nov 2026. Rows follow AWS's table, and where AWS marks an entry only for one engine this table says "Not listed" or "No". Version numbers in the AWS table are AWS's own ElastiCache engine versions.

Redis 7.2 and earlier are BSD-licensed. From Redis 7.4 Redis is dual-licensed under RSALv2 and SSPLv1 (Redis, 20 Mar 2024), and Redis 8 adds AGPLv3 as a further option (Redis, 1 May 2025), both checked 31 Oct 2026. Valkey stays BSD-licensed. In OSStend's cloud, OSStend runs Valkey or Redis 8 and later under the AGPLv3 option, unmodified (Redis licence, checked 19 Nov 2026). Redis 7.4 to 7.x, which is under RSALv2 or SSPLv1 only, runs only in your own cloud account or data center. The engine and version for each cluster are settled in the design review.

45 minutes with an engineer: we review your workload and sketch the design, then price it.

How do Memcached and Redis differ on high availability and persistence?

Memcached on ElastiCache has no replication and no automatic failover, so a failed node loses its objects. Valkey and Redis OSS can run primaries with replicas, fail over across Availability Zones and take backups, with the loss window described in AWS's Multi-AZ documentation.

Memcached.
Distribution is across nodes, and clients find them through Auto Discovery, which lets an application connect to one node and read the node list (AWS docs, checked 19 Nov 2026). With no replicas, the objects on a failed node are not recovered from a copy.
Valkey and Redis OSS.
With Multi-AZ, AWS promotes the replica with the least replication lag, typically in a few seconds, and says a small amount of data might be lost because replication is asynchronous (AWS Multi-AZ docs, checked 19 Nov 2026).
Persistence on Redis OSS.
On ElastiCache for Redis OSS, Multi-AZ and AOF are mutually exclusive. Valkey 9.0 and later node-based clusters add durability, a Multi-AZ transactional log, with zero loss on failover for synchronous writes and up to 10 seconds for asynchronous ones, according to AWS.
Why this matters for the choice.
If a cold cache would take down the database behind it, replication on Valkey or Redis OSS is worth its cost. If it would not, Memcached's lack of it is no handicap.

The mechanics of replicas, Sentinel and cluster failover are in Redis high availability, which applies to Valkey as well.

Is Memcached faster than Redis because it is multithreaded?

Not by itself. AWS's summary table marks Memcached as multi-threaded and Valkey and Redis OSS as not, but the same page credits Valkey 8.0 with async I/O threading, and node types list an Enhanced I/O column. Test your own workload before assuming a core count matters.

AWS's node-type tables list Enhanced I/O, TLS offloading and Enhanced I/O multiplexing for Valkey and Redis OSS nodes, which depend on node size (AWS node types, checked 19 Nov 2026). On the Valkey side, the project says its 8.0 release added asynchronous I/O threading designed for up to 1.2 million requests a second on AWS r7g, and that Valkey 9.1 reaches 2.1 million requests a second on one server with 9 I/O threads in its own test (Valkey 8.0 post, Valkey 9.1 post). Those are the project's figures for its own benchmark set-up, not a comparison with Memcached, and none is an OSStend measurement.

The honest summary is that Memcached's design suits many simple get and set operations spread over many cores, and Valkey or Redis OSS trade some of that for command depth and durability. Measure with your key sizes, your hit rate and your TLS setting, not with a headline number.

How much does ElastiCache cost for Memcached, Valkey and Redis OSS?

ElastiCache bills serverless caches in GB-hours of data stored and ElastiCache Processing Units (ECPUs), and node-based clusters per node-hour. AWS states Valkey is priced 33 percent lower than other engines on serverless and 20 percent lower on node-based, in the sources below.

ElastiCache Serverless, US East (N. Virginia)Data stored, per GB-hourPer million ECPUsMinimum metered storage
Valkey$0.084$0.0023100 MB per cache
Memcached$0.125$0.00341 GB per cache
Redis OSSNot in the page's worked examplesNot in the page's worked examples1 GB per cache

Source: AWS ElastiCache pricing, read 19 Nov 2026, US East (N. Virginia). The Valkey rates come from AWS's Example 1 and the Memcached rates from its Example 8; AWS's text says Valkey is priced 33 percent lower than other supported engines on serverless and 20 percent lower on node-based. Node-based billing is per node-hour, and each partial hour is billed as a full hour. Prices change, so check the page before you plan.

ECPUs.
One ECPU covers up to 1 KB of data transferred on a simple read or write, so a 3.2 KB SET uses 3.2 ECPUs. Commands that use more vCPU time cost more, and a Memcached multiget of 3 items uses 3 ECPUs (AWS docs, checked 19 Nov 2026).
Storage.
Serverless samples data stored several times a minute and bills the hourly average, with a 1 GB floor for Memcached and Redis OSS and 100 MB for Valkey.
Node-based.
You pick node family, size, count and placement and pay per node-hour. Replicas in other zones are extra nodes, which is the price of the failover above.

For a Redis or Valkey cache on AWS, the discount makes Valkey the cheaper of the two engines AWS sells, and the engine question is then about licence and roadmap. See Redis vs Valkey for that.

Where OSStend fits, and where it does not

OSStend runs both sides of this choice: Memcached, and Redis or Valkey as a designed cluster on dedicated nodes, in OSStend's cloud, your own cloud account or a data center, with full configuration access. If Memcached on ElastiCache fits the workload and you are staying on AWS, ElastiCache is the simpler place for it.

Contact us if

  • The cache has become a data store: sessions, queues, counters or rate limits that need replication, persistence settings or a defined loss window.
  • You need Redis or Valkey outside AWS, or inside your own account with named engineers running it. See managed Redis or Valkey.
  • You are leaving ElastiCache and want the move run for you: ElastiCache alternatives.
  • You want Memcached outside AWS or inside your own account with named engineers: see Memcached as a service.
Talk to an engineer

Not a fit if

  • A simple, disposable cache on AWS: ElastiCache will cost less than a designed cluster.
  • You want a free tier or a self-serve console. OSStend begins with a conversation with an engineer.

Choosing between providers for Redis or Valkey is covered in choosing managed Redis or Valkey and best managed Redis and Valkey.

From our on-call engineers: what to check before picking an ElastiCache engine

These checks come from the AWS ElastiCache documentation read on 19 Nov 2026 and are the ones we run through when a cache moves between engines. They restate documentation, not our own incidents, and we quote no customer figure.

  • Write down what a cold cache does to the database behind it. If the database cannot take the refill, replication is needed.
  • List the commands the application uses. Memcached has no sorted sets, pub/sub or complex types, and clients written for it use Auto Discovery that Valkey and Redis OSS do not have.
  • Check client TLS: ElastiCache Serverless is only compatible with clients that support TLS.
  • Remember that engine versions can be upgraded but not downgraded on a cache, so pick the version on purpose, as the AWS comparison page warns.
  • Compare serverless and node-based on your traffic: serverless bills data stored and ECPUs, node-based bills node-hours including replicas.

Questions about Memcached vs Redis on AWS

These are the questions teams ask when they choose between the ElastiCache engines.

What is the main difference between Memcached and Redis on ElastiCache?

Memcached is a simple, multithreaded cache of objects with no replication, no automatic failover and no pub/sub. Valkey and Redis OSS add replication, Multi-AZ failover, backups, complex data types and pub/sub. AWS's comparison table sets out the rows.

Does ElastiCache for Memcached support replication or failover?

No. AWS's comparison table marks high availability (replication) and automatic failover as No for Memcached. A failed node is replaced and the objects it held are lost.

Which ElastiCache engine is cheapest?

AWS states Valkey is priced 33 percent lower than other supported engines on serverless and 20 percent lower on node-based. In US East (N. Virginia), the pricing page shows serverless Valkey at $0.084 per GB-hour and $0.0023 per million ECPUs, and Memcached at $0.125 and $0.0034 (read 19 Nov 2026).

Is Memcached still a good choice?

Yes, for a simple cache of objects that can be refilled, especially when you want large multi-core nodes and to add or remove nodes as demand changes. It is the wrong choice for data you cannot rebuild.

Can ElastiCache Serverless run Memcached?

Yes. AWS says serverless is compatible with Memcached 1.6.22 and later, as well as Valkey 7.2 and later and Redis OSS 7.1. It runs the engine in cluster mode and needs clients that support TLS.

Does OSStend run Memcached?

Yes. OSStend runs upstream Memcached in OSStend's cloud, your cloud account or your data center; see Memcached as a service. Where the cache needs replication or persistence, it runs Redis or Valkey instead; see managed Redis or Valkey.

Memcached is a trademark of its respective owner. Redis is a trademark of Redis Ltd, and Valkey is a trademark of LF Projects, LLC. Amazon Web Services and Amazon ElastiCache are trademarks of Amazon.com, Inc. or its affiliates. OSStend is not affiliated with or endorsed by any of them, and the names are used only to say what the page compares.

Talk to an engineer

Talk to an engineer about your cache

45 minutes with an engineer: bring what the cache holds, what a cold start does to your database and where it has to run, and the engineer says whether Redis or Valkey is the right fit.

  • A design sketch for your workload, not a plan menu
  • A zero-downtime cutover path for what you run today
  • A price for that design, after the review
See pricing →

Your request goes to the OSStend team. No newsletter sign-up.

Get a quoteTalk to an engineer
2Engines Optional
3Where should it run?
4What do you need?

Your request goes to the OSStend team. No newsletter sign-up.