Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Scheduling the Import of data with ASP.NET

Most enterprise ASP.NET web applications have one thing in common: Data Imports.  Whether it is users, locations or transactions, 95%* of the applications that I've built for large corporations require some external data.  Handling this in ASP.NET has always been troublesome for me, so I thought I'd share my method with you. 

In the past, I've used Andy Brummer's scheduled timer to execute my scheduled tasks (http://www.codeproject.com/dotnet/ABTransClockArticle.asp) in conjunction with Paul Wilson's keep alive (http://authors.aspalliance.com/paulwilson/Articles/?id=12).  This has been the best way that I've been able to make sure that the code will execute on the proper schedules.

Basically, a "timer" thread is executed when the application starts and is checked every millisecond.  If the current "tick" is the same as the set scheduled total ticks, then it will execute the import.

I've been happy with this method and haven't run into any problems with it.

* estimated guess, I haven't done any in depth studies on it, but I've worked on enough applications to know that it's pretty much everyone.


Posted 10-03-2006 12:18 AM by Stephen Wright
Filed under:

[Advertisement]

Comments

Rob Eisenberg wrote re: Scheduling the Import of data with ASP.NET
on 10-05-2006 7:11 AM

The source for ABTransClock is great.  I've used it on 2 projects myself.

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)