7

NServicebus hosted in the IIS vs Windows service

 2 years ago
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.
neoserver,ios ssh client

NServicebus hosted in the IIS vs Windows service

advertisements

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?

I've studied Windows Services and .Net framework. From my research, a windows service is a type of application that is primarily used to run in background and can be done automatically or periodically. And .Net is a software framework developed by Mi

What development tools support the creation of Windows Services?

Aside from ActiveState's PerlSvc, what other interpreters and compilers support the development of Windows Services?How about Visual Studio .Net? Simple Windows Service Sample Introduction to Windows Service Applications

Please criticize the proposed architecture: Windows service to analyze incoming e-mails to the asp.net database

I have an existing asp.net c# application for which I'd like to implement a feature that allows users to post content via email. A user would send an email to a designated address and the system would parse the email and create database entries using

When to use the WCF service and the old simple Windows service?

We are developing an application that needs to be executing on a periodical basis (e.g. daily, or weekly depending on config). This application needs to consume existing WCF Services but this application itself does not expose any methods for others

How to detect that a process starts with the C # code [Windows service]

I am trying to design a windows-service which monitors a process namely "Gtalk", if the process is started then, the browser Internet-explorer (process iexplore) should be closed. This should happen only when the process "Gtalk" is sta

Change the status of Windows services in c / c ++

How can i change current state of a windows service from a C/C++ program ?? for example say, Mysql is running as a service and its current status is 'Started'... how can I check the status and how can i change its status from a c/c++ program? like if

Manage the ASP.NET Windows service from a web application (browser)

I have number of windows service (around 10) all are developed in ASP.NET C#. And are installed on Windows Web Server 2008. If I wanted to start or stop the service I have to log in to the Windows Web Server and then Start/Stop the service. I wanted

Does the installation of Windows Service on a specific computer fail?

I have a Windows Service that is installed with the following code(bat file) : @ECHO OFF REM The following directory is for .NET 4.0 set DOTNETFX2=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319 set PATH=%PATH%;%DOTNETFX2% echo Installing IEPPAMS Win

The configuration of Windows Service Bus 1.1 hangs

Trying to configure Windows Service Bus on a Windows Server 2012 R2 Essentials. Both the Wizard and power shell stops on "Generating certificate" and never gets any further. No errors. Windows PowerShell Copyright (C) 2014 Microsoft Corporation.

How to monitor the output of Windows service text

For my windows service, I have a procedure that outputs log entries to a text file. That all works well, but I can not see it live. As soon as I open the file to see the log, it stops writing to it, because the service can't write to an open file, I'

create the installation for Windows service c #

I have created a c# windows service when I put my visual studio in debug mode and I run it , it works correctly but when I create a setup and install it , it doesn't work(means the service installed correctly and start but my code doesn't running). (

How to find the path of Windows Service exe

I have a windows service and I need to create directory to store some info. The directory path must be relative to the windows service exe file. How can get this exe file path ?You can use AppDomain.CurrentDomain.BaseDirectory

Security error when debugging the IIS Express Web service / Silverlight application

I have a silverlight application hosted on an asp.net web application including a WCF SOAP web service. The application is running under an HTTPS://... link using SSL. When I deploy it on our test server running IIS 7.5, everything works fine and as

The IIS 8 FTP service ignores the defined port range

I'm having trouble setting up an FTP server in Windows Server 2012, using IIS 8. This should be fairly straightforward but I'm struggling with convincing IIS to use a port range that I've specified. In IIS, under FTP Firewall Support, the range I've

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK