News for hackers. Stuff that matters.
Re:Ask HN: How do you handle WebSocket connections reconnect... by mindcrash on Saturday June 03, 2023 @06:09PM (#36180998)
Instead of letting clients directly interface with your services over websockets, consider using Pushpin [1], which allows you to completely isolate realtime communication from your services.

As a bonus, it also provides you the ability to cycle (redeploy/restart) your services without your clients having to reconnect (that's where the name comes from). And as you can imagine - because communication with your services is entirely stateless it scales like crazy.

[1] https://pushpin.org/

There are no comments on this comment yet.