Storage, Redis & Caching
Redis Cluster
Redis Cluster splits keys across 16384 hash slots on several primaries. You learn how a slot is chosen, why multi-key commands need one slot, and why a failover can lose recent writes.
What you will be able to do
- Explain how Redis Cluster maps a key to a hash slot and then to a primary.
- Decide when a multi-key command needs a hash tag, and what that costs.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Storage, Redis & Caching
- Redis persistenceAdvanced · 4 min
Explain how RDB snapshots and AOF differ in loss window, fsync policy and restart behaviour, and choose a setting from the loss the business can accept.
- Redis replicationAdvanced · 4 min
Explain how asynchronous replication copies writes to replicas, and why WAIT and a replica count lower the loss risk without making a write durable across failover.
- Distributed locks caveatsAdvanced · 5 min
A Redis lock uses a TTL and a random token, and it can still fail when the holder pauses past the TTL. You learn why a fencing token protects the resource itself.
- Hot key mitigationAdvanced · 4 min
A hot key sends all its traffic to one node, so adding nodes does not help. You learn how to find the key and choose between a local cache, client-side tracking and key…
- CDN cache controlAdvanced · 4 min
CDN caching follows the freshness and storage rules in RFC 9111. You learn how s-maxage, ETag and private responses decide what a shared cache may store and serve.
- MinIO S3 compatibilityAdvanced · 4 min
MinIO implements the S3 API, but compatibility is a list of operations rather than a yes or no. You learn how to test each operation a tool needs before moving data.