Apex › Distributed systems

Jump consistent hash

Google's memoryless consistent-hash algorithm: map a key to one of N shards in five lines, so that growing N by one moves only ~1/N of keys — and only onto the new shard. Drag the bucket count and watch which keys move, then compare against plain key % N, which reshuffles almost everything.

More in Distributed systems