Preferred way of hosting NServiceBus Bridge endpoint



Anyone know the preferred way of hosting a bridge endpoint (based on NServiceBus.Bridge)? I kind of want to do it as a Windows service. For normal NSB endpoints I use NServiceBus.Host, but it doesn’t really seem to fit for a bridge endpoint. So do I just create a regular Windows service (as in not NServiceBus.Host), and is there anything I should be aware of in this case?

(Andreas Öhlund) #2

Yes self hosting in a Windows Service is what we recommend.

We also provide a dotnet new template to make this even easier

Going forwards we recommend this approach for business endpoints as well as we’re slowly deprecating the NServiceBus host, see for more details




Aha, I see. Thank you very much.
Especially the last point was interesting to learn.