Skip to content

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

Merged
johnsimons merged 1 commit into
masterfrom
john/comboguid
Sep 2, 2026
Merged

Replace CombGuid with Guid.CreateVersion7 for message ID generation#5839
johnsimons merged 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
@johnsimons
johnsimons merged commit e18e946 into master Sep 2, 2026
36 checks passed
@johnsimons
johnsimons deleted the john/comboguid branch September 2, 2026 05:13
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.

2 participants