@greghogg5: A Universally Unique Identifier (UUID) is a 128-bit label used to identify information in a system. It allows independent systems to create unique identifiers without needing a central authority or a shared database to coordinate them. Traditional database IDs are sequential integers (1, 2, 3). These require a central server to increment the number to ensure uniqueness. UUIDs are generated locally by the application itself. The statistical probability of two independent systems generating the same UUID is so low that it is effectively zero. Why We Use Them Distributed Systems: You can generate IDs across multiple servers in different locations. They will never collide. This is necessary for scaling applications horizontally. Security: Sequential IDs expose your data volume. If a user sees a URL with user/100, they know exactly how many users you have. They can also guess valid IDs by simply changing the number. UUIDs are random and impossible to predict, which hides the total count and protects against ID enumeration attacks. Database Merging: You can merge datasets from different sources without worrying about conflicting primary keys. Every record retains its unique identity.

Greg Hogg
Greg Hogg
Open In TikTok:
Region: CA
Sunday 03 May 2026 16:02:01 GMT
92070
3770
68
93

Music

Download

Comments

jesse_ph
Jesse PH :
does frontend also need to implement uuid? or backend only?
2026-06-25 00:10:44
0
michaellanman
Mike L :
just because it's extremely unlikely to generate an already exists UUID, doesn't mean I'm not gonna check every time
2026-05-03 21:25:56
116
adadforyou
ADadForYou :
logically I know they have basically no cost to create and an absolutely massive collision space. emotionally I feel bad "wasting" guids in dev
2026-05-03 17:06:14
94
bickaa80l2
Bickaa80l2 :
What would happen if you did happen to make one that already existed? Is there a way to check?
2026-05-04 21:19:20
0
hueytalks
HueyTalks :
you provided a theoretical number. in practice, the number generator is unlikely to be capable and will in fact produce duplicates
2026-05-03 22:45:46
4
archenovalis
Archelaus Novalis :
128 is meh. I like 64. but not random, random isn't cache friendly and doesn't store any relevant information about its owner
2026-05-04 23:27:15
0
d.chiu
d.chiu :
1/1^38 is still not 0
2026-05-03 21:28:51
11
roguethumb
eddie :
1b uuid’s per second seems like a massive underestimation though
2026-05-04 23:03:31
1
iseneff2.0
iseneff2.0 :
I understand and I avoid it
2026-06-30 01:05:28
1
altcontrolstart
alt+control+start :
ah so that's it first time actually knowing about this term despite me seeing it for the last 10 years 😁 infotechmentor.com
2026-05-03 21:01:48
0
ctrlaltdelicious29
CtrlAltDelicious :
No such thing as a random number on a computer. My concern is that rng may create a collision at some point due to the pseudo randomness.
2026-05-04 02:16:06
0
froschi895
froschi895 :
my jaw dropped when a collegue of mine didnt like UUID because its chance to collide was not 0... yeah you know what? you phasing through a wall because of atom alignment is also not 0!! how often did that happen? you still live without fear of falling through the ground...
2026-05-04 06:08:59
3
user756864269
user756864269 :
uuid stands for ultimate united international defence
2026-05-04 18:53:05
0
oglassdev
ampere’s dad :
Also some types of uuids carry a timestamp
2026-05-04 20:31:11
1
ilikehoodieweather
x :
well some of uuid generation uses the current system time which means the collision rate is lower as long as you have consistent generation over time
2026-05-03 23:00:10
1
jayars_au
jayars 🇦🇺 :
what about uuud v7? how does it compare?
2026-06-25 05:25:51
0
anders8784
Anders :
There are different versions and restrictions in these, so not all 128 bits are available. Sorry for being that guy
2026-05-04 14:20:06
2
theweirdonefromwa
andyhe :
I think there are some operating systems that use part of the NIC mac address in the guid which can be used to figure out which system generated it
2026-05-04 01:32:12
0
robertcath1
allezz_juve :
Incrementing is faster
2026-06-27 04:44:38
0
spinnexus
SpinNexus :
uuids are not created equally
2026-07-18 23:22:26
0
tarzanboy319
MidnightVibes :
so there is still a chance 🤔
2026-07-18 19:02:50
0
ssnezzyyy
Banana :
nice info but we as a user just need the most unique id
2026-06-16 17:09:01
0
ptnbgr
Ptnbgr :
Not just that. But the chance of you handcrafting one single valid UUID yourself. Is almost impossible
2026-05-04 02:15:39
0
oscardariomalagon
oscar.malagon :
Now TSID😁
2026-07-17 01:18:48
0
To see more videos from user @greghogg5, please go to the Tikwm homepage.

Other Videos


About