Async webrequest calls and ASPX Asynchronous PreRequestHandler

D

DotNetShadow

Hi Guys

I came across this article which deals with Performance Considerations
for Making Web Service Calls from ASPX Pages:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07222003.asp

The article talks about 3 approaches synchronous | asyncronous | and
PrerequestHandler with asynchronous calls. I tried the sample that
came with the article and the concept proves right.

So I decided to try the same technique but this time instead of using
a webservice I used webrequest as my long running process. After
testing the code I realised that there was no difference in requests
per second between 'asyncronous ' and 'PrerequestHandler with
asynchronous calls'.

QUESTIONS:
==========

WEBPAGE.ASPX
WebRequest1-->http://www.google.com.au/search?hl=en&q=test1
WebRequest2-->http://www.google.com.au/search?hl=en&q=test2
WebRequest3-->http://www.google.com.au/search?hl=en&q=test3

Wait for all requests to complete
Process results
Display results to user

1. Basically I need to know if it will work well for a scenario where
I have to make 3 async webrequests to a site to retrieve its content
so I can process and display results back to a user. The requests only
take 2 - 3 secs on their own. My main concern is how many requests per
second can I get through I have also changed the maxconnection limit
from 2 to 40 (HTTP 1.1)

2. I was just wondering if anyone has used the techniques described in
the article, or has any suggestions on the best approach for this
problem.

3. What are the potential bottlenecks that webrequests have in terms
of threadpool, blocking calls etc

Regards Dotnetshadow
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top