Preferred way of hosting NServiceBus Bridge endpoint

nservicebus

#1

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.

https://docs.particular.net/nservicebus/hosting/windows-service

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

https://docs.particular.net/nservicebus/dotnet-templates#nservicebus-windows-service

Going forwards we recommend this approach for business endpoints as well as we’re slowly deprecating the NServiceBus host, see https://docs.particular.net/nservicebus/upgrades/host-7to8 for more details

Cheers,

Andreas


#3

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