How does ElastiCache for Redis support cluster mode to scale beyond a single node's capacity?
Short answer
Cluster mode in ElastiCache for Redis shards your data automatically across multiple node groups, each responsible for a portion of the overall keyspace, allowing you to scale both storage capacity and throughput horizontally by adding more shards, which is essential for…
Advertisement
AModel answer
Cluster mode in ElastiCache for Redis shards your data automatically across multiple node groups, each responsible for a portion of the overall keyspace, allowing you to scale both storage capacity and throughput horizontally by adding more shards, which is essential for workloads that outgrow what a single Redis node can handle in memory.
Example
aws elasticache create-replication-group --replication-group-id my-cluster --engine redis --cache-node-type cache.r6g.large --num-node-groups 3 --replicas-per-node-group 1
Real-world example
A real time analytics platform enables cluster mode on its Redis deployment to spread a massive dataset across multiple shards, allowing it to scale well beyond the memory limit of any single Redis node.
Likely follow-ups
- How does cluster mode affect commands that operate on multiple keys at once?
- What happens if a specific shard becomes a hot spot for traffic?
Related topics