c# - Which technology to use for running crawler and updating database in asp.net website? -
c# - Which technology to use for running crawler and updating database in asp.net website? -
i developing project college , need suggestions on development. website shows info other websites links, images etc.
i have prepared below given model website.
a home.aspx page shows info tables (sql server).
i have coded crawler (in c#) can crawl (fetch data) required website data.
i want way through can run crawler @ end time interval , can insert updates in tables. want can updated info in database home.aspx shows updated info. (its smaller version of google news website)
i want host wesbite in shared hosted environment (i.e 3rd party hosting provider company , may utilize iis platform)
i posted simliar situation different .net forums , communities , suggested lot of different things such as
create web service (is necessary ?)
use wcf
create console application , run windows task sheduler (is okay asp.net (win forms website) , in shared hosted)
run crawler on local machine , update database accordingly. (no want online) etc etc
please suggest me clear way out finish task. please suggest elobrated technology , methods suits project.
waiting...
thanks...
your shared host constraint impacts on technologies restrictions.
in theory, best way host crawler have been windows service, since can take advantage of windows services configuration. service up, can automatically started @ startup, writes errors in event log, can automatically restarted after failure...
then, home.aspx have been regular website in iis.
if remain on shared host (where cannot setup service), have create crawler module run on application startup.
problem is, iis application pool doesnt live forever if web site not in use, , may stop crawler. configurable, dont know how much in shared host.
in iis 7.5, think starting module @ application warm up
finally if need run crawler @ interval times (like every day @ midnight), if shared host not allow set task scheduling, think quartz framework, allow perform task scheduling within application (without intervention of os)
c# asp.net database wcf
Comments
Post a Comment