Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic refresh rate #44

Closed
Athou opened this issue Apr 20, 2013 · 6 comments
Closed

Dynamic refresh rate #44

Athou opened this issue Apr 20, 2013 · 6 comments
Assignees

Comments

@Athou
Copy link
Owner

Athou commented Apr 20, 2013

Find a way to refresh feeds faster for online (active?) users or something

@joshmatz
Copy link
Contributor

Do you mean polling or importing new feed items into the DB?


If you mean polling, then I would think that ideally you wouldn't have to poll and you could do something with web sockets in real time. I'm not familiar with Java or TomEE so I'm not sure how possible it is but I found this article that seems like it could be helpful: http://rmannibucau.wordpress.com/2012/05/15/tomee-or-how-to-use-websocket-with-cdi/

After further investigation I found a web socket framework (again, not sure if it's relevant :\ ): https://github.com/Atmosphere/atmosphere


If you mean importing new items... I took a look through the code and it looks to me like this runs every 15 seconds:

foreach feed that hasn't been updated in the past minute
    check header
    if header is new get new items
    mark as updated
endforeach

Is that correct? If it isn't, just ignore this. I'm not entirely sure it's necessary to continuously loop through every feed every minute. I'm thinking it might be more useful to use a formula to help reduce the need to loop through every feed. Something like the standard deviation of time between the 10 most recent entries and just setting a next_update on the Feed.

I dunno. But I'd imagine there's quite a few feed subscriptions out there that would be for feeds that just aren't necessary to check for updates every minute.

@Athou
Copy link
Owner Author

Athou commented Apr 20, 2013

I was more thinking about background refresh of feeds. At the moment the feed selection algorithm is rather stupid as you found out and there's room for improvement. Using time distribution is an interesting idea indeed.

@ghost ghost assigned Athou Apr 21, 2013
@oracle2b
Copy link

oracle2b commented May 4, 2013

Can you have make the feeds have their own refresh time apart from global refresh? It's functionality i got use to in Opera RSS. e.g every 15min / 30min / 1hour / 2 hours / 3/ hour etc

Athou added a commit that referenced this issue May 20, 2013
Athou added a commit that referenced this issue May 20, 2013
Athou added a commit that referenced this issue May 20, 2013
@Athou
Copy link
Owner Author

Athou commented May 20, 2013

I'll look into pubsubhubbub now.

Athou added a commit that referenced this issue May 20, 2013
@Athou Athou closed this as completed May 26, 2013
@julien51
Copy link

Any news on the PubSubHubbub front?

@Athou
Copy link
Owner Author

Athou commented May 29, 2015

PubSubHubbub is supported by CommaFeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants