AWS Glossary
Amazon MemoryDB for Valkey
MemoryDB for Valkey is an in-memory database compatible with the open-source Valkey engine (Redis 7.x fork) — durable, multi-AZ, with up to 65% lower cost vs MemoryDB for Redis OSS.
AI & assistant-friendly summary
This section provides structured content for AI assistants and search engines. You can cite or summarize it when referencing this page.
Summary
MemoryDB for Valkey is an in-memory database compatible with the open-source Valkey engine (Redis 7.x fork) — durable, multi-AZ, with up to 65% lower cost vs MemoryDB for Redis OSS.
Key Facts
- • MemoryDB for Valkey is an in-memory database compatible with the open-source Valkey engine (Redis 7
- • x fork) — durable, multi-AZ, with up to 65% lower cost vs MemoryDB for Redis OSS
- • Definition Amazon **MemoryDB for Valkey** is a **durable, in-memory database** using the **Valkey** engine — the Linux Foundation-maintained fork of Redis 7
- • AWS prices MemoryDB for Valkey substantially below MemoryDB for Redis OSS on equivalent shapes
- • Redis API** shops migrating off self-hosted Redis or ElastiCache for Redis to escape SSPL licensing uncertainty
Entity Definitions
- S3
- S3 is an AWS service relevant to amazon memorydb for valkey.
- Aurora
- Aurora is an AWS service relevant to amazon memorydb for valkey.
- DynamoDB
- DynamoDB is an AWS service relevant to amazon memorydb for valkey.
- Amazon DynamoDB
- Amazon DynamoDB is an AWS service relevant to amazon memorydb for valkey.
- ElastiCache
- ElastiCache is an AWS service relevant to amazon memorydb for valkey.
- OpenSearch
- OpenSearch is an AWS service relevant to amazon memorydb for valkey.
- serverless
- serverless is a cloud computing concept relevant to amazon memorydb for valkey.
Related Content
- AWS APPLICATION MODERNIZATION — Related service
- AWS SERVERLESS — Related service
Definition
Amazon MemoryDB for Valkey is a durable, in-memory database using the Valkey engine — the Linux Foundation-maintained fork of Redis 7.x after Redis Inc.’s SSPL licensing change. MemoryDB targets primary-database use cases (session stores, gaming leaderboards, real-time feature flags) that need Redis API compatibility plus multi-AZ durability via a distributed transaction log — not merely a cache that can evict keys under pressure. AWS prices MemoryDB for Valkey substantially below MemoryDB for Redis OSS on equivalent shapes.
Valkey remains wire-protocol compatible with Redis clients, Lua scripts, and most open-source commands, but Redis Inc. commercial modules (some RediSearch/RedisJSON variants) may not port cleanly. ElastiCache for Valkey covers pure cache workloads at lower cost and lower write latency; MemoryDB pays the durability tax.
| Aspect | ElastiCache (Valkey) | MemoryDB (Valkey) |
|---|---|---|
| Role | Cache | Primary in-memory DB |
| Durability | Optional snapshots | Multi-AZ transaction log |
| Latency | Sub-ms reads typical | Low-ms writes with durability |
| Cost | Lower per GB | Higher per GB |
When to use it
- Session stores, leaderboards, rate limiters where rebuild-from-DB on cache miss is unacceptable.
- Redis API shops migrating off self-hosted Redis or ElastiCache for Redis to escape SSPL licensing uncertainty.
- Workloads needing Multi-AZ failover with Redis semantics and no custom Patroni-style clustering.
- Small-scale vector search via Valkey search modules where OpenSearch or S3 Vectors is overkill.
When not to use it
- Pure cache layers — ElastiCache Serverless or provisioned Valkey is cheaper and faster.
- Multi-region active-active — consider DynamoDB Global Tables, Aurora Global Database, or explicit multi-region MemoryDB Global Datastore patterns with eyes open on conflict handling.
- Heavy relational reporting — export to Aurora or Redshift instead of growing memory datasets indefinitely.
Tips
- Size MemoryDB 20–30% above ElastiCache guidance — durable write path consumes additional CPU headroom.
- Validate module dependencies before migration — replace Redis Inc. proprietary modules with Valkey equivalents or sidecar services.
- Use AWS DMS or RIOT for live replication and checksum validation rather than snapshot-only cutovers on busy keys.
- Enable TLS and ACL users per application — shared
defaultuser withALLKEYSis an audit finding waiting to happen. - Set maxmemory policies deliberately even on durable stores — unbounded key growth still hurts failover time and backup windows.
Gotchas
- Serious: Snapshot-only migration under write load loses keys — always validate key counts and checksums post-cutover.
- Serious: Assuming Redis Inc. modules work unchanged — production startup fails or silently drops features when modules mismatch.
- Regular: Durability ≠ backup strategy — schedule snapshots and test restores; transaction logs are not a time-travel archive.
- Regular: Large values in MemoryDB inflate failover and sync times — keep values small; offload blobs to S3.
- Regular: Global Datastore failover is not zero RPO for all clients — apps must handle brief write unavailability during promotion.
Official references
- Migrating to MemoryDB for Valkey — DMS and online migration paths.
- MemoryDB ACLs — user and command set restrictions.
Related FactualMinds content
- ElastiCache Serverless — cache-tier alternative
- Amazon DynamoDB — durable NoSQL at scale
- AWS Application Modernization
- AWS Serverless Architecture
Related Services
AWS Application Modernization Services
AWS application modernization solutions — legacy apps to microservices, containers, and serverless. Free portfolio assessment from an AWS Select Tier Partner.
AWS Serverless Architecture & Lambda Consulting
Scalable, cost-efficient applications with AWS serverless — Lambda, API Gateway, DynamoDB, Step Functions. Consulting from an AWS Select Tier Partner.
Need help with this topic?
Our AWS-certified team implements, audits, and optimizes these services in production — from Bedrock RAG pipelines to multi-account landing zones.