Does Rhino Service Bus handle individual User responses?

309 views Asked by At

I'm trying out Rhino Service Bus from an ASP.NET MVC client and not sure if it has a built in facility for User responses. In the Alexandria smart client example IServiceBus.Reply will work naturally as each user will have a different IP for their local queue. (Although what happens if their connection drops out momentarily..?)

For a web site with similar functionality though, do I need to construct a response queue for every User? So part of the queue name might include the UserId and that way Reply will go back to the right place? Can they share the same port and just differ in URL?

2

There are 2 answers

3
Corey Kaylor On

It is much more ideal to have a correlation id rather than separate queues for each user.

Your question about "user" responses, no it doesn't have anything built in. Typically you can achieve this with something like long polling.

0
Idle Mach On

I guess I was looking for this but didn't know it at the time:

http://ayende.com/blog/140289/setting-up-a-rhino-service-bus-application-part-iindash-one-way-bus

Although having trouble getting the Sagas to receive a second message, wonder if it's because IOnewayBus doesn't publish as the Saga example seems to use Publish instead of Send, but I'm probably just using it wrong. CorrelationIds match though.