메인 내용으로 이동

ULID

A ULID (Universally Unique Lexicographically Sortable Identifier) is a 128-bit identifier that encodes a timestamp and a randomness component into a 26-character, base32 string. Its design ensures both global uniqueness and monotonic sort-ability—newer ULIDs will always sort after older ones.

Compared to UUIDs (or GUIDs), ULIDs are more human-friendly (shorter, case-insensitive, and lexicographically sortable), though they rely on a high-quality random generator to avoid collisions.

CUIDs also aim to be collision-resistant and somewhat human-readable but lack strict sortability by time, while NanoIDs focus on short and fast ID generation but trade off predictable lexicographic sorting.

ULIDs strike a balance between readability, time-ordering, and uniqueness, though users should ensure a quality random source to reap the full benefits.

이 문서를 언급한 문서들