Hacker News new | ask | show | jobs
by abahlo 1998 days ago
Sonyflakes are generally more useful in massive scale environments as you won't run into conflicts due to the "machine-id" part (which defaults to the lower 16 bits of the private IP address).

There are more differences (128bit vs 64bit, rng vs time-based), I think they have different use cases.

3 comments

You shouldn't ever have a collision with 128 bits of entropy.
More structure actually increases the chance for collisions. Because at that scale the chance of bit errors is dominating the equation. More rng protects against that.
Ulid doesn’t have a “machine id” or “node id” component. I think you are mixing it up with one of the uuid variants.