By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,874 Members | 1,058 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,874 IT Pros & Developers. It's quick & easy.

WCF concurrent call on client

P: n/a
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
Dec 10 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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/arch...erformance-vs-
wse-v3.aspx

#A Sample for WCF Client Proxy Pooling
http://blogs.msdn.com/wenlong/archiv...wcf-client-pro
xy-pooling.aspx

#Service Instances and Concurrent Execution
http://blogs.msdn.com/wenlong/archiv...nces-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/subscripti...ult.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/subscripti...t/default.aspx.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?RGFuaWVs?= <da*********@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

Dec 10 '07 #2

P: n/a
=?Utf-8?B?RGFuaWVs?= <da*********@newsgroup.nospamwrote in
news:DF**********************************@microsof t.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.

--
sp**********@rogers.com (Do not e-mail)
Dec 10 '07 #3

P: n/a
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: st*****@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/arch...erformance-vs-
wse-v3.aspx

#A Sample for WCF Client Proxy Pooling
http://blogs.msdn.com/wenlong/archiv...wcf-client-pro
xy-pooling.aspx

#Service Instances and Concurrent Execution
http://blogs.msdn.com/wenlong/archiv...nces-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/subscripti...ult.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/subscripti...t/default.aspx.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?RGFuaWVs?= <da*********@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

Dec 13 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.