Design an ID generator for all the services of a large company. Whenever a service creates a record, such as an order, a payment or a message, it needs a new 64-bit numeric ID that no record anywhere has ever had, and IDs should sort roughly by the time they were made. Many services on many hosts create IDs at once, and no single central component may become their bottleneck.
This is a 45-minute system-design interview. The interviewer knows the product requirements and the expected load: ask before you design. Then lay out the components, the API and the data model, and explain how the system stays fast and available as traffic grows.
What the check looks at
Requirements, API and data model, architecture, scaling, reliability, trade-offs.
The interview runs on a tablet or a computer.