NServicebus hosted in the IIS vs Windows service
source link: https://www.codesd.com/item/nservicebus-hosted-in-the-iis-vs-windows-service.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
NServicebus hosted in the IIS vs Windows service
I am hosting a handler inside of a IIS web application. Is this a good solution ? Or Should I Hosting a handler in windows service application ? Which solution is better? What is recommended and what is more performance ?
I use SqlTransport in my configuration.
There are many factors that can effect how you choose to host your endpoint(s). For example
- How you want to scale your site / handlers
- What permissions can be granted to your web site process
- How an IIS reset can effect your handling code
But in general... Host the bus in both the Web Application and a Windows service.
The web application handles incoming http requests, translates those requests to messages and places them on the bus via a Send.
The Windows service takes message off the bus and does the actual handling/business processing.
Some useful links that may guide you to the best solution for you circumstance
Related Articles
What is the relationship between Windows services and the .Net Framework?
What development tools support the creation of Windows Services?
Please criticize the proposed architecture: Windows service to analyze incoming e-mails to the asp.net database
When to use the WCF service and the old simple Windows service?
How to detect that a process starts with the C # code [Windows service]
Change the status of Windows services in c / c ++
Manage the ASP.NET Windows service from a web application (browser)
Does the installation of Windows Service on a specific computer fail?
The configuration of Windows Service Bus 1.1 hangs
How to monitor the output of Windows service text
create the installation for Windows service c #
How to find the path of Windows Service exe
Security error when debugging the IIS Express Web service / Silverlight application
The IIS 8 FTP service ignores the defined port range
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK