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

Add rate limiter to api #59

Open
smallketchup82 opened this issue Aug 20, 2024 · 0 comments
Open

Add rate limiter to api #59

smallketchup82 opened this issue Aug 20, 2024 · 0 comments

Comments

@smallketchup82
Copy link
Member

smallketchup82 commented Aug 20, 2024

this should be relatively easy. just search up asp.net rate limiter

also the use for this is making sure the api doesn’t suddenly get flooded with requests & overwhelm the server.

the database can’t be used concurrently so most of galaxygpt is still being run synchronously. we need to limit the amount of requests to something high enough that it won’t disrupt normal usage, and low enough that it’ll filter out spam

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

2 participants