News for hackers. Stuff that matters.
Re:Ask HN: How do you scale WebSocket? by timebomb0 on Wednesday June 29, 2022 @05:02PM (#31925668)
Socket.io has a great article on how you can setup your architecture to scale Web Socket servers: https://socket.io/docs/v4/using-multiple-nodes/
Re:Ask HN: How do you scale WebSocket? by monroewalker on Wednesday June 29, 2022 @07:14PM (#31926898)
The whole article seems to be about sticky sessions which are needed for the long polling fallback transport option Socket.io uses when websockets can't be used.

Eg. from the article: " the WebSocket transport does not have this limitation, since it relies on a single TCP connection for the whole session. Which means that if you disable the HTTP long-polling transport (which is a perfectly valid choice in 2021), you won't need sticky sessions "

Re:Ask HN: How do you scale WebSocket? by bobkazamakis on Wednesday June 29, 2022 @07:31PM (#31927034)
>since it relies on a single TCP connection for the whole session.

still has to exist and stay active. (ie, interact with the correct node)