Why Host WCF Service as a Worker

In the process of creating my first AZURE-based application using WCF services, I came across a series of examples where people show how you can host a WCF service inside a worker role.

As in these articles:

http://www.codeproject.com/Articles/188464/Host-WCF-Services-in-an-Azure-Worker-Role http://code.msdn.microsoft.com/windowsazure/CSAzureWCFServices-20c7d9c5

A very simple question, can someone explain which use case would require placing the WCF service as a worker? What is the motivation / benefits of this?

+6
source share
1 answer

The hosting of the WCF service inside WebRole implies that it is hosted in IIS. Some people prefer not to have an IIS clutter with their ServiceHost and host the service directly. They have more control over how communication with their service is done without IIS in the middle.

In addition, when compressing a packaged solution for clients, it is easier to create an installer package without trying to rely on the IIS infrastructure, which clients may or may not properly deploy / configure.

NTN

+6
source

Source: https://habr.com/ru/post/950030/


All Articles