Live feeds via Atom protocol

196 views Asked by At

I have to create a consumer that consumes feeds from an Atom service. The feeds should be consumed as and when anything is published on the atom server.

Currently I am using camel-atom protocol which polls the atom server every 60 seconds by default (this polling time can be reduced). Is any way (using any API) that I can just subscribe to the atom server and receive updates whenever they are posted?

2

There are 2 answers

0
cringe On

Atom servers are not pushing changes to subscribers. Published feeds (RSS and Atom) are a way to enable clients to automatically check for updates.

There is no option to configure camel-atom other than consumer.delay, which sets the polling interval.

0
Julien Genestoux On

As Cringe says, Atom itself is "just" a data format... not a protocol to distribute/consume data. There are several protocols which have been built around distrubuting and consuming Atom, starting with Atompub. However, the most popular these days is clearly PubSubHubbub (supported by Wordpress, Blogger, Medium, Feedburner, Feedpress, Etsy... as well as many smaller/indie CMSes).

Check out Superfeedr too (which I created!) which can help you turn any RSS/Atom feed into a stream to consume.