System Design ($200k+) · PERFORMANCE · Distributed Systems Core · 2026

Consistent Hashing (Virtual Nodes) vs `hash(key) % N` Sharding

Quick Decision Rule: When Scaling a 10-node distributed cache cluster to 11 nodes without triggering a near-100% cache miss storm, choose Consistent hashing ring with virtual nodes so only ~1/N keys remap when adding or removing a node.

Trigger ConditionScaling a 10-node distributed cache cluster to 11 nodes without triggering a near-100% cache miss storm
Recommended ChoiceConsistent hashing ring with virtual nodes so only ~1/N keys remap when adding or removing a node
Classic TrapSimple modulo sharding (`hash(k) % N`) remaps ~91% of all keys when N changes from 10 to 11, slamming origin databases.
VerificationAudited on 2026-11-23 · Distributed Systems Core · 2026

30-SECOND DECISION TRAP CHECK · PERFORMANCE

Test your instinct

A 10-node Memcached tier maps keys via `hash(key) % N`. When ops scales the cluster from 10 to 11 nodes during Black Friday, cache hit rate collapses from 96% to 8% and overwhelms the DB. Why did adding capacity cause an outage?

Primary Engineering Documentation

Related Performance Decision Guides