PPractick

System design interview question

Design a unique ID generator (Snowflake)

Medium · System design (HLD)

The prompt

"Design a distributed unique ID generator. IDs must be unique across a fleet of thousands of machines, must be roughly sortable by creation time, and should be compact — 64 bits, not 128. Millions of IDs per second, and generation must not require coordination on every call."

What this round really tests

bit-level design under hard constraints, plus the failure modes that break naive implementations — clock skew, clock rewind, and machine-ID assignment. It is a compact question with exactly one good answer shape, and the signal is whether the candidate derives the bit allocation rather than reciting it.

Clarifying questions worth asking

Practise questions like this with a real engineer

On Practick another engineer interviews you live for 60 minutes on a question from this bank. They have the full interviewer guide beside the call: the answers to your clarifying questions, the numbers to hand out, a ladder of follow-ups and a scoring rubric. You get the model solution once the session settles. It is free: interview someone for an hour and you have earned your own.

Book a free mock interview

Related questions

All 132 system design interview questions

System design mock interviews · DSA interview questions · Free mock interview practice · Browse interviewers · Sign in