Quick Answer
How to explain a unique ID generator in English: compare UUID, ticket servers, and Snowflake-style IDs, then name clock skew and uniqueness risks out loud.
Diagrams and what to say while drawing
Narrate each figure out loud. Point to the box you are talking about.

What to say on figure 1
Show UUID generated locally on each server.

What to say on figure 2
Show a ticket server as a bottleneck.

What to say on figure 3
Show Snowflake bit layout: timestamp | worker | sequence.

What to say on figure 4
Show two workers generating IDs in parallel.
Key vocabulary
| Term | Plain meaning | Say it in an interview |
|---|---|---|
| Unique ID | Identifier that must not collide | “IDs must be unique across all servers.” |
| Ticket server | Central counter service | “A ticket server hands out incremental IDs.” |
| Snowflake ID | Time + worker + sequence bits | “A Snowflake-style ID embeds time and worker ID.” |
| Clock skew | Servers disagree on time | “Clock skew can break time-ordered IDs.” |
ESL English phrases and transitions
Clarify
- “Do IDs need to be roughly time-ordered?”
- “How many IDs per second at peak?”
Propose and check in
- “The next bottleneck is X, so I would add Y.”
- “Does this level of detail work, or should I go deeper?”
Tradeoffs
- “The advantage is simplicity; the downside is…”
- “I’d choose A over B because…”
Key English language pitfalls
| Pitfall | Sounds like | Say instead |
|---|---|---|
| Option dump | Three ideas, no pick | Choose one and defend it |
| Database auto-increment only | Single point | Call out multi-region limits |
| Summary | Every new box needs one spoken reason. | |
Common English mistakes
| Mistake | What the interviewer concludes | Better English |
|---|---|---|
| No ordering talk | Missed requirement | Ask if sortable IDs matter |
| Ignoring clock skew | Hidden risk | Name NTP / clock dependency briefly |
What the interviewer is testing
This is a communication test as much as a design test. Can you explain unique id generation in distributed systems as a calm collaboration?
Interviewers listen for structure, tradeoffs, and clear English under pressure.
Key takeaway
Your job is to narrate decisions the interviewer can follow and challenge — not to dump tools.
How to open the problem in English
Opening script you can practise aloud
- “Do IDs need to be roughly time-ordered?”
- “How many IDs per second at peak?”
Watch Out
Do not open with a finished architecture. Show the path.
Unique id generator system design
Use this sequence for unique id generator system design. For each stage, say what changes, why, and what can still go wrong.
Requirements
Uniqueness, scale, sortable?, length, privacy.
Options
UUID (simple), ticket server (ordered, hotspot), Snowflake (distributed, time-based).
Choose
Pick one and justify with traffic and ordering needs.
Risks
Clock skew, worker-ID allocation, single-ticket bottleneck.
Weak vs strong answers
Weak
“Just use UUID.”
Strong
“UUID is simplest for uniqueness, but if we need roughly time-ordered IDs at high QPS, I’d use a Snowflake-style generator with worker IDs.”
Metrics and how to say numbers
| Write | Say |
|---|---|
| 10k IDs/sec | ten thousand IDs per second |
| 64-bit ID | a sixty-four bit ID |
Follow-up questions you will get
Likely follow-ups
- “What if two workers share an ID?” → “Worker IDs must be unique; I’d allocate them through config or a small coordination service.”
Practice drill
Checklist
- Requirements
- Three options
- Pick one
- One risk
“If you can explain unique id generation in distributed systems without notes, you are ready to draw it in an interview.”
Answer frameworks you can reuse
Use these spoken templates under pressure. Fill the blanks — do not invent a new structure mid-interview.
Framework 1 — Whole answer
Clarify → High-level → Deep dive → Check-in.
Framework 2 — Each component (B-C-B-C)
Bottleneck → Component → Benefit → Cost.
Framework 3 — Now → Breaks → Next
Current design → failure mode → next upgrade.
Framework 4 — Draw → Name → Why → Risk
Narrate every box as you draw it.
Interview tip
Pick one framework and stay inside it. Switching structures mid-talk makes English sound messy.
Frequently Asked Questions
Tap a question to expand the answer.