3 ms·
In this case, nginx is simply relaying data over an active connection on each. There is an open socket between the client and nginx, and nginx and the backend,
by jabr 14y ago
In this case, nginx is simply relaying data over an active connection on each. There is an open socket between the client and nginx, and nginx and the backend, for every WebSocket.
There is not a port limit issue, however, as nginx can create more than one connection to a local backend server using unix domain sockets. But the backend server has to then manage multiple open connections, as well, one for each WebSocket.
- jeltz 14y agoIt is a problem if you for some reason cannot use unix sockets. For example if the application server is either running on a different machine or does not have any unix socket implementation.