Allows multi-person online communication applications, the server can receive TCP connection requests from the client and HTTP requests. For TCP requests, maintain the connection with the user, and appropriate polls to obtain customer's uplink information, and HTTP Request, return data directly, and the server listening to the specified port to receive commands to the server, such as ShutDown, Reload, etc., while the server should be able to keep synchronization with your mirror server.
The current solution is mainly used by Java NIO mechanism, but it is not sure if the NIO mechanism can be seamlessly combined with traditional blocking socket, it is necessary to determine as soon as possible, on the other hand, as much as possible to understand the Tomcat architecture, draw it The essence part combines the NIO characteristics to write frame code.
After completing the underlying frame, you should test the server's concurrent load capacity as soon as possible.