Skip to content

Replace CombGuid with Guid.CreateVersion7 for message ID generation - #5839

Open
johnsimons wants to merge 1 commit into
masterfrom
john/comboguid
Open

Replace CombGuid with Guid.CreateVersion7 for message ID generation#5839
johnsimons wants to merge 1 commit into
masterfrom
john/comboguid

Conversation

@johnsimons

Copy link
Copy Markdown
Member

UUIDv7 is time-ordered and monotonically increasing, providing the same database-friendly ordering properties as the COMB algorithm without requiring a custom implementation. This removes the locally maintained CombGuid class in favour of the built-in .NET API.

UUIDv7 is time-ordered and monotonically increasing, providing the same database-friendly ordering properties as the COMB algorithm without requiring a custom implementation. This removes the locally maintained CombGuid class in favour of the built-in .NET API.
@johnsimons johnsimons self-assigned this Sep 1, 2026
var messageId = Guid.CreateVersion7().ToString("D");
var headers = HeaderFilter.RemoveErrorMessageHeaders(message.NewHeaders);
corruptedReplyToHeaderStrategy.FixCorruptedReplyToHeader(headers);
headers[Headers.MessageId] = Guid.NewGuid().ToString("D");

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I also updated this, which was wrong!

@johnsimons
johnsimons enabled auto-merge September 1, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant