Has anyone try to build load balancer for websocket connections on 4 websocket servers?

hskang9
PRO

10 days ago

I wanted to use replicas to make my websocket server available to clients over 200 connections while processing internal requests, but I realized that each replica sends duplicate DB write request, making all websocket server to fail on DB connection. As far as I know, DB in railway cannot have replicas.

Due to this, I made each websocket server connected with separate DB client. Each websocket server's public domain is separate. I can make my client to get number of connections on each server and connect, but is there any way I can just handle this on backend with replicas or some nginx proxy manager using internal network in railway?

$10 Bounty

1 Replies

Railway
BOT

10 days ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!