tokers commented on issue #6580:
URL: https://github.com/apache/apisix/issues/6580#issuecomment-1068627411


   > > Imagine the user has defined a Service with plugin A and priority 5. 
Now, they define a route with plugin B and C.
   > > How would you compute the order based on the array?
   > 
   > That's tricky. We may think about another way to allow a plugin can be run 
multiple times but still use the object to store their config. I'm wondering if 
there are some circumstances that people want to run the same plugin in a 
single route but not continuously (e.g. run plugin A, plugin B, plugin A).
   
   If not, what about the following way:
   
   ```json
   {
       "uri": "/api/*",
       "host": "foo.com",
      "plugins": {
          "limit-count": [
             {
                "time_window": 60,
                "count": 10,
                "key": "remote_addr"
             },
             {
                "time_window": 1,
                "count": 5,
                "key": "route_id"
             }
          ] 
       }
   }
   
   ```


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to