tc39 / proposal-uuid

UUID proposal for ECMAScript (Stage 1)
463 stars 7 forks source link

Use cases for UUIDs (v4 and other) #30

Open ctavan opened 5 years ago

ctavan commented 5 years ago

A collection of real-world use cases of UUIDs other than random v4 UUIDs:

Google Cloud Spanner explicitly advises NOT to use v1 UUIDs: https://cloud.google.com/spanner/docs/schema-and-data-model#choosing_a_primary_key

Use a Universally Unique Identifier (UUID). Version 4 UUID is recommended, because it uses random values in the high-order bits. Don't use a UUID algorithm (such as version 1 UUID) that stores the timestamp in the high order bits.