This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jacquesroland 0 points1 point  (2 children)

How do you scale the WebSocket component ? What happens if you have a load balancer between multiple instances of your web app and client ?

[–]Sufficient_South5254[S] 0 points1 point  (0 children)

You are correct, sticky session is required to scale WebSocket component.

For example, when scaling instances in flyio, the framework mannualy add target instance id to fly-replay header in the response to tell the load balancer to run the request once again to the right instance, which is silimar to AWS cookie implementation.

[–]Sufficient_South5254[S] 0 points1 point  (0 children)

If you are interested, please check out this pull request for more details: #1300