Sortable Collision-Free UUIDs
github.com
Sortable Collision-Free UUIDs
1–10 of 65 posts
Re: Sortable Collision-Free UUIDs
#2Use wisely and with full awareness. Revealing creation sequence can leak information which can be an issue in scenarios where such information might compromise security.
Re: Sortable Collision-Free UUIDs
#3Re: Sortable Collision-Free UUIDs
#4Re: Sortable Collision-Free UUIDs
#5"Universally Unique Lexicographically Sortable Identifier"
Re: Sortable Collision-Free UUIDs
#6 int(time() - 16 * 10 ** 8)Re: Sortable Collision-Free UUIDs
#7It appears to have a similar constraint that two ID's generated within the same timestamp (ms, ns) have no strong guarantee of ordering. That might not be a deal breaker depending on your use case but something to consider.
Re: Sortable Collision-Free UUIDs
#8In fact, I don't see the point of a library like this, it's trying to encode two pieces of information into one string. Why is that? Why not encode geolocation or IP while they're at it. If some data is important, like the order, then a separate database column can easily be used and that would make for a much more durable and reliable solution.
Re: Sortable Collision-Free UUIDs
#9just added FUUIDs, thanks OP
Re: Sortable Collision-Free UUIDs
#10Also some recent similar submissions:
Timeflake is a 128-bit, roughly-ordered, URL-safe UUID.
https://news.ycombinator.com/item?id=25870482
https://github.com/anthonynsimon/timeflake
ULIDs:
https://news.ycombinator.com/item?id=18768909
Sonyflake:
https://news.ycombinator.com/item?id=25592325
KSUIDs (can't find any discussion here):
https://github.com/segmentio/ksuid
This comment lists other prior art: