Answer the question
In order to leave comments, you need to log in
Websockets in a cluster?
There are n-th number of servers that nginx stands in front of and distributes the load (round robin) on them.
Accordingly, when a request comes to the back of any server, after that, a push occurs, which is already distributed to any other server and, accordingly, there will be no push on the server where the back is.
Are there any ready-made solutions like Pusher or experience in creating your own pusher service?
Answer the question
In order to leave comments, you need to log in
Switch to ip_hash
or stop believing in goodness and open source by buying Nginx + / HAProxy where there are sticky sessions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question