3 ms·
> UUIDs are crazy overkill in any situation where you can have centralised ID allocation. Except that’s specifically the use case of UUIDs: to have a decentral
by iroddis 4y ago
> UUIDs are crazy overkill in any situation where you can have centralised ID allocation.
Except that’s specifically the use case of UUIDs: to have a decentralized method to generate unique IDs with minimal chance of collisions. If you have centralized control, of course there will be options with more attractive properties: they aren’t dealing with the same constraints.
- chrismorgan 4y agoSure, decentralised allocation is the intent of UUIDs, but in practice UUIDv4 is used extremely widely where it’s completely unnecessary, because it’s a convenient way of generating non-sequential IDs with good tooling support (UUID libraries, UUID data types in some databases, &c.).