Option 2: UUID
Play this lessonThis lesson comes with an interactive animation you can break, a live-code challenge and a chapter quiz.A UUID is a 128-bit number, e.g. 09c93e62-50b4-468d-bf8a-c07e1040bfb2. The chance of a collision is tiny: generate 1 billion UUIDs per second for about 100 years and you'd reach a 50% chance of a single duplicate. Each web server generates its own, independently.
The rest of this lesson is part of Pro
Pro unlocks every lesson with its animation, code challenge and quiz, plus every interview problem. ₹299 a month or ₹1,999 a year.
See Pro