Skip to content

Implements rate-limiting #890

Closed

Description

@FlorentinDUBOIS

Hey 👋,

Following some discussions, we could provide the feature to rate-limit calls on listener, frontends or clusters (you should discuss at which level, we implements that)?

There is a rfc drafted by the ietf, based on feedbacks from how Twitter and GitHub have implemented it.

https://www.ietf.org/archive/id/draft-polli-ratelimit-headers-02.html


Update — 2026-04-24

Design landed on feat/h2-mux (PR #1209) but implementation is still pending:

  • 0031aadb docs(rate-limit): design for per-tenant 429 + per-source-IP cap (B3-x) — captures the per-tenant 429 and per-source-IP cap design (see doc/rate-limit-design.md). Reject responses emit Retry-After + X-Sozu-RateLimit-Rule headers via the existing answers::HttpAnswers machinery, and a rate_limit.rejected.* counter family.

Implementation (token bucket accounting, listener/cluster scoping, wire-up to the config parser) will land in a follow-up. Aligning the response headers with draft-polli-ratelimit-headers (referenced in the original post) is not part of the current design and would be a separate addition.

Keep this issue open until the implementation ships.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions