added Upstash Redis rate limiting#461
Open
AnthonyFinney wants to merge 1 commit intorohitdasu:mainfrom
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Owner
|
Code looks good to me, could you please tell me how can i setup redis upstash? I mean from where can i get the credentials? |
Contributor
Author
|
here - https://console.upstash.com/ - make a redis db then you will get the UPSTASH_REDIS_REST_UR and UPSTASH_REDIS_REST_TOKEN it will be under REST put them in the .env and that should do it. |
Owner
Thanks. i'll test it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Issue
[FEATURE] Add Rate Limiting to APIs for Database-Backed Endpoints #417
Changes proposed
I have added two file rateLimiter and withRateLimit which will act as a wrapper for the handler of the apis.
Note to reviewers
I know we were discussing about this so i made the pr req. If there are thing i need change i can do it.
Screenshots
n/a