DEV Community

loading...

Discussion on: Horizontal scaling WebSockets on Kubernetes and Node.js

Collapse
rmgrimm profile image
Rob Grimm

Sure, if the client was build with reconnect logic, then the client will reconnect.

So it seems like something to keep in mind when adding HPA to websockets: make sure the websocket clients can gracefully handle connection drops at any time 👍

Thread Thread
tareksamni profile image
Tarek N. Elsamni Author

ActionCable, Socket.io and WebSocket library do reconnect automatically when connection is dropped. But as you mentioned you should always think about such scenarios in planning a reliable software