Loading page…
One strong interview answer to "design a unique ID generator": a Snowflake-style 64-bit layout of time, worker and sequence built inside each service with no network call, worker IDs held as etcd leases so no two instances share one, and what to do when a clock goes backwards, a VM wakes up late, or a browser rounds your ID.
Every system needs IDs, and the first instinct is the database's auto-increment column.