5 ms·
Is there any way outside of just polling every 1~5 minutes to get realtime updates to RSS? Curious what is standard here? If you do do polling, what interval?
by mbesto 4y ago
Is there any way outside of just polling every 1~5 minutes to get realtime updates to RSS? Curious what is standard here? If you do do polling, what interval?
- banana_giraffe 4y agoYes, you need to poll. Ideally with If-Modified-Since and If-None-Match headers so you can save some resources if the feed hasn't changed.
- timbit42 4y agoI usually do 60 minutes. I'm not desperate enough to check every 5 or 10 minutes. I've come across a few websites that block you if you refresh too frequently. I'm not sure whether those ones still do that though.
- qw 4y agoI don't know if they are still in use, but there are pub/sub services that can be used for notifications. This was created to avoid unnecessary polling of RSS/Atom feeds: https://en.m.wikipedia.org/wiki/WebSub https://en.m.wikipedia.org/wiki/WebSub
- derekzhouzhen 4y agoIf you need realtime update, then RSS is probably not the right tool. For polling, I currently do the following: * with `HTTP 304: not modified` result, I'll come back in 60 minutes * if there is any update, I'll come back in 4 hours * if there is no cache control header, such as etag or last-modified, I will poll every 12 hours.
- rakoo 4y agoApart from websub, which does require some resources, servers could provide long-polling such that the socket remains open, and give a reply as soon as there is one. Clients don't poll, servers aren't flooded (but do need to keep an open connection )
- Pakdef 4y agoI poll every hour... for my need, that is plenty
- zaik 4y agoXMPP PubSub nodes: https://xmpp.org/extensions/xep-0277.html https://xmpp.org/extensions/xep-0277.html
- anotherevan 4y agoWebSub (née PubSubHubbub) can work well if the RSS feed supports it. https://en.wikipedia.org/wiki/WebSub https://en.wikipedia.org/wiki/WebSub