Design a unique ID generator in distributed systems

Question

Step 1 - Understand the problem and establish design scope

Questions to ask

Example requirement

Step 2 - Propose high-level design and get buy-in

Multi-master replication

UUID

Ticket server

Twitter snowflake approach

CleanShot 2024-10-19 at 18.26.46@2x.png

Step 3 - Design deep dive

Step 4 - Wrap up