[Webinar] Streamline your web hosting managementRegister Today


Asynchronous pages mechanism

Posted on 2008-02-06
Medium Priority
Last Modified: 2013-12-17
Hello Experts,

I have some long running processes, so I want to use asynchronous pages.
What I know about asynchronous pages is that it's made to redirect my long running requests out of the Asp.net ThreadPool (25 threads managed  by the runtime) and let quick or current  requests be executed.
What I don't know is how many long requests the paralell threads can execute without any troubles. Are the requests queued ?

Thanks in advance for your help.
Question by:noulouk
  • 2
LVL 11

Accepted Solution

vs1784 earned 1000 total points
ID: 20836050
For asynchronous pprocesses you can use Web Services or Remoting i think. However Web Services is a better option.

Number depends on the CPU power you have.


Author Comment

ID: 20836468
Thanks vs1784,

Is it true that the Asp.net ThreadPool for current requests contains only 25 managed threads and if there are already 25 managed threads running, the ThreadPool queue all incoming requests which are in a waiting state.

I can use Webservices if you want, but I can do the same with my asynchronous page:
AddOnPreRenderCompleteAsync (
    new BeginEventHandler(MyBeginMethod),
    new EndEventHandler (MyEndMethod)
The job is completed asynchronously like a webservice.

I can't find anything about the asynchronous page threads management.
If it's about 25 threads managed in a ThreadPool, I'm  afraid because I need to run much more than 25 long running processes asynchronously ( near 500 ).
LVL 11

Expert Comment

ID: 20836530
You can increase the size above 25 using


See this link for reference


LVL 13

Assisted Solution

AngryBinary earned 1000 total points
ID: 20838773
One of the benefits of using a Web Service, Remoting, or WCF to offload processing to another application is that these techniques all allow messaging across AppDomain and/or machine boundaries. The only reason I bring this up is because if you are running 500 marathon processes, resource utilization and performance may turn into significant concerns and scaling the app out and using a service locater to route requests may be a much more practical solution in the long run, if that sort of thing is within the bounds of your project scope.

If you do go that route, WCF is the optimal option for performance and scalability. ASMX web services are just as scalable and develop rapidly. Remoting is arguably easier to implement than WCF and can handle binary data transfer, but only between .NET components that live behind a firewall.


Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Free Data Recovery software is an advanced solution from Kernel Tools to recover data and files such as documents, emails, database, media and pictures, etc. It supports recovery from physical & logical drive after a hard disk crash, accidental/inte…
Suggested Courses
Course of the Month9 days, 13 hours left to enroll

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question