dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

[Feature] Websocket Support For Triple Protocol

Open oxsean opened this issue 1 year ago • 3 comments

Background

The Triple protocol is based on HTTP/2 and implements bidirectional communication using streams. WebSocket's long connection and event features are very suitable for RPC scenarios, so we consider using WebSocket as the communication layer for Triple, giving users more options.

In terms of specific implementation, we do not want to change the existing Triple protocol but rather adapt the Triple frame model to WebSocket frames. This can be done by referencing the approach used in HTTP/3.

Next Step

high-level design

oxsean avatar Jun 07 '24 13:06 oxsean

If you are interested in this, please leave a message to participate. However, implementing a new communication layer is quite challenging, so it is best if you have extensive experience with Netty

oxsean avatar Jun 07 '24 13:06 oxsean

I'm interested. Please assign it to me.

finefuture avatar Jun 21 '24 09:06 finefuture

Adapt the websocket frames model to the http2 frames, reuse the request processing flow of http2. websocket on triple—Netty

Extend the Endpoint and MessageHandler of javax.websocket, adapt the websocket on netty request processing model. websocket on triple—javax websocket

finefuture avatar Jun 28 '24 09:06 finefuture