Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
About Us
986
Questions
785
Answers
Interview Preparation mode
beta
Funny Facebook Status
Enter your email address
All categories
SQL Server Interview Questions and Answers
(197)
SSIS Interview Questions and Answers
(54)
SSRS Interview Questions and Answers
(9)
SSAS Interview Questions and Answers
(29)
.NET Interview Questions and Answers
(186)
Oracle Interview Questions and Answers
(122)
Java Interview Questions and Answers
(32)
UNIX Interview Questions and Answers
(47)
Networking Interview Questions and Answers
(17)
MySQL Interview Questions and Answers
(30)
HR Interview Questions and Answers
(237)
General Interview Questions and Answers
(9)
Other Interview Questions and Answers
(8)
Job Openings
(3)
Greenplum Database Interview Questions and Answers
(5)
What are the advantages of hosting WCF Services in IIS as compared to self-hosting?
Nice?
Vote!
asked
1 year
ago
in
.NET Interview Questions and Answers
by
Anand
(
1,440
points)
wcf
wcf-interview-questions
hosting
iis
1 Answer
Nice?
Vote!
There are two main advantages of using IIS over self-hosting:-
Automatic activation
--------------------------
IIS provides automatic activation that means the service is not necessary to be running in advance. When any message is received by the service it then launches and fulfills the request. But in case of self hosting the service should always be running.
Process recycling
-----------------------
If IIS finds that a service is not healthy that means if it has memory leaks etc, IIS recycles the process. Ok let us try to understand what is recycling in IIS process. For every browser instance, a worker process is spawned and the request is serviced. When the browser disconnects the worker, process stops and you loose all information. IIS also restarts the worker process. By default, the worker process is recycled at around 120 minutes. So why does IIS recycle. By restarting the worker process it ensures any bad code or memory leak do not cause issue to the whole system.
In case of self-hosting both the above features, you will need to code yourself. Lot of work right!!. That is why IIS is the best option for hosting services until you are really doing something custom.
Below figure shows where the recycle option is located in IIS. You need to click on the DefaultAppool and then Properties.
answered
1 year
ago
by
Karan
(
240
points)
Related questions
Nice?
Vote!
1
answer
How do we host a WCF service in IIS?
asked
1 year
ago
in
.NET Interview Questions and Answers
by
Ruban
(
360
points)
wcf
wcf-interview-questions
hosting
iis
Nice?
Vote!
1
answer
what are the various ways of hosting a WCF service?
asked
1 year
ago
in
.NET Interview Questions and Answers
by
Boni
(
860
points)
wcf
wcf-interview-questions
hosting
Nice?
Vote!
2
answers
What are the major differences between services and Web services? What is the difference WCF and Web services?
asked
1 year
ago
in
.NET Interview Questions and Answers
by
KrishnaMachiraju
(
7,980
points)
wcf
wcf-interview-questions
web-services
Nice?
Vote!
1
answer
What are the main components of WCF?
asked
1 year
ago
in
.NET Interview Questions and Answers
by
Karan
(
240
points)
wcf
wcf-interview-questions
components
Nice?
Vote!
1
answer
What are various ways of hosting WCF Services?
asked
1 year
ago
in
.NET Interview Questions and Answers
by
KrishnaMachiraju
(
7,980
points)
wcf