Skip to content

feat(limit-count): support configuring multiple rules#12977

Open
shreemaan-abhishek wants to merge 3 commits intoapache:masterfrom
shreemaan-abhishek:chore/multi-rule
Open

feat(limit-count): support configuring multiple rules#12977
shreemaan-abhishek wants to merge 3 commits intoapache:masterfrom
shreemaan-abhishek:chore/multi-rule

Conversation

@shreemaan-abhishek
Copy link
Contributor

@shreemaan-abhishek shreemaan-abhishek commented Feb 5, 2026

Description

After adding the support for usage of variables in rate limiting configuration via #12967, we can further take advantage of this dynamic construction of rate limiting rule by allowing to configure multiple rate limiting rules to implement intricate rate limiting strategies.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. enhancement New feature or request labels Feb 5, 2026
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
| time_window | integer | True | | > 0 | The time interval corresponding to the rate limiting `count` in seconds. |
| count | integer | False | | > 0 | The maximum number of requests allowed within a given time interval. Required if `rules` is not configured. |
| time_window | integer | False | | > 0 | The time interval corresponding to the rate limiting `count` in seconds. Required if `rules` is not configured. |
| rules | array[object] | False | | | A list of rate limiting rules. Each rule is an object containing `count`, `time_window`, and `key`. |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add rows for rules.count, rules.time_winddow, and rules.key.

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

Labels

enhancement New feature or request size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants