HTTP/2 RFC 8441 WebSockets (Multiple websocket connections over a single TCP connection) #1057
Replies: 1 comment
-
Regarding HTTP/2 and https://www.rfc-editor.org/rfc/rfc8441.html - it's generally interesting, and it should be possible in Go now, or very soon (need to read golang/go#53208 more carefully). The question here though is how traffic is load balanced. Usually Centrifugo nodes are placed behind reverse-proxy or load balancer. So in this scenario need to understand whether balancer proxies HTTP/2 traffic to the backend upstream, or it's HTTP/1.1 traffic. So maybe https://www.rfc-editor.org/rfc/rfc8441.html should be first supported on that level. If you see the potential of having that with you stack – let me know, any information may help to have a better understanding. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was recently reading Falcon's async websockets guide here: https://socketry.github.io/async-websocket/guides/rails-integration/index#using-http/2
Found this piece interesting:
Centrifugo does have a question about this in it's FAQ: https://centrifugal.dev/docs/faq#does-centrifugo-work-with-http2
Asking Claude about this, it seems that Falcon implemented what is known as "RFC 8441 WebSockets". Even tough this is from 2018, it seems that it's not widely implemented, but the mention that it can support multiple Websocket connections over a single TCP connection seems interesting.
Curious to know what the impact on scaling this could unlock for Centrifugo - if any -, and if there's any plan to support this in the future.
Beta Was this translation helpful? Give feedback.
All reactions