What is a UUID? UUID vs. GUID

preview_player
Показать описание
A Universal Unique Identifier, or UUID, is a 128-bit value used to uniquely identify almost anything imaginable on the internet -- from databases, to system instances, to anything else. A UUID is almost guaranteed to be unique from any other UUID now and until forever -- well, until at least the year 3400. Most UUIDs used today are Variant 1 UUIDs.

🔎 Read more:

------------------------------------------------------------------------------

------------------------------------------------------------------------------

Follow Eye on Tech:

#UUID #GUID #EyeOnTech
Рекомендации по теме
Комментарии
Автор

Good explanation of the different UUID versions! It's helpful to understand the trade-offs between randomness, time-based generation, and potential collision risks when choosing the right one for a project.

MarySmith-im
Автор

UUID V4 --> generates random UUID 128 bit based on some algo, chances pf collision is less, given the permutations. so if there are 5000 records in a table lets say uuid column is primary key and index, then we need to do fast search(index) using the column for duplicate and if no duplication allow .Math.pow(2, 128) uuid can be generated .

iamnoob
Автор

1:25 Hexadecimal? I see that there are letters in the example outside the hexadecimal range.

lukasztomaszek
Автор

TimeUUIDs have examples of applications where collisions are not negligible

pm
Автор

Thanks for this explanation. I prefer UUID v4 because of the anonimity.

sansparamore
Автор

Use V4, it will provide you with the much needed anonymity, that's a pro .
Of course, the con is the probability of collisions happening, but, one way of mitigating this, is on server side, whenever we generate a uuid we just search an array containing all uuid generated, and we filter() or some() to do basic checking if it exists then we can push it in the array then send it to the client .
Which is a good approach but will be costly in time n space, so we can use instead a Set() and each time we generate a uuid before we push it directly, we just check the set length, then we add() the uuid to the set, then recheck the length, if it's same to previous, it means the uuid exists, that means we need to regenerate it, if the length is +1, it means it's not taken and we can safely use our V4 uuid without even worrying about collisions, this second technique will result in better performance, and better big O .

codewithclarks-en
Автор

1:27 my eyes are twitching... THOSE ARE NOT HEXADECIMAL DIGITS

PanduPoluan
Автор

What happens if a collision occurs though

thotarojoestar
Автор

cant wait for y3.4k
assuming we live that long

Professor_Bugs
Автор

Thanks for the video, just one question. Is there any way to discern the date and time using a UUID?

ramens
Автор

You say there are variant 0 through 2, then proceed to explain version 4. What gives?

bicunisa
Автор

The authors of the video don't know what they're talking about.

epsoteps
Автор

If i share my pc system uuid(Wmic csproduct get uuid) then my pc can be hack?

adsboosters
Автор

i am genrate UUID using python with following syntax csproduct get It generated like . Please explain me how this combination generated and also it is unique? How it is generate automatically ?

mohammedasharudeen