Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect Google+ API rate limits #12

Open
rjoonas opened this issue May 15, 2018 · 0 comments
Open

Respect Google+ API rate limits #12

rjoonas opened this issue May 15, 2018 · 0 comments

Comments

@rjoonas
Copy link
Contributor

rjoonas commented May 15, 2018

We have an application that utilizes this module and deals with quite a few requests. At peak traffic it will sometimes exhaust the Google+ API quota for the application. When this happens, express-gauth's error handler will log the following (at index.js:130):

GAuth error { GooglePlusAPIError: User Rate Limit Exceeded
message: 'User Rate Limit Exceeded',
name: 'GooglePlusAPIError',
code: 403 }

It'd be useful if we could provide express-gauth with our Google+ API quotas and it would throttle requests. Retrying with an exponential backoff delay might help as well?

Default quotas I'm currently seeing in Google Developer console for Google+ API:

  • 20 000 000 sign-in queries per day
  • 500 sign-in queries per 100 seconds per user
  • 25 000 sign-in queries per 100 seconds

Of course the developers can always request a more lofty quota from Google. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant