TIL: Versions of UUID and when to use them

The author delves into the different versions of UUIDs, providing insights on their generation and recommended use cases. While many may default to using v4 for random IDs, the author suggests considering v7 for IDs needing to be sorted, such as database keys. Surprisingly, v7 is noted as an improvement on v1 and v6, implying they may not be the best choices. V2 is shrouded in mystery as it is reserved for unspecified security purposes. V3 is overshadowed by v5, which uses a stronger hash. Ultimately, the author encourages sharing the post if found enjoyable or useful and offers ways to stay updated or support their work.

https://ntietz.com/blog/til-uses-for-the-different-uuid-versions/

To top