请问下路由规则接口里 uri/uris,host/hosts对路由匹配速度会有影响吗? #7878
Unanswered
liuguangyu133
asked this question in
Q&A
Replies: 1 comment
-
No impact, so designed for ease of use. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在给apisix做接口封装的时候发现路由规则当中如果是单个路径使用的是 uri(string),多个路径的时候是uris(list);host字段也是同理。
所以我们封装的时候想不做判断,即使只有一条uri也放到uris里,例如 uris: ['/api']
因此想了解下 uri/uris 和 host/hosts这样设计有没有其他什么原因,比如会对路由匹配的速度造成影响之类?
Beta Was this translation helpful? Give feedback.
All reactions