I am building a website (probably in Wordpress) which takes data from a number of different sources for display on various pages.
The sources:
- A Twitter feed
- A Flickr feed
- A database on a remote server
- A local database
From each source I will mainly retrieve
- A short string, e.g. for Twitter, the Tweet, and from the local database the title of a blog page.
- An associated image, if one exists
- A link identifying the content at its source
My question is:
What is the best way to a) store the data and b) retrieve the data
My thinking is:
i) Write a script that is run every 2 or so minutes on a cron job
ii) the script retrieves data from all sources and stores it in the local database
iii) application code can then retrieve all data from the one source, the local database
This should make application code easier to manage - we only ever draw data from one source in application code - and that's the main appeal. But is it overkill for a relatively small site?