Support for Azure Service Bus Message Sessions?

Based on the documentation for the Azure Service Bus transport it doesn’t appear that NServiceBus has support for message sessions. I understand that concurrency and out of order message delivery is something that developers should take into account, but when an underlying transport has an elegant solution to a common problem, it would be nice to be able to tap into it. Is there a plan to support this feature in the future? or perhaps it is already supported and I just haven’t found the documentation or it?

Thanks, Craig F.

Hi Craig,

You’re correct. The transport does not support sessions or ordered message delivering. Ordered messaging is always tricky. There’s a good blog post about it, You don’t need ordered delivery, I recommend to look at. When you need to handle out of order messages, NServiceBus offers that option with Saga feature. There’s a nice tutorial on the topic that can be of help.

Hope that helps.

Sean -

It appeared to me that, when using “EnableInstallers,” an endpoint, NServiceBus creates Azure Service Bus queue with the Azure Service Bus feature “Enforce Messaging Ordering” set to true. I thought this based on looking at the queue in Service Bus Explorer:

However - there is no mention of an ordering setting like this when viewing the queue in Azure Portal:

I can find no reference to explicit message ordering in the Microsoft documentation for Azure Service Bus.

Is the Service Bus Explorer UI feature something left over from some earlier version of ASB? Does it have any meaning and should I be concerned about the setting?

Thanks - jlo

Hi Jeff,

SupportOrdering has no influence on the queues. It’s intended for topics more than anything else. Unlike Message Sessions, this is a technical detail of the broker. On the Premium this value is ignored.

Hi Craig,

Please check your email to see if a call would be more helpful.

Thank you,
Sean Feldman