this post was submitted on 23 Mar 2025
145 points (98.0% liked)

Internet is Beautiful

1698 readers
25 users here now

Welcome to Internet is Beautiful Lemmy and Mbin community.

Find a cool or useful website on the internet. Share it here so others Lemmings can bookmark it too.


Rules

Related Communities

founded 5 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Hairyfishnuts@sh.itjust.works 4 points 1 week ago (1 children)

Splain Lucy. What's the use case for these, please? Tried looking it up myself but still not sure. Thanks in advance.

[–] Irelephant@lemm.ee 4 points 6 days ago (1 children)

A uuid is something that can be used as an id (identifier). It stands for Univerally Unique Identifier. This has a list of all of them, because it generates every valid one.

[–] Hairyfishnuts@sh.itjust.works 5 points 6 days ago (3 children)

I did learn what it stood for in my travels. I wish to know the use cases for such things. Eli5 if posssible, please.

[–] StaticFlow@feddit.uk 5 points 6 days ago

In applications it was very common to use an auto incrementing number for id's. So one account would have id of one, then the next two, etc... This can cause problems if there is an unautheticated api endpoint which returns user info given an ID value, someone could just put in all the Id's counting up from one to find out all the records in the database. UUID's are a way of obscuring that, making it pretty hard to enumerate all records if they cant count up in an orderly fashion. It's also useful in distributed systems, the many instances of a running service could generate an ID value on each server instance before recording the value in the the database, there is a low chance of ID collisions.

[–] letsgo@lemm.ee 3 points 6 days ago

One use is in URL identifiers. If my account number is 47, for example, I could reasonably guess that accounts 1-46 exist and potentially look at other customers' data.

But if it uses a UUID instead then it's a lot harder to do that.

[–] Irelephant@lemm.ee 3 points 6 days ago

They are used as ids, like a post id or a user id in technology.