Question

I'm developing a web application subscribing to NServiceBus events being published by a backend application. With one worker process this works as expected, but with multiple IIS worker processes on the same IIS server, only one process receives the events. I suppose this is due to all worker processes sharing the same input queue and therefore "stealing" events from each other. My question therefore is how to ensure that the event handlers in every worker process receive the events they have subscribed to?

While generating input queue names dynamically would solve the problem, it would soon leave a lot of unused queues around the system.

This sounds like a pretty common problem and so should have a common solution?

ANy feedback would be appreciated

/Magnus

Was it helpful?

Solution

Unfortunately NServiceBus does not support web gardens.

We will consider adding support for web gardens in the future, based on user demand. We suggest for the mean time to consider virtualization as a scale out solution instead.

I have raised an issue, see https://github.com/Particular/NServiceBus/issues/2015, please consider adding extra comments to the issue.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top