Design a Unique ID Generator
Overview Design a unique ID generator that works in a distributed environment A traditional database with an auto_increment primary key is difficult to scale Scope Questions: q: What are the requirements for our unique IDs? a: must be unique and sortable q: Do our IDs increment by 1 for each new record? a: IDs increment by time (IDs generated earlier are smaller) q: Do IDs only contain numbers? a: Yes q: What is the ID length requirement?...