Click here to Skip to main content
15,867,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am new to WCF , i created a service that has TCP binding. There are multiple services.Some of them are actually schedulers, that invoke at specified intervals(Implemented it through timers & threading).

Now the problem is what type of hosting should be chosen? My choice is IIS hosting as it takes care of multiple aspects along with the one that service starts once it gets request,unlike self-hosting in console or windows which needs to be running.
But am getting problems with these scheduled services.
Someone suggested that we should use windows service ....so is it the bottleneck with IIS hosting that i can't invoke services internally?

Eagerly waiting for a response...
Thank you.
Posted
Comments
Dominic Burford 21-Oct-14 10:25am    
Are you saying that your WCF services get executed at intervals using timers and threading?

I'm not sure what you mean when you say "self-hosting in console or windows which needs to be running" as IIS also needs to be running to invoke a WCF service method.

What problems are you getting? Can you provide further details.
ranjeet20000 5-Nov-14 5:53am    
Thanks Dominic for reply.
Your first statement is exactly what is in my implementation, i.e WCF services that are invoked at intervals using timers.
I need suggestion and reason for which hosting environment is best for these type of services, IIS or Windows Service?
Basically going a bit greedy i wish to know the deciding factors which could help in deciding which should be the best hosting environment.

Thanks
Dominic Burford 5-Nov-14 6:15am    
There is no straight-forward answer as it depends on multiple factors. This article may help you making your decision http://msdn.microsoft.com/en-us/library/ms730158(v=vs.110).aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900