bzp2010 commented on issue #2284:
URL: 
https://github.com/apache/apisix-dashboard/issues/2284#issuecomment-1022783180


   Hi, @stutipatelorigo 
   You can create multiple routes with different priorities for the different 
paths you need to match, and they will be matched in turn.
   
   Again, no matter what optimizations are made to match regular expressions, 
it is a costly operation to perform and you may want to avoid performing one or 
more regular matches per request by other engineering means whenever possible. 
For example, using a header, a cookie, or some kind of token containing the 
above information (you can handle it with a custom plugin) are relatively more 
viable options.
   If we were to natively support the `{params}` syntax, as some Golang 
frameworks do, we wouldn't be able to use radixtree to provide extremely 
efficient route matching, so using this pattern would cause performance 
degradation in either the route matching phase or the HTTP request processing 
phase, so it's a tradeoff.
   


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