What happens when the hash generated for a key collides with an existing shard on the ring

system-design
Tags: #<Tag:0x00007f24255fe8f8>

#1

If there is a collision, how do we decide where to put that key.


#2

You can return the id of that shard.