Skip to content
masterclass Buddy

System Design · Concept

Consistent Hashing

Consistent hashing maps cache keys to machines in a cluster. It reduces the amount of data that must move when machines are added or removed.

Last updated

Syntax

machine = hash(query)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Sharding
  • Caching
  • Key-value store
  • Cache-aside
  • Read replicas

Source: system-design-primer/solutions/system_design/query_cache/README.md at ae9bbd7b02d90b9866215de185217d33f39ab733 · donnemartin/system-design-primer · GitHub. Checked 2026-11-03.