envoyproxy / envoyproxy/envoy

Support custom intervals for rate limit

Open
#40,222 6 comments 1 reaction 1 assignee Claimed by @talnordan View on GitHub
area/ratelimit enhancement help wanted
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 20h
Merged PRs (30d)
437

Description

*Title*: *Support custom intervals for rate limit*

*Description*:

Currently, rate limiting only supports predefined time units (Second, Minute, Hour, Day). This limitation forces users to work around scenarios where custom intervals (e.g., 30 seconds, 5 minutes) are required for precise rate limiting control.

Current Limitation

```
rate_limit:
requests_per_unit: 5
unit: SECOND
```

Expected:

```
rate_limit:
requests_per_unit: 5
unit: SECOND
interval: 30
```

Envoy Gateway issue: https://github.com/envoyproxy/gateway/issues/6486

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.