HighTechTalks DotNet Forums  

WCF concurrent call on client

Dotnet Framework (Webservices) microsoft.public.dotnet.framework.webservices


Discuss WCF concurrent call on client in the Dotnet Framework (Webservices) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Daniel
 
Posts: n/a

Default WCF concurrent call on client - 12-09-2007 , 08:50 PM






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

Reply With Quote
  #2  
Old   
Steven Cheng[MSFT]
 
Posts: n/a

Default RE: WCF concurrent call on client - 12-09-2007 , 11:29 PM






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?= <daniel.shen (AT) newsgroup (DOT) 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


Reply With Quote
  #3  
Old   
Spam Catcher
 
Posts: n/a

Default Re: WCF concurrent call on client - 12-10-2007 , 03:41 PM



=?Utf-8?B?RGFuaWVs?= <daniel.shen (AT) newsgroup (DOT) nospam> wrote in
newsF1F78C5-346D-4F63-82F7-E392B4886E27 (AT) microsoft (DOT) com:

Quote:
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.

--
spamhoneypot (AT) rogers (DOT) com (Do not e-mail)


Reply With Quote
  #4  
Old   
Steven Cheng[MSFT]
 
Posts: n/a

Default RE: WCF concurrent call on client - 12-13-2007 , 06:15 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 (AT) online (DOT) 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?= <daniel.shen (AT) newsgroup (DOT) 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




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.