"asynchronous Threading VBScript"
We are looking to speed up the post back of an ASP page that process a form.
Basically we want the post back handler to do two things asynchronously :
1. TASK 1: Start a worker thread to complete the actual processing
2. TASK 2: Display a confirmation message saying that they are done
When the long running task (TASK 1) is complete the user will NOT get
another message. We want to do this so the portal response seems faster to
the user.
Currently, the confirmation message is displayed after the form processing
is completed.
One approach would be to package the received form data into an XML document
(along with any session variable values that may be required) and save that
document to a folder, then return the confirmation.
Have a VBScript scheduled task scan the folder for these XML files and post
those files to a page in the site for actual processing. By using WinHTTP
request it will be possible to control how many long running tasks you want
have running simultaneously.
Other approaches that might be considered (although each have some problems)
are:-
Create a separate App pool and ASP application and post to it asynchronously
from the receiving page.
Use an AJAX solution which posts asynchronously from the client.