spec icon indicating copy to clipboard operation
spec copied to clipboard

Comparison to Firebase PushIDs

Open devlinb opened this issue 5 years ago • 2 comments

Google's Firebase Realtime DB uses a sortable unique identifier format, a JS implementation of which is available at https://gist.github.com/mikelehen/3596a30bd69384624c11

72 bit of randomness, but it doesn't collide if multiple IDs are generated within the same millisecond on the same machine, the last property is kind of cool and achieved rather simply.

devlinb avatar Nov 25 '19 18:11 devlinb

A lot of ULID implementations do not follow this part of the spec, but ULID already does the simple randomness increment: https://github.com/ulid/spec#monotonicity

mqudsi avatar Dec 16 '19 07:12 mqudsi

@mqudsi is correct:

  • ULID's reference JS implementation already does this randomness increment
  • lots of other implementations do not follow this part of the spec

alizain avatar Jan 06 '20 22:01 alizain