~learn.
lecture · 13:21 · 4 checkpoints · browser voice

Unique IDs: 64 bits, a million a second, no two alike

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.

01 · Beyond auto-increment
IP-04 · Design a Unique ID Generator

Every system needs IDs.

Auto-increment, until it isn't

Every system needs IDs, and the first instinct is the database's auto-increment column.