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

Rate Limiting PoC #3294

Closed
wants to merge 1 commit into from
Closed

Rate Limiting PoC #3294

wants to merge 1 commit into from

Conversation

alpeb
Copy link
Member

@alpeb alpeb commented Oct 23, 2024

Some caveats:

  • This doesn't abide yet to the agreed API as declared in Add support for HTTP local rate limiting linkerd2-proxy-api#388 . Instead, this is based on an earlier API proposal using "specifiers" to define the buckets keys.
  • The limiting logic has been added directly into the inbound http policy middleware. It relies on governor. If we're not allowing to configure bursting in the first implementation, we might reconsider implementing something simpler directly ourselves.
  • There is actually an additional middleware (RateLimitPolicyService) that is currently commented out (used in the initial demo), that implemented a simpler approach, inspired by Tower's own rate-limiting middleware.

Some caveats:

- This doesn't abide yet to the agreed API as declared in linkerd/linkerd2-proxy-api#388 . Instead, this is based on an earlier API proposal using "specifiers" to define the buckets keys.
- The limiting logic has been added directly into the inbound http policy middleware. It relies on [governor](https://docs.rs/governor/latest/governor/). If we're not allowing to configure bursting in the first implementation, we might reconsider implementing something simpler directly ourselves.
- There is actually an additional middleware (`RateLimitPolicyService`) that is currently commented out (used in the initial demo), that implemented a simpler approach, inspired by Tower's own rate-limiting middleware.
@alpeb alpeb requested a review from a team as a code owner October 23, 2024 17:27
@alpeb alpeb marked this pull request as draft October 23, 2024 17:32
@alpeb
Copy link
Member Author

alpeb commented Oct 30, 2024

Closing in favor of #3305 and #3307

@alpeb alpeb closed this Oct 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.

1 participant