Skip to content
Discussion options

You must be logged in to vote

Without a load balancer I have a theoretical limit of 65k concurrent users as the websocket connects to each server port.

This is backwards. TCP connections are identified by Client IP + Port + Server IP + Port. A client uses unique client ports for each connection to the server, but the server uses the same port for all incoming connections. As such, a client is limited to 65k outbound connections to the same server IP + Port, but a server is not limited to 65k inbound connections from different clients.

Adding a proxy/load balancer actually makes the situation worse because the proxy becomes the client to the server and can only open 65k outbound connections to that server.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@JuanLND
Comment options

@Tratcher
Comment options

@samsp-msft
Comment options

@JuanLND
Comment options

@Tratcher
Comment options

Tratcher Feb 1, 2022
Collaborator

Answer selected by samsp-msft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants