Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Multithreading Async aspx best approach

Reply
Thread Tools

Multithreading Async aspx best approach

 
 
milesm
Guest
Posts: n/a
 
      05-05-2004
I've spent the last 3 hours reading various MSDN articles, other site
articles and news group postings and was wondering what the best approach to
my situation would be since I'm unable to come up with the best approach.

What's Needed........
1. Various background SQL inserts that don't interrupt the client
request/response
2. Various background emails generated and sent that are separate from the
client request/response
3. Every single page load doing a SQL insert that is separate from the
client request/response
4. And other similar tasks........

Also, my site is running MSCMS 2002. Now, should I put all this background
processing code in a separate dll that can be called from the application
state? Or, put code in a separate dl that can be called from anywhere as
needed? And, what would be the best approach........

Async Handler with custom thread pool below seems like overkill, isn't their
a much easier way?
http://msdn.microsoft.com/msdnmag/is.../06/Threading/




--


Marc Miles


 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      05-06-2004
I'd suggest creating a Windows Service to handle all your background tasks.
Here's more information on Windows Services:
http://msdn.microsoft.com/library/de...owsService.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


"milesm" <(E-Mail Removed)> wrote in message
news:c7bsqs$111q$(E-Mail Removed)...
> I've spent the last 3 hours reading various MSDN articles, other site
> articles and news group postings and was wondering what the best approach

to
> my situation would be since I'm unable to come up with the best approach.
>
> What's Needed........
> 1. Various background SQL inserts that don't interrupt the client
> request/response
> 2. Various background emails generated and sent that are separate from the
> client request/response
> 3. Every single page load doing a SQL insert that is separate from the
> client request/response
> 4. And other similar tasks........
>
> Also, my site is running MSCMS 2002. Now, should I put all this

background
> processing code in a separate dll that can be called from the application
> state? Or, put code in a separate dl that can be called from anywhere as
> needed? And, what would be the best approach........
>
> Async Handler with custom thread pool below seems like overkill, isn't

their
> a much easier way?
> http://msdn.microsoft.com/msdnmag/is.../06/Threading/
>
>
>
>
> --
>
>
> Marc Miles
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie: async mode dedicated versus async mode interactive!! Pink_Floyd Cisco 4 06-16-2006 12:16 AM
Async MultiThreading michaeltorus ASP .Net 2 12-06-2005 02:24 AM
Async webservice call in async webpage (.Net 2.0) does not return Steven ASP .Net Web Services 0 11-30-2005 01:06 AM
aspx page to kick off async background task and then end Carl Johansen ASP .Net 3 07-03-2005 01:06 PM
Async webrequest calls and ASPX Asynchronous PreRequestHandler DotNetShadow ASP .Net 0 02-07-2005 07:55 AM



Advertisments