Please note: Although I mention Java 8 I think the answer here is really language-agnostic.
I'm building a simple Java 8 web service that will aggregate RSS feeds across various topics and make their content available by request. I've never worked with RSS before and all the videos I have found are just about how to generate an RSS file for your lame blog, and all the articles I have found on "Java and RSS" are just examples of parsing XML.
I'm curious: does RSS work as push or pull?
- By "push" I mean: say "RSS feed A" publishes an update to their RSS file on their service (say
http://rss-a.example.com/rss/news.rss
). Does their server somehow send a message to my backend, alerting my backed that an update is ready?; or - By "pull" I mean: is my backend just responsible for pinging all of the RSS feed URLs every n seconds and pulling in new content as its published?
Also, how do Java libraries like ROME snap into either push/pull architecture above?
*.rss
file (which I assume is XML) on some web link. (2) Some process ("RSS client" for lack of better term) fetches the RSS file and consults its data for how often it should check the same RSS file for updates/changes. (3) Periodically, the RSS file fetches the RSS file, parses it, extracts updated content from it, and does whatever it wants with that new content. Yes? Or am I way off? – Handle