16 Comments

We’ve seen before how the NServiceBus distributor can delegate the messages to its workers. But here’s couple interesting questions:

  • Can the worker reply back to the client?
  • Doesn’t the distributor become a bottleneck if it has to deliver the messages from the client to the workers and back?

And here are the answers: Yes. Not so much.

1. How to reply from a worker to the client when NServiceBus distributor is in use?

You can reply to the client using the basic Bus.Return and Bus.Reply-messages. It doesn’t matter that the distributor is used because NServiceBus will route the reply to the correct place.

2. Why doesn’t the distributor become a bottleneck if it’s delivering messages back and forth?

Even though the distributor is required to deliver the message from the client to a worker, it is not usedwhen a worker replies to the client. Instead, the worker sends the reply directly to the client’s input queue.

We can use this information to finish our NServiceBus distributor’s architecture sketch from “Using NServiceBus distributor”.

distributor_2 

This means that your distributor can be down and still the worker can deliver the reply to the calling client.

Comments

Comment by youth soccer team jerseys

youth soccer team jerseys...

wow!this is so nice,i like it very much!This link is more suitable for me and Very Wonderful, I think it is very Meaning!...

Comment by louis vuitton square sunglasses

louis vuitton square sunglasses...

wow!this is so nice,i like it very much!This link is more suitable for me and Very Wonderful, I think it is very Meaning!...

Comment by link vao dafabet

link vao dafabet...

You expressed it terrifically....

Comment by gay

gay...

I truly do enjoy writing but it just seems like the first 10 to 15 minutes tend to be lost just trying to figure out how to begin. Any suggestions or hints? Thank you!...

Comment by adolfo896: Making environments of chance is what you wish to do

adolfo896: Making environments of chance is what you wish to do...

Wonderful work! This is the kind of information that are supposed to be shared around the net. Disgrace on the seek engines for now not positioning this submit higher! Come on over and talk over with my website . Thank you =)...