The invention provides a
server and a
data processing method thereof. The method comprises the following steps of: receiving a connection request from a
client; forming a two-tuple request data packet by using a connection identifier of the connection request and transmitted
byte data, and storing the two-tuple request data packet to a two-tuple request data packet
queue; resolving the two-tuple request data packet into a
java data object, and storing the
java data object to a legal request
java object
queue; searching for an idle thread of a corresponding type according to the request type of the java data object for
processing, forming a
processing result
java object by using a
processing result and the connection identifier, and storing the processing result
java object to a processing result
java object queue; and finding the connection request from a requested connection queue according to the connection identifier, and transmitting the processing result to the
client. By the technical scheme provided by the invention, the processing speed of a
system is high, a thread and a code are less dependent, upgrading and maintaining are convenient, and the
logical process of the
system can be extended to different service rules and service logics without modification.