1

i want to deploy websockets on multiple servers with horizontal scaling. i don't know what to use. redis pub/sub? haproxy? i wanna know your opinions. ❤️

Comments
  • 0
    As long as your client has a persistent connection to a single node and your persistence layer can handle scaling you shouldn't need any of that, right?
  • 1
    @ScriptCoded yes. but i forget it. i wanna communicate two different clients. and i don't know if they are on the same server 😓
  • 1
    @russitto Oh right, didn't think about it. Yeah in this case Redis would probably work pretty nicely. But tbh I've never done it myself :)
  • 1
    @ScriptCoded maybe i'll try redis pub/sub. thx ❤
  • 1
    Think there are indeed many ways to solve this. It is a routing issue. Depending on the network it could be solved with ipv6 broadcasts or direct RPC communication. A normal persistent layer, message queue or any other pub/sub thingy and things like groupcache or other distributed systems solution.
    This article might interest you:
    https://crisp.chat/blog/...
  • 1
    :b kubernetes and Redis should be nice start
Add Comment