What is Amazon MemoryDB?
Amazon MemoryDB is a Redis-compatible in-memory database that combines microsecond read latency with Multi-AZ durability. The service provides Redis speed with relational database data safety: every write is synchronously replicated to a distributed transaction log.
Core Features
- Redis Compatibility: Full support for Redis 6.2 and 7.0 APIs
- Multi-AZ Durability: Synchronous replication to transaction log across multiple Availability Zones
- Microsecond Latency: Read operations in under 100 microseconds
- Cluster Mode: Horizontal scaling across up to 500 nodes
- Automatic Failover: Under 10 seconds during node failures
Typical Use Cases
Session Management: Store user sessions with microsecond latency and guaranteed persistence. During node failures, all sessions remain intact without users being logged out.
Gaming Leaderboards: Redis Sorted Sets provide O(log N) performance for ranking operations. MemoryDB guarantees no scores are lost, even during infrastructure issues.
Real-time Fraud Detection: Process transactions in real-time against known patterns. Low latency enables decisions within milliseconds without delaying the main transaction.
Benefits
- Redis performance with database durability
- Existing Redis clients work without modifications
- No separate caching and persistence layer needed
- 99.99% SLA with Multi-AZ deployment
Integration with innFactory
As an AWS Reseller, innFactory supports you with Amazon MemoryDB: cluster design, migration from ElastiCache or self-managed Redis, performance tuning, and integration into your application architecture.
Typical Use Cases
Frequently Asked Questions
What is Amazon MemoryDB?
MemoryDB is a Redis-compatible in-memory database with Multi-AZ durability. Unlike ElastiCache, MemoryDB provides true data persistence through synchronous replication to a transaction log.
What is the difference from ElastiCache for Redis?
ElastiCache is primarily a cache with optional persistence. MemoryDB is a full database with guaranteed durability. With MemoryDB, no data is lost, even during node failures.
Which Redis features are supported?
MemoryDB is Redis 6.2 and 7.0 compatible. All Redis data structures, Lua scripting, Pub/Sub, Streams, and cluster mode are supported. Existing Redis clients work without modifications.
When should I use MemoryDB instead of ElastiCache?
When your data needs to be stored as a primary database, not just cached. For session stores, leaderboards, or real-time analytics where data loss is unacceptable.