Comments (6)
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.
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.
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.
I'll look into pubsubhubbub now.
from commafeed.
Any news on the PubSubHubbub front?
from commafeed.
PubSubHubbub is supported by CommaFeed.
from commafeed.
Related Issues (20)
- Handle feeds with "pinned" items HOT 8
- e.feeds.toSorted is not a function HOT 4
- Can't change password or email address because current password is "invalid" HOT 2
- Mark all as read not working in 4.1.0 HOT 11
- Changeable Favicons HOT 3
- Support custom UID/GID in docker (AKA don't run the server as root)
- Subscribe to feed, java.sql.BatchUpdateException Incorrect datetime value: '1970-01-01 00:00:00' for column `rss`.`FEEDS`.`disabledUntil` at row 1 HOT 7
- Videos Exceeding the Size of the container HOT 1
- Support native javascript share functionality HOT 1
- Error while adding gazzetta.it rss feeds HOT 5
- Certain feeds return no entries HOT 4
- Probably misunderstanding how feed filters work HOT 1
- Unix socket support HOT 2
- [Bug report] OPML Import Failure in Commafeed v4.3.2 Docker Deployment HOT 2
- HUGE images TAKE UP MORE THAN THE SCREEN now HOT 3
- local dev readMe file correction HOT 1
- Old unread items aren't shown when the "Unread" filter is active, and/or they are automatically swiched to "read". HOT 4
- Add Mastodon as Share Platform HOT 1
- Open a link in new tab HOT 2
- JSON parse error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commafeed.