segmentio / ksuid

K-Sortable Globally Unique IDs
https://segment.com/blog/a-brief-history-of-the-uuid/
MIT License
4.82k stars 174 forks source link

Differences with MongoDB ObjectID #80

Open vishal2-wiai opened 4 months ago

vishal2-wiai commented 4 months ago

I want to understand the differences and advantages of using KSUID over MongoDB ObjectID. The ObjectID is constructed with first 4 bytes as timestamp which provides a very similar behaviour of being able to sort by _id field.

Or the use case for this library a similar tool but for non-mongodb environments and general usage?