You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "crazyStar00 (via GitHub)" <gi...@apache.org> on 2023/11/13 06:24:14 UTC

[I] The choice of shenyu rule [shenyu]

crazyStar00 opened a new issue, #5295:
URL: https://github.com/apache/shenyu/issues/5295

   ### Question
   
   I looked at shenyu's source code and found that rule is to find more handlers first, and then find a small order, why do you want to design it so? What do you do with a lot of handlers?
   ![cda3caeb06dae9324e742d56456b77b](https://github.com/apache/shenyu/assets/18380553/4d2b8a34-b2bf-4a0b-838a-5c777283c55f)
   


-- 
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-unsubscribe@shenyu.apache.org.apache.org

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


Re: [I] The choice of shenyu rule [shenyu]

Posted by "moremind (via GitHub)" <gi...@apache.org>.
moremind commented on issue #5295:
URL: https://github.com/apache/shenyu/issues/5295#issuecomment-1809580694

   > Why is "and" a higher priority than "or"?can't understand
   
   `and` means match all conditions, `or` just  one condition, you know `&&` and `||`


-- 
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-unsubscribe@shenyu.apache.org

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


Re: [I] The choice of shenyu rule [shenyu]

Posted by "moremind (via GitHub)" <gi...@apache.org>.
moremind commented on issue #5295:
URL: https://github.com/apache/shenyu/issues/5295#issuecomment-1809597418

   > So, I understand, since they all match, we should `sort` them and take the smallest one
   
   of course, the condition can help many requests match


-- 
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-unsubscribe@shenyu.apache.org

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


Re: [I] The choice of shenyu rule [shenyu]

Posted by "crazyStar00 (via GitHub)" <gi...@apache.org>.
crazyStar00 commented on issue #5295:
URL: https://github.com/apache/shenyu/issues/5295#issuecomment-1809586201

   So, I understand, since they all match, we should `sort` them and take the smallest one


-- 
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-unsubscribe@shenyu.apache.org

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


Re: [I] The choice of shenyu rule [shenyu]

Posted by "crazyStar00 (via GitHub)" <gi...@apache.org>.
crazyStar00 commented on issue #5295:
URL: https://github.com/apache/shenyu/issues/5295#issuecomment-1809381371

   Why is "and" a higher priority than "or"?can't understand


-- 
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-unsubscribe@shenyu.apache.org

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


Re: [I] The choice of shenyu rule [shenyu]

Posted by "moremind (via GitHub)" <gi...@apache.org>.
moremind commented on issue #5295:
URL: https://github.com/apache/shenyu/issues/5295#issuecomment-1809582234

   this means `Maximum matching principle`


-- 
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-unsubscribe@shenyu.apache.org

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


Re: [I] The choice of shenyu rule [shenyu]

Posted by "moremind (via GitHub)" <gi...@apache.org>.
moremind commented on issue #5295:
URL: https://github.com/apache/shenyu/issues/5295#issuecomment-1809597890

   > > So, I understand, since they all match, we should `sort` them and take the smallest one
   > 
   > of course, the condition can help many requests match
   
   and I think this need to discuss


-- 
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-unsubscribe@shenyu.apache.org

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


Re: [I] The choice of shenyu rule [shenyu]

Posted by "crazyStar00 (via GitHub)" <gi...@apache.org>.
crazyStar00 commented on issue #5295:
URL: https://github.com/apache/shenyu/issues/5295#issuecomment-1809585473

   When entering `manyMatchRule` methods, all the rules are matched. Because the unmatched rule is already excluded from the `matchRule` method.


-- 
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-unsubscribe@shenyu.apache.org

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