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

Feature Request: UUIDv7 Generation Function #3778

Open
1 task done
ashwingopalsamy opened this issue Jan 10, 2025 · 0 comments
Open
1 task done

Feature Request: UUIDv7 Generation Function #3778

ashwingopalsamy opened this issue Jan 10, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@ashwingopalsamy
Copy link

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

This issue proposes adding support for generating UUIDv7, as defined in the updated RFC for UUIDs.

UUIDv7 offers a compelling combination of time-based generation (using a Unix Epoch timestamp) and random bits, resulting in unique, naturally sortable identifiers. This makes it particularly well-suited for distributed systems where ordering is crucial, such as databases, event logs and tracing.

Given its growing adoption and clear advantages in specific use cases, implementing UUIDv7 generation would enhance the library's utility.

Mockups or Images of the feature

uuidv7(); // Generates a UUIDv7 string, e.g., 01945109-f228-7a5d-ac8a-224ecb6dbb65

Reference Links:

  1. RFC Specification - UUIDv7
  2. Why does UUIDv7 matter?
@ashwingopalsamy ashwingopalsamy added the enhancement New feature or request label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant