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

Identify Users by PantryID for Rate Limiting #153

Merged
merged 1 commit into from
Mar 29, 2022

Conversation

imRohan
Copy link
Owner

@imRohan imRohan commented Mar 29, 2022

When applying rate-limiting to a api endpoint, we need to identify users
by a pantryID. By not uniquely identifying users, all users will be rate
limited after the request threshold is reached by a user.

This change addresses the need by:

  • Passing the pantryID as the key to the rate-limiting middleware

When applying rate-limiting to a api endpoint, we need to identify users
by a pantryID. By not uniquely identifying users, all users will be rate
limited after the request threshold is reached by a user.

This change addresses the need by:
* Passing the pantryID as the key to the rate-limiting middleware
@imRohan imRohan added the Ready for Review Once you've squashed your commits, the PR is now ready for review! label Mar 29, 2022
@imRohan imRohan self-assigned this Mar 29, 2022
@imRohan imRohan merged commit f1a7b92 into master Mar 29, 2022
@imRohan imRohan deleted the rl-identify-account-for-rate-limiting branch March 29, 2022 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for Review Once you've squashed your commits, the PR is now ready for review!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant