I need to generate and store a identifier per row in a distributed database (high write throughput). There are constraints on length of the Id, preferring it to be as small as possible. Id must be in a utf8.
I was considering generating a uuidv4, converting to base16 encoding, removing the hyphens and taking a partial subset of characters, and in the future if we need more characters we take a larger partial subset.
e.g. Uuid = 123e4567-e89b-12d3-a456-426655440000
Subset = 123e4567e89b
Are there foreseeable issues with this?