Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poco::UUID/UUIDGenerator: add support for Version 7 UUIDs #4580

Open
obiltschnig opened this issue Jun 11, 2024 · 0 comments
Open

Poco::UUID/UUIDGenerator: add support for Version 7 UUIDs #4580

obiltschnig opened this issue Jun 11, 2024 · 0 comments
Assignees
Labels

Comments

@obiltschnig
Copy link
Member

obiltschnig commented Jun 11, 2024

Version 7 UUIDs (UUIDv7) are designed for keys in high-load databases and distributed systems.
UUIDv7 begins with a 48 bit big-endian Unix Epoch timestamp with approximately millisecond granularity. The timestamp can be shifted by any time shift value. Directly after the timestamp follows the version nibble, that must have a value of 7. The variant bits have to be 10x. Remaining 74 bits are random seeded counter (optional, at least 12 bits but no longer than 42 bits) and random.

https://uuid.ramsey.dev/en/stable/rfc4122/version7.html

@obiltschnig obiltschnig added this to the Release 1.14.0 milestone Jun 11, 2024
@obiltschnig obiltschnig self-assigned this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant