Distributed ID Formats Are Architectural Commitments, Not Just Data Types
Posted by mnahkies 3 days ago
Comments
Comment by mrkeen 9 minutes ago
> Their workaround was simple and surprisingly effective: they offset new IDs by a huge constant—roughly a billion. Old IDs stayed below the threshold, new IDs lived above it, and nothing collided. It worked surprisingly well, but it also taught me something.
So what was the fix? The new numbers are bigger? I need a little more detail.
> If your system is running on a single database with moderate traffic, auto-increment is still probably the best answer. Don’t overthink it.
If autoincrement is the simplest way to do things, but breaks if you evolve the system in any conceivable way, maybe autoincrement isn't the simplest way to do things.
Isn't that the point of the article?
Comment by alwa 31 minutes ago
> It still depends on system clocks like every other timestamp-based format, so clock drift affects it the same way.
…your systems’ clocks drift by days, this motivates you to homebrew a distributed ID format, and your distributed ID format is susceptible to the same problems?
There must be a reason you can’t use NTP or GPS (or, you know, GLONASS or whatever)… but you’re sure a new ID format is the solution?
Comment by CGamesPlay 1 hour ago
Comment by theoli 2 hours ago
Comment by frutiger 3 hours ago
Reading direct LLM output is highly cringeworthy.