Clear eviction policy, persistence plan, and TTL on ephemeral data.
IMDB that scales
Set eviction policy
maxmemory-policyon Redis:allkeys-lrufor caches,noevictionfor critical.Persist what matters
RDB/AOF for snapshots; replication for failover. Never treat IMDB as sole source of truth for critical data.
Cluster for scale
Single node = ~100 GB RAM. Shard above that.
TTL on everything ephemeral
Sessions, rate limits, temp tokens. Without TTL, RAM fills.