Redis Cluster હોરાઇઝોન્ટલ સ્કેલિંગ સક્ષમ કરે છે જે તથ્યાંકોને બહુવિધ Redis નોડ્સ પર શેર કરીને — ડેટાસેટ (અને લોડ) વિતરિત કરીને જેથી Redis એક સર્વર કी મેમોરીથી આગળ જતું ડેટા અને થ્રુપુટ સંભાળી શકે. તે હેશ સ્લોટ્સ દ્વારા તથ્યાંકોને વિભાજિત કરે છે અને બિલ્ટ-ઇન ઉચ્ચ ઉપલબ્ધતા પ્રદાન કરે છે.
હેશ સ્લોટ્સ દ્વારા શેર્ડિંગ
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.
