DEV Community

Discussion on: What would you use as a sortable, globally unique, ID?

Collapse
citizen428 profile image
Michael Kohl

Was just talking about this recently and we settled on ULID as potential solution.

Collapse
stereobooster profile image
stereobooster

Yes. Unique, sortable, more compact Base32 encoding

Collapse
rhymes profile image
rhymes Author

That's definitely an option!

The only alternative to ULID I found is github.com/segmentio/ksuid which has a smaller set of bits for timestamp.

Let me know how it goes? Have you checked the implementation in the language you need?