Suggested Videos
Part 27 - Hosting a wcf service in a windows service
Part 28 - Advantages and disadvantages of hosting a wcf service in a windows service
Part 29 - Hosting wcf service in IIS
In this video we will discuss, the advantages and disadvantages of hosting wcf service in IIS. This is continuation to Part 29. Please watch Part 29, before proceeding.
Advantages:
1. No code required to host the service: The ServiceHost directive in .svc file is responsible for creating an instance of ServiceHost when required. There is no need to write code to instantiate and start ServiceHost, as is the case with self hosting.
2. Automatic message based activation: IIS provides automatic message based activation. This means that the service can be activated on demand. When a message arrives at the service, it then launches itself and fulfils the request. In case of self hosting, the service should always be running.
3. Automatic process recycling: IIS provides the capability of automatic process recycling, if the process is not healthy and if it's taking a long time to service the requests. We don't get automatic process recycling with self hosting.
Disadvantages:
Hosting WCF service in IIS 5.1 and IIS 6.0 is limited to HTTP communication only. This means we can only use HTTP related bindings.
Part 27 - Hosting a wcf service in a windows service
Part 28 - Advantages and disadvantages of hosting a wcf service in a windows service
Part 29 - Hosting wcf service in IIS
In this video we will discuss, the advantages and disadvantages of hosting wcf service in IIS. This is continuation to Part 29. Please watch Part 29, before proceeding.
Advantages:
1. No code required to host the service: The ServiceHost directive in .svc file is responsible for creating an instance of ServiceHost when required. There is no need to write code to instantiate and start ServiceHost, as is the case with self hosting.
2. Automatic message based activation: IIS provides automatic message based activation. This means that the service can be activated on demand. When a message arrives at the service, it then launches itself and fulfils the request. In case of self hosting, the service should always be running.
3. Automatic process recycling: IIS provides the capability of automatic process recycling, if the process is not healthy and if it's taking a long time to service the requests. We don't get automatic process recycling with self hosting.
Disadvantages:
Hosting WCF service in IIS 5.1 and IIS 6.0 is limited to HTTP communication only. This means we can only use HTTP related bindings.
No comments:
Post a Comment
It would be great if you can help share these free resources