4 ms·
Being able to do anything with the remaining bits is very useful. You can do any scheme that suits your individual features needs, and it will be a valid UUID
by yardstick 2y ago
Being able to do anything with the remaining bits is very useful.
You can do any scheme that suits your individual features needs, and it will be a valid UUID still.
This also means future schemes can be implemented right now without having to get a formal UUID version.
You could use the first few bits to indicate production vs qa vs dev data.
Or a subtle hint to what it might be for (eg is this UUID a product identifier or a user identifier or a post or a comment etc). Similar to how AWS etc prefix IDs with their type.
- edflsafoiewq 2y agoBut it kind of defeats the purpose of encoding which of a fixed set of generation methods you are using in the ID, which is presumably to avoid having to check that none of the O(N^2) pair-wise combinations of N methods produce collisions.