System Design · Senior · Question 57 of 75
What does a Snowflake-style ID provide over random UUIDv4?
- ✓Correct answer: IDs generated without coordination that are roughly time-ordered (timestamp + machine + sequence), good for indexes and sorting
- 2Stronger encryption
- 3Shorter strings than any UUID
Explanation
Time-ordered keys keep B-tree inserts local. Clock skew between machines must be handled; UUIDv7 offers a similar property.