Paul Roberts wrote a nice article  about using the CCR (Concurrency and Coordination Runtime) together with ASP.NET, to start multiple task concurrently. The CCR will handle the thread pool for us.
The CCR is now still a part of Robotics Studio, but there are some rumors this will be part of the .Net Framework. After implementing some helper CCR functions in our base class, we can start using the async model by spawning some tasks:
protected void Page_Load(object sender, EventArgs e)
int count = 10;
for (int i = 0; i < count; i++)
SpawnIterator("http://wwww.microsoft.com", resultPort, DownloadUrl);
IEnumerator<ITask> DownloadUrl(string url, SuccessFailurePort resultPort)
// Async processing to download from url.
The CCR will take care of all the async responses (using Ports). So to speed this up, we can control the amount of threads in the CCR thread pool in our global.asax:
protected void Application_Start(object sender, EventArgs e)
Read the complete article for all the helper classes we need to get this working.