Skip to content

[WIP] Support for Azure Service Bus Sessions - #8408

Closed
poornimanayar wants to merge 3 commits into
masterfrom
asb-ordered-delivery
Closed

poornimanayar wants to merge 3 commits into
masterfrom
asb-ordered-delivery

Conversation

@poornimanayar

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale Pull request has had no activity for 30 days. label Aug 15, 2026
@github-actions github-actions Bot closed this Aug 22, 2026
@tamararivera
tamararivera deleted the asb-ordered-delivery branch September 23, 2026 01:00
@poornimanayar
poornimanayar restored the asb-ordered-delivery branch October 15, 2026 11:38
@poornimanayar poornimanayar reopened this Oct 15, 2026
@github-actions github-actions Bot removed the stale Pull request has had no activity for 30 days. label Oct 15, 2026

@SzymonPobiega SzymonPobiega left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Added some minor comments

Comment on lines +30 to +31
var transport = new AzureServiceBusTransport(connectionString, topology) { Ena
bleSessions = true };

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
var transport = new AzureServiceBusTransport(connectionString, topology) { Ena
bleSessions = true };
var transport = new AzureServiceBusTransport(connectionString, topology) { EnableSessions = true };


To enable ordered processing of messages, sessions must be enabled on the receiving endpoint.

Messages that must be processed in order must also have a `SessionId` specified. The `SessionId` can be set using the `SetSessionId` extension method on `SendOptions`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
Messages that must be processed in order must also have a `SessionId` specified. The `SessionId` can be set using the `SetSessionId` extension method on `SendOptions`.
Messages that must be processed in order must also have a `SessionId` specified. The `SessionId` can be set using the `SetSessionId` extension method on `SendOptions` and `ReplyOptions`.


## Error messages

When immediate retries are exhausted, messages are moved into the error queue. This can break the processing order. Retrying a message from the error queue or the DLQ does not guarantee that the message will be enqueued in its original position before it was moved to the error queue.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
When immediate retries are exhausted, messages are moved into the error queue. This can break the processing order. Retrying a message from the error queue or the DLQ does not guarantee that the message will be enqueued in its original position before it was moved to the error queue.
When immediate retries are exhausted, messages are moved into the error queue. This can break the processing order. Retrying a message from the error queue or the dead-letter queue (DLQ) does not guarantee that the message will be enqueued in its original position before it was moved to the error queue.

@poornimanayar

Copy link
Copy Markdown
Contributor Author

Closed in favour of #8569

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