Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2007

Tip: Looking for answers? Try searching our database.

WCF concurrent call on client

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel - 10 Dec 2007 01:50 GMT
Hi,

I have a winform client which consumes a WCF service. I have a single
service client(proxy) at the winform side, but spread the service calls into
multiple threads so that they can do works concurrently. My confusion is, as
all threads share the same proxy, will one thread block another while calling
a long running service? Is this related to the service concurrent
configuration?

Thanks.

Daniel
Steven Cheng[MSFT] - 10 Dec 2007 04:29 GMT
Hi Daniel,

As for WCF client proxy, it seems a bit different from previous webservice
client proxy class. WCF proxy is somewhat a heavy-weight one which means if
we'll frequently issue method call in concorrent threads, it would be
costly to always create a new proxy instance when making a method call.
Here is some blog article which describes manually using a proxy pool to
address large concurrent WCF method call case:

#WCF Proxy Performance vs WSE V3
http://weblogs.asp.net/pglavich/archive/2007/02/24/wcf-proxy-performance-vs-
wse-v3.aspx

#A Sample for WCF Client Proxy Pooling
http://blogs.msdn.com/wenlong/archive/2007/11/14/a-sample-for-wcf-client-pro
xy-pooling.aspx

#Service Instances and Concurrent Execution
http://blogs.msdn.com/wenlong/archive/2007/08/10/service-instances-and-concu
rrent-execution.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
   

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: =?Utf-8?B?RGFuaWVs?= <daniel.shen@newsgroup.nospam>
Subject: WCF concurrent call on client
Date: Sun, 9 Dec 2007 17:50:00 -0800
Hi,

I have a winform client which consumes a WCF service. I have a single
service client(proxy) at the winform side, but spread the service calls
into
multiple threads so that they can do works concurrently. My confusion is,
as
all threads share the same proxy, will one thread block another while
calling
a long running service? Is this related to the service concurrent
configuration?

Thanks.

Daniel
Steven Cheng[MSFT] - 13 Dec 2007 11:15 GMT
Hi Daniel,

Have you got any further idea on this? If there is any further questions,
welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: stcheng@online.microsoft.com (Steven Cheng[MSFT])
Organization: Microsoft
Date: Mon, 10 Dec 2007 04:29:01 GMT
Subject: RE: WCF concurrent call on client

Hi Daniel,

As for WCF client proxy, it seems a bit different from previous webservice
client proxy class. WCF proxy is somewhat a heavy-weight one which means if
we'll frequently issue method call in concorrent threads, it would be
costly to always create a new proxy instance when making a method call.
Here is some blog article which describes manually using a proxy pool to
address large concurrent WCF method call case:

#WCF Proxy Performance vs WSE V3
http://weblogs.asp.net/pglavich/archive/2007/02/24/wcf-proxy-performance-vs-
wse-v3.aspx

#A Sample for WCF Client Proxy Pooling
http://blogs.msdn.com/wenlong/archive/2007/11/14/a-sample-for-wcf-client-pro
xy-pooling.aspx

#Service Instances and Concurrent Execution
http://blogs.msdn.com/wenlong/archive/2007/08/10/service-instances-and-concu
rrent-execution.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
   

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: =?Utf-8?B?RGFuaWVs?= <daniel.shen@newsgroup.nospam>
Subject: WCF concurrent call on client
Date: Sun, 9 Dec 2007 17:50:00 -0800
Hi,

I have a winform client which consumes a WCF service. I have a single
service client(proxy) at the winform side, but spread the service calls
into
multiple threads so that they can do works concurrently. My confusion is,
as
all threads share the same proxy, will one thread block another while
calling
a long running service? Is this related to the service concurrent
configuration?

Thanks.

Daniel
Spam Catcher - 10 Dec 2007 20:41 GMT
=?Utf-8?B?RGFuaWVs?= <daniel.shen@newsgroup.nospam> wrote in
news:DF1F78C5-346D-4F63-82F7-E392B4886E27@microsoft.com:

> My confusion is, as
> all threads share the same proxy, will one thread block another while
> calling a long running service? Is this related to the service
> concurrent configuration?

Yes it is - I believe WCF now supports non-blocking calls.

Signature

spamhoneypot@rogers.com (Do not e-mail)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.