 The VPchat server deals with this by using a two layered system.The developers observed that a large amount of processing overhead is consumed by the server managing all the connections, at the socket level.A layer of one or more multiplexors (muxes) is implemented, each of which does little more than manage a large group (several thousand per mux) of TCP sockets.