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

Added UuidUtils add method. #43

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Added UuidUtils add method. #43

merged 2 commits into from
Nov 29, 2023

Conversation

onukristo
Copy link
Contributor

@onukristo onukristo commented Nov 29, 2023

Context

Added UuidUtils add method to add a constant to an UUID.

This would easily allow services to branch out UUIDs.

Checklist

@onukristo onukristo requested a review from a team as a code owner November 29, 2023 08:56
Copy link

@xSeagullx xSeagullx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a javadoc on the method would be great, along with an intended use and a warning.

If two services decide to "branch out" same way, then their UUID will be equal, removing one of the qualities of UUID (being globally unique).
So we can have issues if that UUID is then used in a globally unique setting (as a trace id) or in the same local context (e.g. two services branch out of single UUID to do an operation on the transfer using that UUID as an idempotency key)

@onukristo onukristo merged commit e5fcab4 into master Nov 29, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants