Hi:

You just listed the CDN scenario, but we are an API gateway.

Using enable_websocket as an upstream option may be wrong. For the
grpc protocol, there is no such option.


On Tue, Nov 5, 2019 at 11:14 PM 李凌Lien <[email protected]> wrote:

> &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp;I think the websocket usually means a upstream server
> that serve as websocket server.
> &nbsp; &nbsp; &nbsp;which I think we could move the websocket function
> enable button to upstream configration page.
> &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp;the idea that move the websocket controller to
> upstream is from Cloud Service.&nbsp; &nbsp;&nbsp;
>
>
> &nbsp; &nbsp; I&nbsp; used Alibaba cloud DCDN service before, after setup
> the DCDN(dynamic CDN) domain and upstream, it cloud indicate that whether
> support websocket function。
>
>
>
> Mail&nbsp;from Lien
>
>
> &nbsp;
>
>
>
>
> ------------------&nbsp;原始邮件&nbsp;------------------
> 发件人:&nbsp;"李凌Lien"<[email protected]&gt;;
> 发送时间:&nbsp;2019年11月3日(星期天) 下午5:40
> 收件人:&nbsp;"dev"<[email protected]&gt;;
>
> 主题:&nbsp;[DISCUSS] I think we should move enable_web_socket to routes
> rather in plugin
>
>
>
> &nbsp; &nbsp; Hi guys,
> &nbsp; &nbsp; for now the web socket&nbsp; enable button is hidden in
> proxy-rewrite plugin, which I think is very inconvenient for users to put a
> web-socket server behind APISIX.
> &nbsp; &nbsp;proxy-write is more like NGINX parameter modifier, rather
> than service or function controller to enable or disable some features.
> &nbsp;
> &nbsp; &nbsp;Scenario:
> &nbsp; &nbsp;When I have a web socket server explode URI like this
> /web_socket/123456,(123456 is a URI var)。
> &nbsp; &nbsp;then I create a router&nbsp; /web_socket/*.
> &nbsp; &nbsp;here comes the problem if I use proxy-write, no doubt I want
> keep the URI same to backend server while enable the web-socket .
>
> &nbsp;
> &nbsp;
>
> Mail from Lien@HelloTalk
>
>
> &nbsp;
> &nbsp;



-- 

*MembPhis*
My github: https://github.com/membphis
Apache APISIX: https://github.com/apache/incubator-apisix

Reply via email to