Nishant
Nishant

Reputation: 437

Recommended way for implementing request response using Azure Service Bus Queue

I wanted to get response from a worker role. To facilitate that I thought of using service bus where one worker role post message on a request queue read by other worker role which process it and post the message into the response queue read by the caller.

I read few blogs and find out that session Id is one of the way to achieve this. I am wondering if session id is recommended way as we need to create unique sessionId for each request. Will using unique session id per request have any performance overhead?

Is there any recommended way to achieve request-response in service bus.

Upvotes: 2

Views: 950

Answers (1)

Thiago Custodio
Thiago Custodio

Reputation: 18362

You basically want to correlate the messages, and using the Session Id is the most common way to achieve that.

Upvotes: 1

Related Questions