liangliang4ward commented on issue #6580:
URL: https://github.com/apache/apisix/issues/6580#issuecomment-1068628809
> > > 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"
> }
> ]
> }
> }
> ```
It's that support something a little more flexible? For example, when
hamc-auth supports `or` mode, multiple configurations?
--
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]