Redis Cluster ช่วยให้เกิด horizontal scaling ด้วยการ shard ข้อมูลข้ามหลาย Redis node — กระจายชุดข้อมูล (และภาระงาน) เพื่อให้ Redis รองรับข้อมูลและ throughput เกินกว่าหน่วยความจำของเซิร์ฟเวอร์เดียว มันแบ่งพาร์ติชันข้อมูลผ่าน hash slot และให้ high availability ในตัว
Sharding ผ่าน hash slot
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.
