all groups > dotnet web services > december 2007 >
You're in the

dotnet web services

group:

WCF concurrent call on client


WCF concurrent call on client Daniel
12/9/2007 5:50:00 PM
dotnet web services: 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.

RE: WCF concurrent call on client stcheng@online.microsoft.com
12/10/2007 4:29:01 AM
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.

Re: WCF concurrent call on client Spam Catcher
12/10/2007 8:41:17 PM
=?Utf-8?B?RGFuaWVs?= <daniel.shen@newsgroup.nospam> wrote in
news:DF1F78C5-346D-4F63-82F7-E392B4886E27@microsoft.com:

[quoted text, click to view]

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

--
RE: WCF concurrent call on client stcheng@online.microsoft.com
12/13/2007 11:15:01 AM
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.

AddThis Social Bookmark Button