Redis Cluster ਹਰੀਜ਼ੰਟਲ ਸਕੇਲਿੰਗ ਨੂੰ ਡੇਟਾ ਨੂੰ ਕਈ Redis ਨੋਡਸ ਵਿੱਚ ਸ਼ਾਰਡ ਕਰਨ ਦੁਆਰਾ ਸਮਰੱਥ ਬਣਾਉਂਦਾ ਹੈ — ਡੇਟਾਸੇਟ (ਅਤੇ ਲੋਡ) ਨੂੰ ਵੰਡਦੇ ਹੋਏ ਤਾਂ ਕਿ Redis ਇੱਕ ਸਰਵਰ ਦੀ ਮੈਮੋਰੀ ਤੋਂ ਪਰੇ ਡੇਟਾ ਅਤੇ ਥਰੂਪੁਟ ਨੂੰ ਸੰਭਾਲ ਸਕੇ। ਇਹ hash slots ਰਾਹੀਂ ਡੇਟਾ ਨੂੰ ਵਿਭਾਜਿਤ ਕਰਦਾ ਹੈ ਅਤੇ ਬਿਲਤ-ਇਨ ਉੱਚ ਉਪਲਬਧਤਾ ਪ੍ਰਦਾਨ ਕਰਦਾ ਹੈ।
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.
