Cianplan

Level 6: Applied: cases, FDE scenarios, mocks · L6.1 Classic cases I

Unique ID generator

Compare UUIDs, ticket servers and Snowflake IDs.

12 min · Pro

What you take away

  • Sixty-four bits split as 41 timestamp, 10 machine, 12 sequence gives 69 years, 1,024 nodes and 4,096 IDs per millisecond per node.

And 3 more inside the class, in Pro.

How the class is laid out

  1. The prompt
  2. What the requirements actually demand
  3. Three designs
  4. Check your understanding