I have a load balancer set up on GCP to distribute traffic between instances, but I'm facing an issue with maintaining websocket connections when clients are directed to different instances. Is there a solution that would allow clients to join websocket rooms that were created on different instances?
Solved! Go to Solution.
Hi @rohan_kamble ,
If you are looking for this kind of option, allowing clients to join websockets created on a different instance, there should be a load balancer as well on that instance. There is a parameter available for load balancer that allows you to do that using Session Affinity.
Hi @rohan_kamble ,
If you are looking for this kind of option, allowing clients to join websockets created on a different instance, there should be a load balancer as well on that instance. There is a parameter available for load balancer that allows you to do that using Session Affinity.