3 ms·
To put it simply, the new standard aims to address UUID usage as primary keys in distributed systems. But UUIDv7 is described as: Unix timestamp + fractions of
by Croftengea 5y ago
To put it simply, the new standard aims to address UUID usage as primary keys in distributed systems.
But UUIDv7 is described as: Unix timestamp + fractions of second + increasing sequence + random number. Now imagine two processes start simultaneously and start generating UUIDs right away. IMHO chances of the two processes generating exactly the same UUID sequence are pretty high unless the implementation is smart enough to feed something like process id as a seed to random function.
- renonce 5y agoWell implemented processes usually seed their random generators from a random device, such as /dev/urandom in Linux. Such devices hand out different values for each request.