4 ms·
"short UUID" is an oxymoron. If it's short, then it's not universally unique. Assuming you meant "short ID", how is that any different than the OP's suggesti
by bryanlarsen 12y ago
"short UUID" is an oxymoron. If it's short, then it's not universally unique.
Assuming you meant "short ID", how is that any different than the OP's suggestion of randomly choosing from a list of meaningless names?
- Alupis 12y agoI think it would matter what the Universe is for their environment. A UUID may be fine as "server123" if there will never be a collision in their environment (ie. server124, server125, server 126, etc).
- drsintoma 12y agoIn a past life as sysadmin, I found very useful to encode a letter with number, so that serves with similar specs share the same letter. a1, a2, ... aN for serves 2 cores 8GB ram b1, b2, ... bN for serves 4 cores 8GB ram c1, c2, ... bN for serves 4 cores 16GB ram ...
- aroch 12y agoIt only has to be "universally" unique within the DNS servers you query, no?
- awalton 12y ago"Short" is relative. 4 billion IDs is likely Unique within an organization, even one the size of IBM, Google or Microsoft.
- eldavido 12y agoAt the risk of pedantry, it depends on whether their allocation is centrally coordinated. 4 billion IDs with central coordination isn't too bad, but you need a much, much bigger space to make collision-free, uncoordinated ID assignment practical. Corollary: in a room of 23 randomly selected individuals, there's a 1/2 chance that two individuals share a birthday. 365 days in a year, but only 23 samples gets you to 1/2 chance of collision. Look up the "birthday paradox" for more info on this surprising result.
- jorangreef 12y ago4 billion IDs = 32 bit = Math.pow(2,32). For a 50% chance of collision you need Math.pow(2,32/2) calls to your ID generating function which is 65536 calls. And that's just a 50% chance. Even a 1% chance is too much (for which you would need much less than 65536 calls). I doubt "IBM, Google or Microsoft" are using 32bit UUIDs. "4 billion IDs is likely Unique within an organization" I don't think it's unique within any organization.