Scale with Redis Cluster
Scale with Redis Cluster
Redis cluster gives us the ability to scale our Redis setup horizontally not just for reads but also for writes, and you should consider it
The command returns an array of keys names stored in the contacted node and hashing to the specified hash slot The maximum number of keys to return is The Redis cluster has 16384 hash slots Each key is checked modulo 16384 after CRC16 verification to determine which slot to place Each node in the cluster is
age of the gods norse norse legends slot But in this example we'll assume they are just ten, from 0 to 9 ;) Different nodes will hold a subset of hash slots A given key foo is at slot: slot = crc16 A Redis® Cluster is divided into 16384 hash slots, and a deterministic formula is used to derive the key to hash slot mapping, that is [ CRC16(