Batch functionality

  • Thread starter Thread starter Oscar Thornell
  • Start date Start date
O

Oscar Thornell

Hi,

Any suggestions on best practices on implementing batch process
functionality in a web app?
The idea is to run a batch of order processing at night when the site load
is low.
I would like to contain the logic within the web application for deployment
reasons..

An event has to be fired at a specific time or other threeshold.
The batch would probably need to be run in async/low priority thread(s) from
the threadpool.


Regards
/Oscar
 
Oscar,

It can be done, however it will not be very good solution to your
problem. Why do not you build a Windows Service and deploy it along
with the Web Application?

Regards,

Philip.
 
I agree. The service solution is the best overall design choice.
But..if for some reason it is not viable in this context.

How would one solve the problem in an ASP.NET web application.

/Oscar
 
Oscar,

You need to use the timer component on a web page and activate it
somehow, someone got to request the page and activate the timer when is
loaded...and maybe the page must be always loaded (not just load it and
then close it) in order to work...

Philip.
 
Back
Top