Giter Site home page Giter Site logo

Dynamic refresh rate about commafeed HOT 6 CLOSED

athou avatar athou commented on May 22, 2024
Dynamic refresh rate

from commafeed.

Comments (6)

joshmatz avatar joshmatz commented on May 22, 2024

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.

from commafeed.

Athou avatar Athou commented on May 22, 2024

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.

from commafeed.

oracle2b avatar oracle2b commented on May 22, 2024

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

from commafeed.

Athou avatar Athou commented on May 22, 2024

I'll look into pubsubhubbub now.

from commafeed.

julien51 avatar julien51 commented on May 22, 2024

Any news on the PubSubHubbub front?

from commafeed.

Athou avatar Athou commented on May 22, 2024

PubSubHubbub is supported by CommaFeed.

from commafeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.