← Questions

Consistent hashing ring: route packets to servers with few reassignments

0
AmazonCodingLast asked Nov 2026

A coding interview question asked in Amazon's technical phone screen, last asked Nov 2026. It tests consistent hashing, binary-search and load balancing.

Write a router that maps a packet id to one of the active backend servers. For a given set of servers the same packet id always goes to the same server, whatever order the servers were listed in.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Amazon · Technical phone screen · Last asked Nov 202660 min · Live coding in a shared editor that does not run code, plus Leadership Principles questions · No AI

What it tests

consistent hashing · binary-search · load balancing

Your code and the AI tutor open when you unlock this question.