Get information from various sources
Posted
by Francesc
on Stack Overflow
See other posts from Stack Overflow
or by Francesc
Published on 2010-06-14T16:38:06Z
Indexed on
2010/06/14
16:42 UTC
Read the original article
Hit count: 204
Hi.
I'm developing an app that has to get some information from various sources (APIs and RSS) and display it to the user in near real-time.
What's the best way to get it:
1.Have a cron job to update them all accounts every 12h, and when a user is requesting one, update that account, save it to the DB and show it to the user?
2.Have a cron job to update them all accounts every 6h, and when a user is requesting one, update the account and showing it to the user without saving it to the DB?
What's the best way to get it? What's faster? And what's the most scallable?
© Stack Overflow or respective owner