Lesson 12 of 15
28. Consistent Hashing

Interview questions

5 min read+10 XP

Interview questions (with the counter-questions you'll get)

Q1. What is consistent hashing, and why is it needed?

They're testing: the core idea.

Think about your answer first, then open it.

reveal

Q2. Why do we need virtual nodes?

They're testing: the practical refinement.

Think about your answer first, then open it.

reveal

Q3. How do you look up a key's server efficiently?

They're testing: implementation.

Think about your answer first, then open it.

reveal

Q4. How does replication work with consistent hashing?

They're testing: Dynamo-style design.

Think about your answer first, then open it.

reveal

Q5. Consistent hashing vs fixed hash slots (like Redis Cluster)?

They're testing: knowing alternatives.

Think about your answer first, then open it.

reveal

Q6. What is rendezvous hashing?

They're testing: breadth.

Think about your answer first, then open it.

reveal

Q7. You add 4 cache servers to 4. What happens, and how do you soften it?

They're testing: operational thinking.

Think about your answer first, then open it.

reveal

Q8. How do you handle hot keys with consistent hashing?

They're testing: the limits of hashing.

Think about your answer first, then open it.

reveal

Q9. How do clients agree on which servers are on the ring?

They're testing: membership.

Think about your answer first, then open it.

reveal

Q10. Where is consistent hashing used in real systems?

They're testing: connecting theory to practice.

Think about your answer first, then open it.

reveal