/ The Arena
Prove your engineering skills.
GLOBAL+50 XP
Implement a Consistent Hash Ring with Virtual Nodes and Dynamic Rebalancing
Landmark Capstone Challenge: Consistent Hash Ring with VNodes ⚔️
In this landmark capstone challenge, you will implement a production-grade Consistent Hash Ring supporting Virtual Nodes (VNodes), logarithmic binary search routing, and dynamic node addition/removal.
Requirements:
- Deterministic 32-bit Hashing & VNodes:
- Hash each virtual node coordinate (
${nodeId}#${i}) to a 32-bit unsigned integer. - Store entries in a sorted ring for lookup performance.
- Hash each virtual node coordinate (
- Clockwise Key Routing with Wraparound:
- For any key, find the first virtual node whose hash is .
- If key hash exceeds all nodes on the ring, wrap around to the first node ().
- Dynamic Rebalancing:
- Support adding and removing physical nodes with immediate, minimal key redistribution.
Join The Arena
Create an account to submit your implementation, test against our containerized CI suite, and climb the global leaderboard.
Create AccountALREADY HAVE AN ACCOUNT? LOG IN