Skip to content

Mitigate API hammering with high notification counts #1997

@grahamj

Description

@grahamj

Hi, you might remember me from such feature suggestions as #1857

Long story short, today we figured out that my use of Gitify has been bringing my team's GHE to its knees 🐼 For a 1-minute period I see Gitify requesting many pages of notifications and then close to 300 each of pulls and reviews. Root cause is I don't clear out old merged PR notifications because I use Gitify which helpfully filters them.

Now I realize this is what it's supposed to do and it's my bad for not cleaning up my notifications. But in my defence:

  • The vast majority of those 300 PRs are merged
  • Thanks to your gracious addition of merged filtering I never see them in Gitify
  • The main reason I use Gitify is to avoid GH notifications because it doesn't do that filtering

I don't think the notifications API provides PR status so avoiding the /pulls is probably impossible. But a couple of other possibilities that come to mind are:

  • Option to automatically mark filtered notifications as read
  • Option to limit considered notifications by number or time
  • Configurable API call rate limiting
  • Even if /pulls is necessary maybe don't grab /reviews for filtered PRs

I guess this is more of a discussion starter than request per se. Thanks for Gitify!

Activity

added
enhancementNew feature or enhancement to existing functionality
on May 8, 2025
setchy

setchy commented on May 8, 2025

@setchy
Member

A great discussion to have - thanks for starting it @grahamj.

Option to limit considered notifications by number or time

To confirm, I assume this option doesn't meet your needs / workflow?

Image
setchy

setchy commented on May 8, 2025

@setchy
Member

Even if /pulls is necessary maybe don't grab /reviews for filtered PRs

This is a good suggestion, though could be tricky to implement. At the moment the filtering occurs as a post processing step once the raw notifications have been enriched, since some of the filters are actually derived values.

grahamj

grahamj commented on May 9, 2025

@grahamj
Author

A great discussion to have - thanks for starting it @grahamj.

Option to limit considered notifications by number or time

To confirm, I assume this option doesn't meet your needs / workflow?

sigh I did not notice that option, sorry 🤦🏻‍♂️ That combined with staying on top of my GH notifications should solve the issue for me.

The other ideas might be worth considering anyway though.

added theissue type on May 26, 2025
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

    enhancementNew feature or enhancement to existing functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Mitigate API hammering with high notification counts · Issue #1997 · gitify-app/gitify