Redis Cluster memungkinkan horizontal scaling dengan membagi data (sharding) di seluruh multiple Redis nodes — mendistribusikan dataset (dan load) agar Redis dapat menangani data dan throughput yang melebihi memory server tunggal. Cluster mempartisi data melalui hash slots dan menyediakan high availability bawaan.
Sharding via hash slots
Redis Cluster divides the keyspace into 16384 HASH SLOTS.
→ each key maps to a slot: slot = CRC16(key) mod 16384
→ slots are distributed across the cluster's primary nodes
→ each node owns a subset of slots (and thus a subset of the data)
→ This spreads data and load across nodes → scales memory and throughput horizontally.
