28. Consistent Hashing
Interview questions
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.
Q2. Why do we need virtual nodes?
They're testing: the practical refinement.
Think about your answer first, then open it.
Q3. How do you look up a key's server efficiently?
They're testing: implementation.
Think about your answer first, then open it.
Q4. How does replication work with consistent hashing?
They're testing: Dynamo-style design.
Think about your answer first, then open it.
Q5. Consistent hashing vs fixed hash slots (like Redis Cluster)?
They're testing: knowing alternatives.
Think about your answer first, then open it.
Q6. What is rendezvous hashing?
They're testing: breadth.
Think about your answer first, then open it.
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.
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.
Q9. How do clients agree on which servers are on the ring?
They're testing: membership.
Think about your answer first, then open it.
Q10. Where is consistent hashing used in real systems?
They're testing: connecting theory to practice.
Think about your answer first, then open it.