Why consistent hashing is better in handing hotspots than simple hashing?

81 Views Asked by At

I was reading System Design Interview An Insider’s Guide by Alex Xu, and it says that Consistent hashing is prevent uneven data distribution, but it doesn't explain why. So why exactly hash % n creates hotspots and why do virtual nodes from consistent hashing solve it?

0

There are 0 best solutions below