Consistent Hashing

Modulo vs ring

An engineer proposes `shard_id = murmur3(user_id) % num_shards` for a Redis cluster that frequently adds shards. In 6-8 sentences, critique modulo for elastic clusters and say when consistent hashing is the better fit vs when range sharding by time is better.

Intermediate drill question.

Write it as you would say it in the interview: assumptions, the design, tradeoffs, and what you would do next. The draft saves in this browser.

Review the lesson