Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

基于TCP的其他协议扩展 #2376

Open
xueqiwang0v0 opened this issue Jan 23, 2024 · 1 comment
Open

基于TCP的其他协议扩展 #2376

xueqiwang0v0 opened this issue Jan 23, 2024 · 1 comment

Comments

@xueqiwang0v0
Copy link

Your question

  1. Websocket、MQTT等长连接协议是否可以使用XProtocol框架实现?
  2. 如果不能使用XProtocol,是否按照Mosn 20年的博客所说:“协议自身的处理以及与框架集成才是其中最困难的环节,需要理解并实现包括请求生命周期、多路复用处理、链接池等等机制”?
  3. 目前PR中实现的Websocket不支持长连接迁移,如果实现的协议需要支持长连接迁移,需要自行实现哪些部分?

Environment

  • v1.6.0
@taoyuanyuan
Copy link
Contributor

xprotocol框架任何协议都可以去适配,比如可以用networkfilter+xprotocol写一个任意的协议支持。

但如果要复用streamfilter的proxy整套框架,需要是rpc类型的协议,request/response,典型的就是dubbo,sofa,http1这种。
你可以看看websocket和mqtt是否适合那种。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants