Skip to content

Amazon MemoryDB

#54 · Level 2 · Scaling and resilience · Database

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.

A shelf within reach (a cache), but built so that nothing falls off even when the power goes out.

A cache is very fast, but there is usually a risk of losing data. MemoryDB gives both speed and safety.

Real-time apps that need very fast and durable data — such as session stores and game state.

Azure Managed Redis (with persistence)

For details and the latest information, see the official documentation: