Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different Types of Hosting WCF application and there advantages

There are different types of Hosting can be done.

  1. windows process activation services (WAS)

  2. IIS

  3. Self hosting

  4. Hosting in a Windows service

is there advantage of using one over another? which one is preferable?

like image 866
Rahul Rajput Avatar asked Mar 11 '13 06:03

Rahul Rajput


People also ask

What are is types of hosting supported in WCF service?

There are three types of hosting environments for WCF services: IIS, WAS, and self-hosting. The term “self-hosting” refers to any application that provides its own code to initialize the hosting environment. This includes console, Windows Forms, WPF, and managed Windows services.

What is hosting in WCF?

After creating a WCF service, the next step is to host it so that the client applications can consume it. This is known as WCF service hosting. A WCF service can be hosted by using any of the four ways given below − IIS Hosting − IIS stands for Internet Information Services.

What is WCF application?

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application.


1 Answers

This and this can help. But basically:

1) IIS now using WAS

2) IIS hosting. Pros: generally no hosting code required, easy to maintain, IIS infrastructure (security, sessions, site integration etc). Cons: 'passive' services, require IIS.

3) Self hosting. Pros: easy debugging. Cons: no infrastructure, req. custom hosting code, interactive usage (generally speaking).

4) Hosting in a Windows service. Pros: for 'active', long running services, services infrastructure (start/stop/pause, unattended (non interactive) execution, dependencies, mmc etc), relatively easy to manage. Cons: req. custom hosting code, relatively hard to debug (vs IIS hosting).

like image 169
SalientBrain Avatar answered Sep 30 '22 19:09

SalientBrain