Does the hosting option affects the amount of requests a WCF service can handle?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hard to say – the main reason for self-hosting is probably having more control, e.g. being able to tweak the system as you need it.
IIS hosting is convenient and easy to set up, and it offers “on-demand” loading of the service, e.g. the service host is only loaded if a request actually comes in.
This constant loading (and unloading) of the service host will probably hurt performance a little bit – on the other hand, self-hosting a service host, you probably use more memory (since the ServiceHost is active and in memory at all times).
So again – it’s a memory-vs-speed trade-off – selfhosting uses more RAM but is probably a tiny bit faster.
Marc