Consistent hashing yaiku teknik kanggo ngebagekake data ing saindhenging node (server) sing nyilisir redistribusi nalika node ditambah utawa dicopot — beda karo simple hashing, kang ngaremap akeh kunci nalika jumlah node owah. Iki penting kanggo distributed caches, databases, lan distribusi beban.
Masalah karo simple hashing
Simple approach: node = hash(key) % N (N = number of nodes)
✗ when N CHANGES (add/remove a node), N changes → MOST keys remap to different nodes →
massive data movement / cache invalidation (almost everything moves!)
→ adding/removing a server causes huge disruption → bad for dynamic distributed systems.
