Amazon ElastiCache vs Amazon MemoryDB
Amazon ElastiCache: AWS's managed Valkey, Redis OSS and Memcached service, provisioned or serverless. Amazon MemoryDB: A durable, Valkey/Redis-compatible in-memory database on AWS backed by a multi-AZ transaction log.
key differences
- Amazon ElastiCache is built for larger datasets (≤ 1 PB) than Amazon MemoryDB (≤ 10 TB).
- Only Amazon ElastiCache has secondary indexes, full-text search, json.
- Amazon ElastiCache has a serverless option; Amazon MemoryDB does not.
choose amazon-elasticache for
- +Database query caching for RDS and DynamoDB
- +Session storage for web apps on AWS
- +Leaderboards and real-time counters
- +Semantic caching for generative AI apps
best at · Cache, Sessions, Pub/Sub
choose amazon-memorydb for
- +Durable session and shopping-cart state
- +Primary database for microservices using Redis data structures
- +Real-time leaderboards that must not lose updates
- +Vector search close to application data
best at · Sessions, Cache, OLTP
Amazon ElastiCache vs Amazon MemoryDB: FAQ
What is the difference between Amazon ElastiCache and Amazon MemoryDB?
Amazon ElastiCache: AWS's managed Valkey, Redis OSS and Memcached service, provisioned or serverless. Amazon MemoryDB: A durable, Valkey/Redis-compatible in-memory database on AWS backed by a multi-AZ transaction log. Amazon ElastiCache is built for larger datasets (≤ 1 PB) than Amazon MemoryDB (≤ 10 TB). Only Amazon ElastiCache has secondary indexes, full-text search, json. Amazon ElastiCache has a serverless option; Amazon MemoryDB does not.
When should I choose Amazon ElastiCache over Amazon MemoryDB?
Choose Amazon ElastiCache for database query caching for RDS and DynamoDB; session storage for web apps on AWS; and leaderboards and real-time counters. Choose Amazon MemoryDB for durable session and shopping-cart state; primary database for microservices using Redis data structures; and real-time leaderboards that must not lose updates.
Is Amazon ElastiCache or Amazon MemoryDB more popular?
Amazon ElastiCache ranks #89 on the WhichDB Score (29.1/100) and Amazon MemoryDB ranks #473 (2.5/100). Popularity is not fit: check the requirements that matter for your project.
Are Amazon ElastiCache and Amazon MemoryDB open source?
No. Amazon ElastiCache is proprietary, closed-source software. License: AWS service terms. No. Amazon MemoryDB is proprietary, closed-source software. License: AWS service terms.