PurpleGreen
PurpleGreen

Reputation: 53

How do you force ordering of messages in an Azure Service Bus queue or topic?

Is there already a native solution?

Upvotes: 2

Views: 3464

Answers (1)

Sean Feldman
Sean Feldman

Reputation: 26057

See Service Bus message sessions. For the Azure.Messaging.ServiceBus SDK, here's an example.

The blanket statement about avoiding ordered messaging is not wrong in general, but there are scenarios were order must be guaranteed. Message sessions is a native ASB feature providing that.

Upvotes: 6

Related Questions