By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,479 Members | 988 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,479 IT Pros & Developers. It's quick & easy.

Running app on web server - request advise

P: n/a
I have a small 'friends and family' web site that features a very
rudimentary RSS reader. I want to change how I obtain the RSS feeds and
I would appreciate recommendations for how to approach the problem.
Currently, my local system runs a job every 2 hours that grabs the
various RSS/XML files and stores them on my home PC (uses FTP). A second
job runs a few minutes later that copies those feeds to the host server
(also using FTP). When the home page is pulled up, the RSS feeds are
read and displayed.
What I want is to do this on the server without having to involve my
home system in the process at all. A rough outline of the approach I
want to take is when the home page is opened, the date of the latest RSS
retrieval is checked and if it is at least 2 hours old, the feeds are
updated. That's simple enough. My concern, however, is that I don't want
more than one user initiating this process at any given time. If user A
connects and starts the download, I want user B (who connected at almost
the same instant as user B) to detect this fact and pause until the
download is complete.
I'm not sure how best to approach this. I suppose I could have my host
run the download for me by scheduling a job every two hours (at least, I
think that is an available option), but I would prefer not to take that
route. Any suggestions? Thanx,
* ^~^ ^~^ *
* _ {~ ~} {~ ~} _ *
* /_``>*< >*<''_\ *
* (\--_)++) (++(_--/) *
There are no advanced students in Aikido - there are only
competent beginners. There are no advanced techniques -
only the correct application of basic principles.
Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.