Consistent Hashing
Consistent Hashing is a partitioning technique that maps both keys and nodes onto a logical hash ring. A key is assigned to the next node on the ring according to the chosen traversal rule. Its main advantage is that when nodes are added or removed, only a relatively small portion of keys need to move compared with naive hashing based directly on modulo node count.
Reduces data movement when cluster membership changes.
Commonly used in distributed caches and partitioned storage systems.
Virtual nodes improve distribution and reduce hot spots.
Replication can assign a key to multiple successive nodes.
The hash function and node placement influence load distribution.
Consistent hashing does not automatically provide replication, consistency, or fault tolerance; those are separate system-design concerns.
0-2 years experience
2-5 years experience
5-8 years experience
8+ years experience