Yyyeeeaaahhhhh.... I once had to write "integration tests" around the Golang time standard library. So I can see this being real, and I hope they were just playing the long game and spending most of their time playing CoD or something.
Because holy hell the sense of worthlessness doing something like that is soul crushing.
Hmmm. I could at least see some edge case reason for those integration tests. If your product has absolutely critical areas that *must not* fail for any reason, that level of paranoia might be justified. Although that might be a case of where you fork the library and take over control anyway.
But if you require a design that can't even have a 1 in a quintillion chance of a collision then you don't use a UUID in the first place. You would actually use a sequence number of registered ID or something. A UUID is a horrible choice for such a system.
I am pretty sure that chance for UUID collision is much less than 1 in quintillion. Birthday paradox says that you need to generate about 3 quintillions of UUIDs to get 50% chance of collision.
True but also not true. On theory it’s highly unlikely for it to happen just as it’s highly unlikely for it to happen that you win the lottery or any other unlikely but observed event in life like a blinded backward facing goal/score.
I’ve seen UUID collisions in all companies that I’ve worked, but not more than 1 or 2 single collisions. And in one we joke to this day with a ex-coworker because when we fixed it “manually” for some reason the seed of the UUID generated a second collision, we should have played the lottery that day not work.
Still does not justify having even one person let alone a team for this, all of these collisions were at most an afternoon of work for two people each time.
I seem to recall there was a period of time where the system clock was used as part of the generation process for GUIDs in C#, so if you generated enough of them in a small enough time frame, some would collide due to the clock resolution not being high enough.
Don't quote me on that though, that was told to me by a very smart fellow on my team.
To have a 1 in 8 thousand million chance (i.e. 1 in the entire population of earth) to see a single UUID collision from a generator that generates independent, uniformly distributed UUIDs over a 50 year career, you must spend that entire 50 year career working on the same system that generates more than 23,000 UUIDs per second and never retires its database.
Seeing a single UUID collision in a realistic work environment with proper randomness is so far beyond bad luck that it's basically impossible that it's due to actual bad luck with your source of randomness. Precisely, the credence of the proposition that random bad luck is the cause of your UUID collisions should be near zero, and the credence that a bad library or RNG is the culprit should be high.
Winning the lottery is always such a bad example for these types of comparions. Yes, the odds of a single person winning the lottery is low. But the chance of SOMEONE winning the lottery is 100%. They will always keep drawing until someone wins.
Besides that, comparing the odds of the lottery to the odds of a UUID collision is like comparing the size of a grain of sand to the size of the earth. Oops did I say earth, I meant the sun. Oops did I say the sun, I meant a star 1 billion times larger than our sun. That is the difference between those probabilities. It's okay to say numbers are so small they are 0. Not close to 0. Not really close to 0. It is 0.
If you are seeing collisions, you are either using a version of UUID with a certain weakness, or there is another error in your code
There is no way that calling a remote service would be the right design in that situation. Personally I'm wondering why clients can't generate an ID and check to see if it exists.
You want to discuss the sense of worthlessness? Imagine having to monitor email sending everyday (eventhough it is automated) and provide evidence of when the email was sent from the log traces because customers keep complaining they didn't receive the email. Doing that 50 times a day every day as a full time job including a jira board where all enquiries get logged.
I don't really get what the job is then. Even the monitoring could be automated. How could anybody grow as a developer from this job? This will actively decrease your value and when you are fired eventually nobody is going to rehire you based on this
Orchestrated comprehensive daily oversight of enterprise-wide automated email distribution systems, proactively monitoring high-volume transactional and notification pipelines to guarantee flawless delivery performance and maintain 99.9%+ uptime. Leveraged advanced log-trace forensics and multi-layered audit trails to reconstruct precise transmission timelines, generate irrefutable evidentiary packages, and rapidly neutralize customer escalation cycles stemming from intermittent non-receipt claims—transforming reactive complaint handling into a proactive, data-driven reliability function that safeguarded brand trust and SLA adherence.
Championed robust governance and policy frameworks for enterprise client correspondence management, instituting rigorous audit-ready controls, retention protocols, and evidentiary standards that ensured full regulatory and contractual compliance across all outbound communications. Authored and enforced standardized proof-of-delivery procedures rooted in immutable log-trace forensics, enabling instantaneous production of defensible documentation that neutralized client disputes, mitigated legal and reputational risk, and upheld the highest standards of transparency, accountability, and fiduciary responsibility in client relationship stewardship.
These are apparently BAU due to company restructure that is happening. So these are incidents we are tackling while company decides on their priorities. And I'm doing this as a senior dev. We have automated monitoring already in place. What they want is proof of the logs that they can share to customer. Which must be checked and recorded manually. Annoying work. Very depressing.
Are you kidding me, that sounds like a dream project (in the context of a workplace setting) for me. Basically doing fuck all and still getting paid? Sign me up
You don't have to define yourself by your work to at least want to find some meaning in it. Even if it is just creating revenue for somebody else. But just consuming oxygen and energy, doing something you are aware is an absolute waste of every ressource remotely in touch with it??
Nearly everything in my life that makes me happy is outside my work. Working at a job that provides me with the resources, namely time and money, to enjoy my life is what I value.
AHEM. I had to GPT this to answer it for myself... because I read this conversation and was like... Whose side am I on? The "it's just a job guys" have a point. But I'd hate to hire an engineer with no passion for the work. Could be an age thing/state of the industry. Very brief from GPT:
"there really was a period—roughly the late '90s through the 2010s—where a huge percentage of developers were hobbyists before they were professionals." "Companies could often hire people who were both intrinsically motivated and highly skilled."
Today, the field is much larger. Millions of people entered because:
It's like wanting to be a police officer, going through the academy, thinking you're going to be stopping criminals, solving crimes, keeping your community safe, and then you are put on a traffic beat pulling over people who don't stop at stop signs or go five miles over the speed limit. Nothing, but a glorified revenue generator.
It feels a bit overkill, but what's your level of system criticality?
Most of the time when I see something like this there is a story behind it, like some random failure that caused 12 hours of outage and the days or weeks of analysis afterwards trying to find a permanent fix. Spoken as someone who's had a db primary key collision that involved a timestamp with 6 digits of fractional second precision.
Real world experience will kick some PhD theory's ass every day of the week.
Then you use longer and more robust UUIDs or don’t use UUIDs. 6 digits is many order of magnitudes less than any UUID. Putting three devs on it for a month would make sense.
It is not. The percent difference in speed is the same, but the likelihood of losing control of the car is not the same and the amount of physical damage that can be done is not the same.
It's really actually more like going 25 mph in a 20 zone, but sure.
Not only would the proportional equivalent be "going 100 mph in an 80 zone", but going 105 mph in an 80 mph zone represents an 31.25% increase in speed and a 72% increase in kinetic energy.
Except not really at all. Car accidents are one of the leading causes of death (at least in America), so traffic enforcement is actually one of the best things police can do to improve public safety.
You can absolutely over engineer a worthless service to a point where it is mentally draining. Now you work in a demanding environment fully knowing it is completely useless
Uuidv7 encodes the timestamp in the first section of the uuid so you can only collide if you generate multiple hashes in the same millisecond.
Technically correct, but we need to put some numbers on this. You would need to generate around 6.1 billion UUIDs in that single millisecond in order to have 0.1% chance of any collision at all.
This can't happen to me I have an ai agent in between that translates your GET into uuidv7 library call and runs on a GPU I stole from a kindergartner, there's a delay between calls
Even if the UUID service is real, i don't see how it could keep three devs and a 'database guy' busy for any significant time. This reads like something a junior should be able to whip up in a week max. Even before LLMs...
I'm working in enterprise at a company that's over 150 years old. Until recently we had someone who's job it was to take tickets and update a json file with configuration changes for onboarding related stuff. It took a few hours to automate the process and the team took another 2 days to thoroughly test it. So it doesn't feel crazy.
An api endpoint to take a ticket and another to check your position in the queue with your ticket and another to use your ticket to request your uuid (chosen by fair dice roll) and if you request before your position in the queue is 1 it invalidates and you have to use the ticket endpoint again (back of the line).
But then how do you identify the reservation? Clearly it needs a reservation_id. And since that's an ID, it should obviously be a UUID. So we'll need another service to issue the UUIDs for the reservations to get the real ID.
Yea basically. A good application will usually check that the UUID collides with an existing one eventually. After all, a programmer can make a mistake and reuse such a value unintentionally, and presumably you'd want a few asserts to check for that here or there.
I’ve never seen a probabilistic UUID collision, but I’ve dealt with plenty caused by bad database design… as long as you have a reasonably relational schema and you’re throwing in audit columns for temporal tables, it is pretty easy to find where some edge case is breaking the non enforced relational whatever. Select-district-group by, with a where clause on the created by worker node plus time of creation should let you left join out the new duplicates… maybe. Anyway, most DBs these days just keep chugging is only when the analysts start complaining anything gets fixed T-T
if there is a uuid collision then the insert will fail and the endpoint will error. this is so unlikely that i simply do not care. if it manages to happen, the user can just hit the save button again and get a new uuid i guess.
I'm currently working on monetizing this as an app (mobile lookup), but you can use a REST api to fetch the numbers at $0.5/1000 lookups. It's a high performance IAAS (integers as a service) which will of course help all your LLM and AI integrations.
My brother in Christ. I worked ona version of this where the microservice was a "http-rest-service". Basically a proxy for any REST-call outside the app.
Not because of security, but because making shared imported libraries was forbidden by the architect and they didn't want to duplicate the configuration so that each other microservice could execute the rest calls directly.
I used to work as a part time consultant. One day CTO came to me to double check something. He asked one of the teams to create an oAuth endpoint so that people who are logged into their system can log into another.
He wanted to check because his team of seven quoted him 3 months.
That sounds like experience talking. I've had to deal with a uuid collision about 3 times in 68 billion, which is really frickin annoying when youre running a data warehouse and want to assert the uuid column is unique but can't because you also have to preserve the historical data.
The uuid collision was due to a buggy uuid function in the proprietary database backing the trading system I was working on
Just generating 2 uuids sounds like the least insane way of dealing with collision if your paranoid about it. When we work are the scale we often work at for some of this stuff "one in a couple of billion" doesn't mean it won't happen, it means it eventually WILL happen.
I can believe this. I've only had one big corporate job, but my team of 5 devs, 2 QAs, 1 PM basically looked after about 5 web pages. There were other teams that handled the other pages for the site. The dev department was over 100 people for what would amount to a medium web site.
Usually whenever something sounds this simple they’re doing way more than what’s visible or there are complexities under the hood that only they know of.
Amazon has this team. We had to call this service to generate unique IDs in high frequency that must absolutely be unique. But at a scale of trillions maybe it makes sense?
Weird, I'm pretty sure I've seen this same story before. Because let me tell you, we still maintain a stupid webservice that does exactly the same thing. Apparently it was created in the Before Times, when people didn't know how to generate a GUID and so, many teams developed their pipeline around it and refuse to update their code to make the damn webservice obsolete.
I'm just glad we don't actually do anything to it except keep the service running and publish a monthly list of shame (as if they cared...)
I'm surprised they got away with only having three Engineers on this critical microservice! After all, every service owner has to fill out the GDPR PII audit by next month, and all services have to upgrade to the latest version of their framework and respond to all vulnerability findings within SLA, plus we're kicking off the migration from Statsig to Launch Darkly (yes I know we migrated from launch Darkly into statsig last year but that's besides the point!)
I actually ran into a similar issue, where at an IoT device company, multiple devices managed to generate dozens of identical UUIDs, which I had to run down. In that case it was the generation code that was the problem as it lazily used the the date time as part of generation.
if you need real, guaranteed unique identifiers, that's a solved problem for a long time, not sure why you need to reinvent is with a pseudorandom element. most applications can just use a auto-increment primary key ID. more exotic distributed applications can do what active directory does with SIDs and RIDs
Being devil's advocate here, if this is real, probably the person who wrote it doesn't understand well what the service really does.
I've seen more times than I can count, a junior dev looking into something and saying "wow, this is worthless, why just not simplify this process doing X?", while the real world, the dev didn't understand all the nuances and all the requirements for something to work.
Disregarding the absolute insanity of why you would and shouldn’t do this, you could build this whole microservice and deploy it in hours. Minutes, with Claude code. What possible ongoing maintenance would this need that it’d require 4 full time people?
I mean, I suppose. But man, whoever was in charge of the team and upstream really dropped the ball to the tunes of hundreds of thousands of dollars.
People like to complain that middle management or upper management is useless or a cost center but…. When you’re spending presumably $300k+ a year for… what could be a free UUID package… something has gone horribly wrong and people need to be fired.
Honestly, I'm not too surprised. I recently was working with a data engineer, who's job was to write an ETL pipeline to push records into the system. There were some quirks because of which he would have to generate GUIDs manually, rather then rely on the system to generate them. He didn't know that he can safely generate new GUIDs and don't worry about them being unique. Spent whole day thinking about the architecture of ensuring that GUIDs were not used before. Senior data engineer with several years of experience in modelling data...
Sometimes I wonder why I even bother continuing to work fullstack on a team of 4 with ownership over the ENTIRE customer ecosystem with a customer base of ~500k when I could just try and find a job like this and probably make more money... And I bet it's fully remote too
UUIDs are *really* long and in practice impossible to have duplicates of, even if you generate thousands of them every second over several years. Also, the whole point of UUID is so hundreds of clients won’t have to check the same database for collisions every time a new one is created.
Having three dedicated engineers to watch this is like having a crisis team ready in case you get struck by lightning, hit by a meteorite, run over by a car, attacked by a wild animal, get set on fire and end up starving. At the same time.
There are multiple layers to this. Firstly, as mentioned, UUIDs are large random numbers. The whole point of them is that you do not need to coordinate between two users to avoid collision. Secondly, even if you decide to have a centralised UUID service (which you should not), it is not a job for three engineers. It is an API endpoint and a single-column database. Lastly, if you want a centralised ID service (which might be a reasonable requirement), you can build it with under 100 lines of code in Go in an afternoon and guarantee no collisions ever. No database required.
48
u/StrengthTheory Jul 20 '26
Where do I find jobs like this?
1.2k
u/ZunoJ Jul 20 '26
Imagine the sense of worthlessness you would have to deal with when you work on a team like this
790
u/SleeperAwakened Jul 20 '26
An entire team can be replaced with UUIDv7
172
u/Muckenbatscher Jul 20 '26
Even if the UUID service is real, i don't see how it could keep three devs and a 'database guy' busy for any significant time.
This reads like something a junior should be able to whip up in a week max. Even before LLMs...
183
u/BetaChunks Jul 20 '26
Genuine question, if there does happen to be a UUID collision in a database, do you just... try again and make another?
209
u/TeBp242 Jul 20 '26
no way this is real
23
u/_scotswolfie Jul 20 '26
Now, is the key in that database an integer or do they generate an UUID for each row? And if they do, do they call this service to get one? 😂
23
u/budapest_god Jul 20 '26
This is like the opposite of laying off people to replace with AI
8
u/Percolator2020 Jul 20 '26
Did you make sure to include your TPS cover sheet with your UUID request form?
7
u/LeDYoM Jul 20 '26
- And every 2 weeks, purge the DDBB
- Why?
- We dont want the queries to be too slow...
6
u/TheWaxMann Jul 20 '26
I can believe this. I've only had one big corporate job, but my team of 5 devs, 2 QAs, 1 PM basically looked after about 5 web pages. There were other teams that handled the other pages for the site. The dev department was over 100 people for what would amount to a medium web site.
11
u/United_Discussion962 Jul 20 '26
such projects usually created to justify the jobs of near and dear ones
5
u/dgreenmachine Jul 20 '26
Do you think they have metrics for how often they had a collision?
5
u/valleyman86 Jul 20 '26
They should have analytics that tells them how many collisions they had.
5
u/EncryptedPlays Jul 20 '26
UAAS
UUID as a service
3
u/SpecialExact8165 Jul 20 '26
I see someone else is lurking on HN
3
u/youllmeltmorefan Jul 20 '26
Nice work if you can get it.
2
u/Old_Pomegranate_822 Jul 20 '26
Immediate first conversation would be “how many clashes have they prevented?”
(I have heard of a guid clash, but on an embedded system shortly after boot before it had been able to get the correct time)
2
u/cheaphomemadeacid Jul 20 '26
so i suppose noone can imagine the value of "this uuid is used by project x app y"? :)
2
u/Used_Pea_2950 Jul 20 '26
Usually whenever something sounds this simple they’re doing way more than what’s visible or there are complexities under the hood that only they know of.
2
u/TornadoFS Jul 20 '26
I mean, if this was one of the earlier versions of UUID...
2
u/messedupwindows123 Jul 20 '26
what's shockig is the idea that there's a team with a clear mandate
2
u/ShAped_Ink Jul 21 '26
Can't they just use uuid with time as an argument?
2
u/cmgriffing Jul 22 '26
You dont know Galactus's pain
3
u/Small_Biscotti_1311 Jul 20 '26
TheDailyWTF wants its fake story back.
1
u/waterpoweredmonkey Jul 20 '26
That team and the engineers who thought that was a effective use of resources would be cut immediately in any sane org.
1
u/Undernown Jul 20 '26
Wow, think I learned the single line of code to do this entire team's job in year 2 of college.
1
u/SamSlate Jul 20 '26
thank god it's kanban so they don't get in each others way
please show me that board
1
u/FrancisBitter Jul 20 '26
I thought the twist would be that the team was writing UUIDs by hand.
1
u/random314 Jul 20 '26
Amazon has this team. We had to call this service to generate unique IDs in high frequency that must absolutely be unique. But at a scale of trillions maybe it makes sense?
1
u/fibojoly Jul 20 '26
Weird, I'm pretty sure I've seen this same story before. Because let me tell you, we still maintain a stupid webservice that does exactly the same thing. Apparently it was created in the Before Times, when people didn't know how to generate a GUID and so, many teams developed their pipeline around it and refuse to update their code to make the damn webservice obsolete.
I'm just glad we don't actually do anything to it except keep the service running and publish a monthly list of shame (as if they cared...)
1
u/SowiesoGeenJoost Jul 20 '26
Startup -> Maybe 200 devs??
1
u/jpasserby Jul 20 '26
I'm surprised they got away with only having three Engineers on this critical microservice! After all, every service owner has to fill out the GDPR PII audit by next month, and all services have to upgrade to the latest version of their framework and respond to all vulnerability findings within SLA, plus we're kicking off the migration from Statsig to Launch Darkly (yes I know we migrated from launch Darkly into statsig last year but that's besides the point!)
1
u/ContentRecording9304 Jul 20 '26
I actually ran into a similar issue, where at an IoT device company, multiple devices managed to generate dozens of identical UUIDs, which I had to run down. In that case it was the generation code that was the problem as it lazily used the the date time as part of generation.
1
u/StephenRoylance Jul 20 '26
if you need real, guaranteed unique identifiers, that's a solved problem for a long time, not sure why you need to reinvent is with a pseudorandom element. most applications can just use a auto-increment primary key ID. more exotic distributed applications can do what active directory does with SIDs and RIDs
1
u/nsjr Jul 20 '26
Being devil's advocate here, if this is real, probably the person who wrote it doesn't understand well what the service really does.
I've seen more times than I can count, a junior dev looking into something and saying "wow, this is worthless, why just not simplify this process doing X?", while the real world, the dev didn't understand all the nuances and all the requirements for something to work.
Dunning-krueger basically
1
u/zerkeras Jul 20 '26
Disregarding the absolute insanity of why you would and shouldn’t do this, you could build this whole microservice and deploy it in hours. Minutes, with Claude code. What possible ongoing maintenance would this need that it’d require 4 full time people?
1
u/ctremblay2 Jul 21 '26
😄😄😄
1
u/Aggravating-Hair-534 Jul 22 '26
Honestly, I'm not too surprised. I recently was working with a data engineer, who's job was to write an ETL pipeline to push records into the system. There were some quirks because of which he would have to generate GUIDs manually, rather then rely on the system to generate them. He didn't know that he can safely generate new GUIDs and don't worry about them being unique. Spent whole day thinking about the architecture of ensuring that GUIDs were not used before. Senior data engineer with several years of experience in modelling data...
1
u/Deanathan100 Jul 23 '26
Sometimes I wonder why I even bother continuing to work fullstack on a team of 4 with ownership over the ENTIRE customer ecosystem with a customer base of ~500k when I could just try and find a job like this and probably make more money... And I bet it's fully remote too
1
u/knightenrichman Jul 20 '26
Someone ELI5?
I'm computer competent but I don't get this story.
0
u/lardgsus Jul 20 '26
Autoincrement is unhappy.
0
u/jayerp Jul 20 '26
Job security, until it isn’t.
I would find whoever approved that and fire them immediately.
77
u/[deleted] Jul 20 '26
[removed] — view removed comment