How to handle more than 65535 active connections? How to load balance it properly?
I think that it is possible if we use orchestration. So, we need to ask a special service which server we must contact. But I don't like this solution only because we don't know which node exactly we have to give to the user. If we give the server with the lowest number of WebSocket connections there can be a big percentage of active connections (30k for example) and the performance can suffer. If we give the server with the lowest number of active connections it can be changed soon (users which were passive became active) and performance can suffer again.
How to properly load balance connections to distribute load almost equally among servers?