3 ms·
While UUIDs are pretty common, they are by far not the only or superior solution. To be able to easily generate IDs on different nodes in a distributed system s
by cryptos 3y ago
While UUIDs are pretty common, they are by far not the only or superior solution. To be able to easily generate IDs on different nodes in a distributed system something host-specific, pure random, or a mixture of both is needed. To be avoid problems with random numbers on DB indexes some time-based part would be useful. There are other approaches like Ulid or TSID which are similar to UUID v7, but are represented in are more compact way.
Example Ulid vs UUID:
000360TJXZDDMSKJSQGBQHA5YA
fb87f306-b613-4948-be24-00609cf9ccc8
https://github.com/ulid/spec https://github.com/ulid/spec
https://tsid.com/de https://tsid.com/de