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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help