News for hackers. Stuff that matters.
Re:Ask HN: How do you handle WebSocket connections reconnect... by gizmo on Saturday June 03, 2023 @09:00AM (#36176327)
You can have a separate load check endpoint (doesn’t even need tls) for clients to check if the client can go ahead with a websocket (re-)connect. The load status check can be served directly by the web server from memory and the connection can be closed immediately after responding so it’s super fast.

And if the servers are so overloaded that the load level endpoint fails to respond? That’s fine because that’s answer also.

There are no comments on this comment yet.