Reputation: 79
I am using NSB3.2.2 and facing a problem in setting up distributors. I have one publisher and two load balanced workers.
The workflow is like this:
Now the question is where should Service2 worker reply go?
I observe that sometimes it’s going to Service1 distributor input queue and sometimes going to Service1 worker input queue
I want Service2 worker Bus.Reply() to send message to Service1 worker input queue. What should be the configuration to achieve that?
Upvotes: 0
Views: 219
Reputation: 167
You can have a look at the following sample, it demonstrates one way to configure the Distributors the way you want:
https://github.com/shlomii/NServiceBus-Scale-Out-Sample-set-up-for-Publish-Send-Reply-environment
Upvotes: 0
Reputation: 12057
Replies go back to the distributor in all cases - that's how it's supposed to work. If you are concerned about which server replies go back to, you might have some in-memory state that should be distributed as well, like with a distributed cache.
Upvotes: 1