Skip to content

Add rate limit options #173

Open

Description

@FrostBird347

Is your feature request related to a problem? Please describe.
Some sites have rate limits on how many requests can be made in a given time. If enough sources are pointing to the same site the last ones will get rate limited and fail to update.

Describe the solution you'd like
Adding a setting to pause fetch requests for a configurable amount of time when a configurable number of requests have been made to a single domain should eliminate this issue.

Describe alternatives you've considered

  • Adding a static delay to all fetch requests would also fix the issue, but that would waste a lot of time when there are sources that aren't at risk of being rate limited.
  • Adding an additional delay option to each individual source would also work, but it would become painful to manage.
  • Adding a setting to wait a configurable amount of time before retrying once when a 429 response is received is probably the best of these 3 alternatives, but it wouldn't work if the source lets rate limited requests time out instead of responding. Also depending on the site's rate limit policy the user might have to wait multiple minutes if they go over the limit instead of pausing early.

Activity

  1. CrystalSplitter commented on Jun 14, 2026

    @CrystalSplitter
    Collaborator

    We have some rate limiting already! However, it's not universally applied. I'm working on it expanding its usage (see fetch-pool.js)

  2. Simx72 commented on Jun 26, 2026

    @Simx72

    I was going to add rate limit to the newsblur api, as it explicitly states that update requests should be made with min 60 secs of waiting.

    However, it'd be hardcoded and not notified to the GUI. Is that ok?

    I found that there is a .fetchFrequency property in RSSSource, is it for that?

  3. CrystalSplitter commented on Jun 26, 2026

    @CrystalSplitter
    Collaborator

    I was going to add rate limit to the newsblur api, as it explicitly states that update requests should be made with min 60 secs of waiting.

    Could you link to the documentation for this? I need to read it carefully.

    I found that there is a .fetchFrequency property in RSSSource, is it for that?

    Maybe, not quite sure what the "min 60 secs of waiting" means. One request per minute, maybe?

  4. Simx72 commented on Jun 28, 2026

    @Simx72

    Yes! In fact, I was talking specifically about the /reader/refresh_feeds endpoint: https://www.newsblur.com/api#/reader/refresh_feeds. Quoting:

    • Up-to-the-second unread counts for each active feed.
    • Poll for these counts no more than once a minute.

    [...] not quite sure what the "min 60 secs of waiting" means. One request per minute, maybe?

    I mean, that's the maximum frequency of request, but if one wants to do less than that, it should be ok of course. Looks like a preventive measure to not overcharge the server.

    Edit: Also .fetchFrequency would not be useful for me in this case anyway, because the server expects the API not to be called, but the RSS sources are separate from the API.

  5. CrystalSplitter commented on Jun 28, 2026

    @CrystalSplitter
    Collaborator

    Ah, a FetchPool of size 1 with refill rate of 1/60 would satisfy this. Keep in mind that await ing on it may mean waiting for a full minute.

  6. added
    enhancement
    on Jun 29, 2026
  7. CrystalSplitter commented on Jul 2, 2026

    @CrystalSplitter
    Collaborator

    Been thinking about the original issue here (beyond just general "let's do rate limiting"): the fetch sources call is asynchronous, but it takes quite a while. Additionally, as a protection, Fluentflame Reader locks the settings panel during fetching.

    Adding a rate limit would make this issue way worse. So I think we need to fix #25 before this.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions