Re: How would you do this ?

From: Date: Tue, 26 Sep 2006 06:17:02 +0000
Subject: Re: How would you do this ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-242215@lists.php.net to get a copy of this message
Jad madi wrote:
I'm building an RSS aggregator so I'm trying to find out the best way to parse users account feeds equally so Lets say we have 20.000 user with average of 10 feeds in account so we have about 200.000 feed How would you schedule the parsing process to keep all accounts always updated without killing the server? NOTE: that some of the 200.000 feeds might be shared between more than one user
Cache the feeds for a period of time. So a (very) basic process would look like: - does cache exist? How long has it been around? - Shorter than "X" minutes? -- Serve up the cached version. Dies off quickly. - Longer than "X" minutes? -- See if there is a new version, if there is update the cache, if there isn't update the cache timestamp (so it won't check again for another "X" minutes). Of course you'd have to build in stuff like the feed can't be reached (site down, dns problems, whatever).. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#242215) next »