xmlrssrome

Does RSS push or pull updates?


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?

Also, how do Java libraries like ROME snap into either push/pull architecture above?


Solution

  • RSS is just a data format. Nothing more. It neither pushes nor pulls.

    It is typically accessed by polling (and the format includes the ability to specify how often it should be polled as metadata).

    This doesn't prevent you from creating a (or finding an existing) a service which you can send the data to a client instead of having them request it over HTTP. Nor one where you send a message informing them that the feed has updated and they should make a new HTTP request.