It would seem to me that "single" would be preferred over "per call" in terms of performance, but this is not the case from reading various sources which state that for "most" situations where the service is going to be used as a web service, that the "per
call" setting is better.
Why?
Possibly because this will let the application be put into a web farm, and if it was set to "single", the service instance would be limited to that server where it was bing hosted.
Yes, Ive seen those. The discuss the issues, but Im looking for WHY I would use one setting over the other. What I'm looking for is examples of types of scenarios where one might use anything but the default settings.
BitShift
Participant
796 Points
446 Posts
WCF instance management for basichttpbinding - single or per call
Jan 24, 2013 06:54 PM|LINK
It would seem to me that "single" would be preferred over "per call" in terms of performance, but this is not the case from reading various sources which state that for "most" situations where the service is going to be used as a web service, that the "per call" setting is better.
Why?
Possibly because this will let the application be put into a web farm, and if it was set to "single", the service instance would be limited to that server where it was bing hosted.
Something like that?
kushalrdalal
Contributor
7200 Points
1288 Posts
Re: WCF instance management for basichttpbinding - single or per call
Jan 24, 2013 08:24 PM|LINK
Check this link -
http://soumya.wordpress.com/2010/05/26/wcf-simplified-part-8-sessions-instance-management-and-concurrency/
http://www.codeproject.com/Articles/86007/3-ways-to-do-WCF-instance-management-Per-call-Per
My Blog
LinkedIn Profile
BitShift
Participant
796 Points
446 Posts
Re: WCF instance management for basichttpbinding - single or per call
Jan 25, 2013 01:23 PM|LINK
Yes, Ive seen those. The discuss the issues, but Im looking for WHY I would use one setting over the other. What I'm looking for is examples of types of scenarios where one might use anything but the default settings.