kingluo commented on issue #7872:
URL: https://github.com/apache/apisix/issues/7872#issuecomment-1237967373

   @ynsdl 
   With workflow plugin, you could implement your logic.
   
https://github.com/apache/apisix/blob/47187faccd96d02773fb1c71980c8ca0ea838d6a/docs/en/latest/plugins/workflow.md
   
   For example:
   
   ```json
   {
        "case":[
                ["http_x_yunus_api_key", "==", "xxx"]
        ],
        "actions":[
                [
                "limit-req": {
                        "rate": 5,
                        "burst": 10,
                        "rejected_code": 503,
                        "key_type": "var",
                        "key": "http_x_yunus_api_key"
                }
                ]
        ]
   }
   ```
   
   However, currently, it only supports limit-conn, we may integrate limit-req 
into workflow plugin later.


-- 
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