Redis Cluster jippermetti iskalijar orizzontali billi joqom id-dejta fuq għadd ta' nodi Redis — tqassam id-dataset (u l-load) sabiex Redis ikun jista' jimmaniġġja dejta u throughput aktar minn il-memorja ta' server wieħed. Jaqsam id-dejta permezz ta' hash slots u jipprovdi high availability integrat.
Sharding permezz ta' 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.
