AWS ElastiCache vs MemoryDB: Which One Do You Actually Need?
dev.to·3d·
Discuss: DEV
💾Cache Design
Preview
Report Post

I was setting up Redis on AWS and faced the classic question: ElastiCache or MemoryDB? After some research, the answer is surprisingly simple once you understand the core difference.

TL;DR Decision Tree

Is your data ephemeral (can be regenerated/lost)?
├── YES → ElastiCache (~$12/month for cache.t4g.micro)
└── NO → MemoryDB (~$25+/month, durable storage)

That’s it. That’s the whole decision.

My Use Case: Rate Limiting

For jo4.io, I need Redis for:

  • Rate limiting counters (user:123:requests:minute)
  • Session caching
  • Temporary feature flags

If Redis dies and I lose all this data:

  • Rate limit counters reset to 0 (users get a fresh minute, not a big deal)
  • Sessions expire (users log in again, minor inconvenience)
  • Feature flags reload…

Similar Posts

Loading similar posts...