Amazon MemoryDB
Databases · Advanced, most people never need it
It is a very fast in-memory store that, unlike a normal cache, does not lose your data.
A whiteboard that quietly photocopies itself every time you write on it, so wiping it by accident costs nothing.
What it actually does
It is compatible with Valkey and Redis, so existing clients work, but every write is also stored in a durable multi-zone log before it is acknowledged. That makes it safe to use as the main database, which plain ElastiCache is not. The trade-off is slower writes than a pure cache and a much higher bill, since everything lives in RAM.
Reach for it when
- You need microsecond reads and cannot lose the data
- Replacing a cache plus database pair with one system
- Session or leaderboard data that must survive a node failure
Do not reach for it when
- You only need a cache in front of a real database, use ElastiCache, it is cheaper
- Your data set is large or cold, RAM pricing will hurt, use DynamoDB
One small example
A payments service keeps live fraud counters in MemoryDB so a node restart does not reset them.
How you pay
Per node-hour by memory size, plus a charge per gigabyte written to the durable log. The write charge is the part people do not expect.
Usually sits next to
The real source
This is a simplified summary written for people learning AWS. The official AWS documentation is the authoritative word and it wins wherever this page disagrees with it.