Tagged articles
3 articles
Page 1 of 1
ITPUB
ITPUB
Aug 18, 2020 · Backend Development

Do Consistent Hashes Really Keep Your Cluster Balanced? Real-World Tests and Fixes

This article experimentally validates consistent hashing by adding and removing nodes in a 5‑node cluster, reveals key distribution imbalance and avalanche risks, and proposes solutions such as node scaling and virtual node virtualization, complete with Python code examples and detailed analysis.

Node Scalingconsistent hashingkey distribution
0 likes · 19 min read
Do Consistent Hashes Really Keep Your Cluster Balanced? Real-World Tests and Fixes
ITPUB
ITPUB
Aug 17, 2020 · Fundamentals

How Consistent Hashing Minimizes Data Movement in Scalable Systems

This article explains the principle of consistent hashing, shows how to build a 2^32‑range hash ring, map nodes and keys onto it, and demonstrates node addition and removal with a Python implementation that highlights reduced data reshuffling compared to simple modulo hashing.

Node Scalingconsistent hashinghash ring
0 likes · 17 min read
How Consistent Hashing Minimizes Data Movement in Scalable Systems