Each candidate is scored with a hash of the shard name combined with the key,
and the highest score wins, with the shard name breaking exact ties. Adding
or removing a shard only moves the keys whose winner changed, and the result
is independent of the order shards is given in.
Selects a shard for
keyusing rendezvous hashing.Each candidate is scored with a hash of the shard name combined with the key, and the highest score wins, with the shard name breaking exact ties. Adding or removing a shard only moves the keys whose winner changed, and the result is independent of the order
shardsis given in.