4 ms·
No comments on this page about Snowflake IDs. https://en.wikipedia.org/wiki/Snowflake_ID https://en.wikipedia.org/wiki/Snowflake_ID They fit within 64 bits, a
by x-complexity 3y ago
No comments on this page about Snowflake IDs.
https://en.wikipedia.org/wiki/Snowflake_ID https://en.wikipedia.org/wiki/Snowflake_ID
They fit within 64 bits, allow for more than enough processes to handle 10k+ transactions per second, give enough of a timestamp headroom for decades into the future, and where ID generation can be made isolated to each process.
They don't work well for anything related to archival work, but you might as well use a regular ID for that anyway, unless you're also actively scraping terabytes of data off of the Internet every second, in which case UUIDv5's good enough for your extreme edge case.
...But at that point you might as well just roll your own 128-bit version of a Snowflake ID.
- M2Ys4U 3y ago>...But at that point you might as well just roll your own 128-bit version of a Snowflake ID. Or UUIDv7, which is designed to solve the same problem