niemne opened a new pull request, #13297:
URL: https://github.com/apache/apisix/pull/13297

   ### Description
   
   This PR enhances the limit-req plugin by introducing support for dynamic 
variables and multiple rule sets, allowing for more flexible and granular rate 
limiting strategies.
   
   **Key Changes**:
   
   1. Dynamic Variables: The rate and burst parameters now accept string 
variables (e.g. ${http_rate}), enabling dynamic threshold adjustments based on 
request attributes.
   
   2. Multi-Rule Support: Introduced a new rules configuration array. This 
allows defining multiple rate limiting rules (containing rate, burst, and key) 
within a single plugin instance.
   3. Logic Refactoring: Core logic has been refactored into 
apisix/plugins/limit-req/init.lua to handle the new rule resolution and 
processing.
   
   #### Which issue(s) this PR fixes:
   relate issue: https://github.com/apache/apisix/issues/13179
   
   ### Checklist
   
   - [x] I have explained the need for this PR and the problem it solves
   - [x] I have explained the changes or the new features added to this PR
   - [x] I have added tests corresponding to this change
   - [x] I have updated the documentation to reflect this change
   - [x] I have verified that this change is backward compatible (If not, 
please discuss on the [APISIX mailing 
list](https://github.com/apache/apisix/tree/master#community) first)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to