Recall & Review
beginner
What is consistent hashing?
Consistent hashing is a technique to distribute data across multiple servers so that when servers are added or removed, only a small portion of data needs to be moved. It helps systems scale smoothly.
Click to reveal answer
intermediate
Why is consistent hashing better than simple modulo hashing for distributed systems?
Simple modulo hashing moves almost all data when the number of servers changes. Consistent hashing moves only a small part, reducing data reshuffling and downtime.
Click to reveal answer
beginner
What is a hash ring in consistent hashing?
A hash ring is a circular space where both servers and data keys are placed using a hash function. Data is assigned to the next server clockwise on the ring.
Click to reveal answer
intermediate
How do virtual nodes improve consistent hashing?
Virtual nodes are multiple points per server on the hash ring. They help balance load better by spreading data more evenly across servers.
Click to reveal answer
beginner
What happens when a server is removed in consistent hashing?
Only the data assigned to that server moves to the next server on the ring. Other data stays on their servers, minimizing data movement.
Click to reveal answer
What does consistent hashing minimize when servers change?
✗ Incorrect
Consistent hashing minimizes the amount of data that needs to be moved when servers are added or removed.
In consistent hashing, where is data assigned on the hash ring?
✗ Incorrect
Data is assigned to the server at the next clockwise position on the hash ring.
What is the purpose of virtual nodes in consistent hashing?
✗ Incorrect
Virtual nodes help distribute data more evenly, improving load balancing.
Which problem does consistent hashing solve in distributed systems?
✗ Incorrect
Consistent hashing reduces data reshuffling when servers are added or removed.
What shape is used to visualize consistent hashing?
✗ Incorrect
Consistent hashing is visualized as a circle called a hash ring.
Explain how consistent hashing helps when adding or removing servers in a distributed system.
Think about how data is distributed and what happens when servers change.
You got /4 concepts.
Describe the role of virtual nodes in consistent hashing and why they are useful.
Consider how virtual nodes affect data balance across servers.
You got /4 concepts.