摘要 |
The application discloses a data transmission method and device. In one embodiment, the method comprises: in response to a connection request transmitted by a client, generating, a transmission interface configured to transmit service data to the client; receiving a service data processing request transmitted by the client, with respect to service data to be processed, and comprising a service type to which the service data to be processed belong; determining, based on the service type, a service data processing thread configured to process the service data processing request; utilizing the service data processing thread to process the service data processing request, and transmitting, via the transmission interface, and to the client, service data generated after the service data processing thread processes the service data processing request. Therefore, the embodiment prevents a problem of an increased system overhead owing to synchronous operations between threads corresponding to the transmission interface when transmitting data via the transmission interface, reducing system overhead during data transmission. |