Amazon MemoryDB
#54 · Level 2 · Scaling and resilience · DatabaseConcept
Section titled “Concept”Amazon MemoryDB is an in-memory database compatible with Valkey and Redis OSS, which doesn’t lose data. All the data is kept in RAM, so reading and writing are very fast. At the same time, every write is stored in a transaction log kept across several Availability Zones. Because of this durability, MemoryDB can be used as an app’s main database. ElastiCache is usually a cache in front of a database, while MemoryDB is itself the main store.
Simple example
Section titled “Simple example”A shelf within reach (a cache), but built so that nothing falls off even when the power goes out.
Why it’s needed
Section titled “Why it’s needed”A cache is very fast, but there is usually a risk of losing data. MemoryDB gives both speed and safety.
Where it’s used
Section titled “Where it’s used”Real-time apps that need very fast and durable data — such as session stores and game state.
Azure equivalent
Section titled “Azure equivalent”Azure Managed Redis (with persistence)
Learn more
Section titled “Learn more”For details and the latest information, see the official documentation: