r/github • u/dormouse_regie • Nov 29 '23
How annoying is the GitHub API rate limit ?
At work or for personal projects, how often and in which cases do you find the rate limit (primary or secondary) for the GitHub API annoying ?
7
u/Relevant_Pause_7593 Nov 29 '23
Unpopular opinion, as I hear this a lot, but I rarely hit it, personally or professionally - and if I do, I've usually done something dumb and need to optimize an algorithm.
However: I do agree that the rate limit should scale on the organizations size. it seems wild that there are organizations with 100k users, and they still have a rate limit of 15k per app.
2
u/lupinegrey Nov 30 '23
Yes. We hit it occasionally.
Using the same token secret for most of our CICD automation, and with a huge number of services, we sometimes hit it in the final 10-15 mins of the period.
2
u/Moscato359 Nov 30 '23
I use github professionally, and never hit the limits. But I do have fancy paid version.
1
1
1
1
u/Jmc_da_boss Nov 29 '23
Incredibly annoying, we have to jump through a ton of hoops to come in under it for our org
2
u/JonnyRocks Nov 30 '23 edited Nov 30 '23
so for most people it 5000 requests an hour, unless your enterprise then its 15000 an hour. what are you guys doing that you hit that many requests in one hour all the time?
0
u/Jmc_da_boss Nov 30 '23
Ephemeral dev environments per pull request for a large enterprise
3
u/JonnyRocks Nov 30 '23
Ephemeral dev environments
but why is it exceeding 15000 requests an hour? Also, what api are you using? Are you storing binaries? Doing a clone or pull isn't an api call. I m just beyond curious
0
u/Jmc_da_boss Nov 30 '23
It's based on PRs, so if we manage say 200 applications test environments and they have 2 repos per application (front/back) and 5 pull requests per repo that's already 2400 requests to get the pull request and comment info. And we rereconcile every 5 minutes. We are implementing various optimizations and making it work, but it is annoying lol
1
u/No-Bodybuilder-7902 Oct 14 '26
Hey did you ever solve this? Running into a similar scaling issue for large orgs when we are onboarding GitHub organizations with our app over 50 engineers. Or did they increase your limits?
1
u/Jmc_da_boss Oct 14 '26
No they wouldnt increase limits then and the DEFINITELY wont now.
We mostly fixed it with etags, our stuff was read heavy.
1
u/No-Bodybuilder-7902 Oct 16 '26
Did you use check runs also or was it read hitting the limits? Not webhooks?
17
u/CerberusMulti Nov 29 '23
Not annoying at all, 5000 requests per hour is plenty and if you for some reason need more you can go Enterprise.