I have a Service Bus Queue with several sessions, that I use as way to enforce order per entity.
And I need a worker role to read messages from this Queue, and read messages from any session, in a way that when it's reading a message from a session no other instance of this role will get messages from that session.
What would be the best way to consume those, using a MessageSessionClass
or having doing the AcceptMessageSessionAsync
and OnMessageAsync(messagehandler)
?
Having a hard time understanding which method would fit better in a worker role.