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

Split up basic and param-based rate limits #3145

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tpaulshippy
Copy link

Purpose

Separate the basic IP based rate limits from the rate limits that rely on the request context for performance.
The schema validation required for the request context based rate limits is expensive.

Approach

Process simple IP-based rate-limits before doing auth check & param validation.
Process route-specific param/reqCtx based rate-limits after auth & param validation.
Fix a few issues in #1635 that were revealed by unit tests.

Credit to @dholms for this idea and the original commit.

@tpaulshippy tpaulshippy changed the title Split up ratelimits Split up basic and param-based rate limits Nov 30, 2024
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

Successfully merging this pull request may close these issues.

2 participants