SpinTheMic
Pro

Interview practice question

Generating unique IDs on many servers

System Design · Distributed Systems · Beginner

Each of your 20 servers needs to create unique order IDs without talking to each other. How would you do it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • UUIDs (random, no coordination).
  • Snowflake IDs: time + machine ID + sequence.
  • Assign unique machine IDs.
  • Time-ordered helps indexing.
  • Avoid central counter bottleneck.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics