WebServicesPro News Archives About Us Feedback

Search Marketing ExpoLive Coverage
Recent Conference Articles:


Articles From Our Partners:



Conference Videos:

SMX: Tips, Tricks and Tools SMX: Tips, Tricks and Tools
They discussed their favorite tools as well as helpful SEO tips. Hear all about it only on WebProNews.

SMX: Barry Schwartz on Search SMX: Barry Schwartz on Search
Barry Schwartz of Search Engine Roundtable spoke with WebProNews at the SMX Seattle.

SMX: Michael Gray on Search Engines and Google SMX: Michael Gray on Search Engines
Michael Gray owner of AtlasWebServices.com talks about search engine users and the Google junkie.

Visit Videos.WebProNews.com for more


06.07.07


Optimize HTTP Requests & Web Service Calls

By Mads Kristensen

ASP.NET has an outgoing connection limit which is set to 2 connections by default.

It means that the ASP.NET process does not create more than 2 concurrent connections simultaneously, but instead queues them up.

Consider the scenario where you call 4 web services asynchronously from the same method.

What happens is that the first two starts to execute, while the next two waits for the first two to finish.

The same thing happens for HttpRequests.

Get your FREE carrying case, extra battery and vehicle charger. Call 1.800.426.6413 or Click Here for full details.

That is a waste of time in most cases, so you can raise the connection limit to allow more simultaneous reqests in the web.config.

<system.net>

  <connectionManagement>

   <add address="*" maxconnection="8"/>

  </connectionManagement>

</system.net>


Every asynchronous request is started in its own thread, so you have to be careful not to raise the limit too far.

The more CPU's or cores the web server have, the higher can you set the connection limit.

You can read more about asynchronous requests and the connection limit on MSDN.

Comments


About the Author:
Mads Kristensen currently works as a Senior Developer at Traceworks located in Copenhagen, Denmark. Mads graduated from Copenhagen Technical Academy with a multimedia degree in 2003, but has been a professional developer since 2000. His main focus is on ASP.NET but is responsible for Winforms, Windows- and web services in his daily work as well. A true .NET developer with great passion for the simple solution.

http://www.madskristensen.dk/

Recent Articles

What REST Vs. WS Says About OSS Vs. Traditional...
During the Redmonk unconference at CommunityOne, there was a discussion about whether REST was going to kill Web services (WS*). This discussion followed a discussion on OSS and...

Consuming A WebService With Flash Media Server 2
Here's a very simple example on how to invoke and consume a WSDL webservice using serverside Actionscript. You will need Flash Media Server 2 for...

WDSL & Webresource.axd
Various WDSL (Web Service Description Language) entities exist in a web server.The file is meant to describe what services are available and what the...

Capabilities Of Sybase SqlAnywhere With .NET...
.NET developers can add the powerful capabilities of SQL Anywhere to their applications by using .NET programming interfaces and web services. SQL Anywhere Studio makes...

Customer-Lead, Trust-based Value Generation Services
This article explains how an enterprise can leverage increased value generation, thereby aiding competitive advantage, by adoption of the `Enterprise Value...

Web Services, Contracts And Copyright
What's the Deal With Contracts, Copyright and Web Related Services? If you're the client, make sure you include the following steps when hiring a service...


About WebServicesPro
WebServicesPro delivers news and strategy articles covering the broad scope of what is known as Web Services. Each issue of WebServicesPro is focused on Making Web Services a Reality.

WebServicesPro is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
PerlProNews.com SQLProNews.com
SysAdminNews DevWebPro.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITCertificationNews.com


-- WebServicesPro is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 4050
2007 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


WebServicesPro Home Page About Article Archive News Downloads WebProWorld Forums iEntry Advertise Contact WebProWorld Forum Making Web Services a Reality