Data processing method, device, electronic device and storage medium

By establishing a communication connection between multiple clients and servers on the web server side, and using the data connection pool to transmit data, the problem of low data processing efficiency under multiple client connection requests is solved, and high -combined and efficient data processing is achieved.

CN116074367BActive Publication Date: 2025-01-24INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310275033.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-20
Publication Date
2025-01-24
Estimated Expiration
2043-03-20

AI Technical Summary

Technical Problem

In the prior art, when multiple clients issue connection requests simultaneously, it is difficult to effectively establish communication connections and process data.

Method used

In response to the data processing requests of different clients, establish a communication connection between the client and the server, and use multiple transmission channels in the data connection pool to transmit the data packet to be processed to determine the status of the target communication connection to ensure that the data processing is normal. Essence

Benefits of technology

The high -combined connection and data transmission are achieved, which improves the efficiency of data processing, and solves the difficulty of processing data under the request of the multi -client connection of the web server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116074367B_ABST
    Figure CN116074367B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data processing method, device, electronic device and storage medium, which can be applied to the field of computer technology. The method includes: in response to data processing requests sent by different clients, establishing corresponding communication connections between different clients and servers; determining multiple target communication connections according to a communication connection in which a first communication connection state is normal in multiple communication connections; transmitting data packets to be processed in data processing requests corresponding to multiple target communication connections through multiple transmission channels in a data connection pool; in the case of determining that the data processing pool receives the data packets to be processed, determining the second communication connection states of the multiple target communication connections through the data processing pool; in the case of determining that the second communication connection states of the multiple target communication connections represent that the communication connections are normal, processing the data packets to be processed to obtain target data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more specifically, to a data processing method, device, electronic device, storage medium, and computer program product. Background Art

[0002] In the related art, servers can be divided into web servers, website servers and application servers. Web servers mainly provide web services, website page services, email services, network download services, etc. In a broad sense, they respond to requests and then provide services.

[0003] In the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in the related art: In the related art, when multiple clients send connection requests at the same time, the web server cannot establish a communication connection and process data well. Summary of the invention

[0004] In view of this, the present disclosure provides a data processing method, apparatus, electronic device, storage medium and computer program product.

[0005] One aspect of the present disclosure provides a data processing method, comprising:

[0006] In response to data processing requests respectively sent by different clients, establishing corresponding communication connections between different clients and the server, wherein the data processing requests include data packets to be processed;

[0007] Determining multiple target communication connections according to a communication connection in which a first communication connection state is normal among the multiple communication connections;

[0008] According to a first number of the plurality of target communication connections, transmitting to-be-processed data packets in the data processing requests corresponding to the plurality of target communication connections respectively through the plurality of transmission channels in the data connection pool;

[0009] In the case of determining that the data processing pool receives the data packet to be processed, determining the second communication connection state of the plurality of target communication connections through the data processing pool;

[0010] When it is determined that the second communication connection states of the plurality of target communication connections represent that the communication connections are normal, the data packets to be processed are processed to obtain target data.

[0011] According to an embodiment of the present disclosure, according to a first number of multiple target communication connections, transmitting to-be-processed data packets in data processing requests corresponding to each of the multiple target communication connections through multiple transmission channels in a data connection pool includes:

[0012] Determining a second number of transmission channels from a plurality of transmission channels in a data connection pool according to a first number of the plurality of target communication connections;

[0013] The data packets to be processed in the data processing requests corresponding to each of the plurality of target communication connections are transmitted through the second number of transmission channels.

[0014] According to an embodiment of the present disclosure, wherein the number of the plurality of transmission channels is a third number, determining a second number of transmission channels from the plurality of transmission channels of the data connection pool according to the first number of the plurality of target communication connections includes:

[0015] In a case where it is determined that the first number is greater than the third number, taking the third number as the second number, and determining the second number of transmission channels from the plurality of transmission channels in the data connection pool;

[0016] When it is determined that the first number is less than or equal to the third number, the first number is used as the second number, and the second number of transmission channels is determined from the plurality of transmission channels in the data connection pool.

[0017] According to an embodiment of the present disclosure, transmitting the to-be-processed data packets in the data processing requests corresponding to each of the plurality of target communication connections through the second number of transmission channels includes:

[0018] In the case where it is determined that the first number is greater than the third number, determining a second number of first target communication connections from the first number of the plurality of target communication connections;

[0019] Transmitting the to-be-processed data packets in the data processing request corresponding to the second number of first target communication connections through the second number of transmission channels, wherein the second number of transmission channels corresponds one-to-one to the second number of first target communication connections;

[0020] In the case where it is determined that the first number is less than or equal to the third number, using the first number of multiple target communication connections as the second number of second target communication connections;

[0021] The data packets to be processed in the data processing request corresponding to the second number of second target communication connections are transmitted through the second number of transmission channels, wherein the second number of transmission channels correspond one-to-one to the second number of second target communication connections.

[0022] According to an embodiment of the present disclosure, when it is determined that the data processing pool receives a data packet to be processed, determining the second communication connection state of multiple target communication connections through the data processing pool includes:

[0023] When it is determined that the data processing pool has received the data packet to be processed, a heartbeat detection is performed on a plurality of target communication connections through the data processing pool to obtain a heartbeat detection result;

[0024] Based on the heartbeat detection result, a second communication connection state of the plurality of target communication connections is determined.

[0025] According to an embodiment of the present disclosure, determining multiple target communication connections according to a communication connection characterized as a normal first communication connection state among multiple communication connections includes:

[0026] In response to the scheduled task, determining, by a listener, a first communication connection state of the plurality of communication connections;

[0027] A plurality of target communication connections are determined based on the first communication connection state being a normal communication connection.

[0028] According to an embodiment of the present disclosure, the above method further includes:

[0029] When it is determined that the first communication connection state of at least one communication connection among the plurality of communication connections has abnormality, the communication connection having the abnormality in the first communication connection state is disconnected by a listener.

[0030] According to an embodiment of the present disclosure, the above method further includes:

[0031] In the case where it is determined that the first number is greater than the third number, determining a third number of target communication connections from the plurality of target communication connections;

[0032] When it is determined that at least one of the second number of transmission channels corresponding one-to-one to the second number of target communication connections is in an idle state, the idle transmission channel is used to transmit the to-be-processed data packets in the data processing request corresponding to the third number of target communication connections.

[0033] Another aspect of the present disclosure provides a data processing device, comprising:

[0034] An establishing module, used for establishing corresponding communication connections between different clients and the server in response to data processing requests respectively sent by different clients, wherein the data processing requests include data packets to be processed;

[0035] A first determining module, configured to determine a plurality of target communication connections according to a communication connection in which a first communication connection state is normal among the plurality of communication connections;

[0036] A first transmission module, configured to transmit, according to a first number of the plurality of target communication connections, to-be-processed data packets in the data processing requests corresponding to the plurality of target communication connections respectively through the plurality of transmission channels in the data connection pool;

[0037] A second determination module is used to determine the second communication connection state of the plurality of target communication connections through the data processing pool when it is determined that the data processing pool has received the data packet to be processed;

[0038] The processing module is used to process the data packet to be processed to obtain target data when it is determined that the second communication connection state of the plurality of target communication connections indicates that the communication connection is normal.

[0039] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method.

[0040] Another aspect of the present disclosure provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to perform the above-mentioned data processing method.

[0041] Another aspect of the present disclosure provides a computer program product, the computer program product comprising computer executable instructions, and the computer executable instructions are used to implement the data processing method when executed.

[0042] According to the embodiments of the present disclosure, because the communication connections corresponding to different clients and servers are established in response to data processing requests sent by different clients, multiple target communication connections are determined according to the communication connection whose first communication connection state is normal in the multiple communication connections, and the pending data packets in the data processing requests corresponding to the multiple target communication connections are transmitted through the multiple transmission channels in the data connection pool, and when it is determined that the data processing pool has received the pending data packets, the second communication connection states of the multiple target communication connections are determined through the data processing pool, and when it is determined that the second communication connection states of the multiple target communication connections represent that the communication connections are normal, the pending data packets are processed to obtain the target data. Since there are multiple transmission channels in the data connection pool, multiple communication connections can be established at the same time, and the target communication connection whose first communication connection state is normal is determined from the multiple communication connections. The multiple target communication connections can transmit the pending data packets through the multiple transmission channels in the data connection pool, which can achieve high-concurrency connection establishment and improve the efficiency of data transmission. Furthermore, the data processing pool can be used to process multiple data packets to be processed, thereby improving the efficiency of data processing and reducing the time that the target communication connection occupies the transmission channel. Therefore, it at least partially overcomes the technical problem in the related art that the web server cannot well establish a communication connection and process data when multiple clients simultaneously send connection requests. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0044] Figure 1 An exemplary system architecture to which a data processing method according to an embodiment of the present disclosure can be applied is schematically shown;

[0045] Figure 2 A flowchart schematically shows a data processing method according to an embodiment of the present disclosure;

[0046] Figure 3 A schematic diagram schematically shows a scenario in which the data processing method according to an embodiment of the present disclosure can be applied;

[0047] Figure 4 A flowchart schematically shows a data processing method according to another embodiment of the present disclosure;

[0048] Figure 5 A block diagram schematically shows a data processing device according to an embodiment of the present disclosure; and

[0049] Figure 6 A block diagram of an electronic device suitable for implementing the data processing method described above according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0050] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0051] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0052] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0053] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0054] In the technical solution disclosed in the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and do not violate public order and good morals.

[0055] In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.

[0056] In recent years, the scale of data center servers has shown explosive growth, among which the fastest growing number of servers is mainly concentrated in the cheap X86 open platform system, and the number of servers built on this open platform system has increased exponentially on this basis. Therefore, ordinary web servers cannot support high-concurrency connection requests and data processing.

[0057] In view of this, an embodiment of the present disclosure provides a data processing method. The method includes establishing corresponding communication connections between different clients and servers in response to data processing requests respectively sent by different clients, wherein the data processing request includes a data packet to be processed; determining multiple target communication connections according to a communication connection in multiple communication connections that indicates that the first communication connection state is normal; transmitting the data packets to be processed in the data processing request corresponding to each of the multiple target communication connections through multiple transmission channels in a data connection pool according to the first number of the multiple target communication connections; determining the second communication connection state of the multiple target communication connections through the data processing pool when it is determined that the data processing pool receives the data packet to be processed; and processing the data packet to be processed to obtain the target data when it is determined that the second communication connection state of the multiple target communication connections indicates that the communication connection is normal.

[0058] Figure 1 The exemplary system architecture 100 to which the data processing method according to the embodiment of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0059] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0060] The user may use at least one of the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0061] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0062] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0063] It should be noted that the data processing method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the data processing device provided in the embodiment of the present disclosure can generally be set in the server 105. The data processing method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the data processing device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0064] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0065] Figure 2 The flowchart of the data processing method according to the embodiment of the present disclosure is schematically shown.

[0066] like Figure 2 As shown, the method includes operations S210 to S250.

[0067] In operation S210, in response to data processing requests respectively sent by different clients, corresponding communication connections are established between different clients and the server, wherein the data processing requests include data packets to be processed.

[0068] According to an embodiment of the present disclosure, the client may be an application installed in a terminal device. For example, the client may be a shopping application, a chat application, or a news reading application. The server may be a web server.

[0069] According to an embodiment of the present disclosure, the data processing request may be sent based on the Transmission Control Protocol (TCP) or the Internet Protocol (IP).

[0070] According to an embodiment of the present disclosure, the data packet to be processed may be address information of the client, kernel version information, or other performance information.

[0071] According to the embodiments of the present disclosure, each client may establish a communication connection with the server, thereby obtaining multiple communication connections.

[0072] According to an embodiment of the present disclosure, a communication connection may be established through a proxy layer, and multiple proxy points may be set in the proxy layer. For example, multiple clients may establish connections with a server through one proxy point, and the proxy point may maintain connection with the server.

[0073] In operation S220, a plurality of target communication connections are determined according to the communication connection whose first communication connection state is normal among the plurality of communication connections.

[0074] According to an embodiment of the present disclosure, the first communication connection state of the communication connection may be detected to obtain a communication connection state detection result. For example, a heartbeat detection packet may be sent to the client at regular intervals to obtain the first communication connection state of the communication connection.

[0075] In operation S230, data packets to be processed in data processing requests corresponding to each of the plurality of target communication connections are transmitted through a plurality of transmission channels in a data connection pool according to a first number of the plurality of target communication connections.

[0076] According to an embodiment of the present disclosure, a data connection pool may include multiple transmission channels, and the number of transmission channels may be preset based on expert experience.

[0077] According to an embodiment of the present disclosure, each target communication connection can be matched with a transmission channel. Therefore, based on the first number of multiple target communication connections, a certain number of transmission channels can be determined from the data connection pool to transmit the data packets to be processed.

[0078] For example, when the number of transmission channels in the data connection pool is greater than the first number, a one-to-one correspondence between the first number of transmission channels and the first number of target communication connections can be determined from the transmission channels in the data connection pool, for transmitting the data packets to be processed. When the number of transmission channels in the data connection pool is less than the first number, a one-to-one correspondence between the target communication connections having the same number as all the transmission channels in the data connection pool and the transmission channels can be used for transmitting the data packets to be processed, and after the transmission of the data packets to be processed is completed, a new transmission channel is released for the target communication connection that has not yet transmitted to transmit the data packets to be processed.

[0079] According to an embodiment of the present disclosure, the transmission channels in the data connection pool can also be reused. After a target communication connection completes data transmission, the connection can be disconnected, and the transmission channel used by the current target communication connection will be released. The next target communication connection can use the idle transmission channel for data transmission.

[0080] According to an embodiment of the present disclosure, setting a data connection pool can increase the number of received communication connections, which helps to process high-concurrency data processing requests.

[0081] In operation S240, when it is determined that the data processing pool receives the data packet to be processed, the second communication connection states of the plurality of target communication connections are determined by the data processing pool.

[0082] According to an embodiment of the present disclosure, the data processing pool may be a pre-set structure for processing data, and may include multiple processors.

[0083] According to an embodiment of the present disclosure, the amount of data that the data processing pool can process may correspond to the number of transmission channels in the data connection pool, thereby ensuring that the data processing pool is capable of processing all data when data is transmitted through all transmission channels of the data connection pool.

[0084] According to the embodiment of the present disclosure, the data packet to be processed can be preliminarily parsed by the data processing pool to determine the information status of the data packet to be processed, thereby determining the second communication connection status according to the information status of the data packet to be processed.

[0085] In operation S250, when it is determined that the second communication connection states of the plurality of target communication connections represent that the communication connections are normal, the data packets to be processed are processed to obtain target data.

[0086] According to an embodiment of the present disclosure, the second communication connection state of multiple target communication connections indicates that the communication connection is normal, that is, the data packets to be processed are transmitted to the data processing pool normally, so the data packets to be processed can be processed to obtain target data.

[0087] According to an embodiment of the present disclosure, the processing of the data packet to be processed may be regular matching, so as to obtain address information, kernel version information or other performance information in the data packet to be processed.

[0088] According to the embodiments of the present disclosure, because the communication connections corresponding to different clients and servers are established in response to data processing requests sent by different clients, multiple target communication connections are determined according to the communication connection whose first communication connection state is normal in the multiple communication connections, and the pending data packets in the data processing requests corresponding to the multiple target communication connections are transmitted through the multiple transmission channels in the data connection pool, and when it is determined that the data processing pool has received the pending data packets, the second communication connection states of the multiple target communication connections are determined through the data processing pool, and when it is determined that the second communication connection states of the multiple target communication connections represent that the communication connections are normal, the pending data packets are processed to obtain the target data. Since there are multiple transmission channels in the data connection pool, multiple communication connections can be established at the same time, and the target communication connection whose first communication connection state is normal is determined from the multiple communication connections. The multiple target communication connections can transmit the pending data packets through the multiple transmission channels in the data connection pool, which can achieve high-concurrency connection establishment and improve the efficiency of data transmission. Furthermore, the data processing pool can be used to process multiple data packets to be processed, thereby improving the efficiency of data processing and reducing the time that the target communication connection occupies the transmission channel. Therefore, it at least partially overcomes the technical problem in the related art that the web server cannot well establish a communication connection and process data when multiple clients simultaneously send connection requests.

[0089] According to an embodiment of the present disclosure, according to a first number of multiple target communication connections, transmitting to-be-processed data packets in data processing requests corresponding to each of the multiple target communication connections through multiple transmission channels in a data connection pool includes:

[0090] According to the first number of the plurality of target communication connections, a second number of transmission channels is determined from the plurality of transmission channels in the data connection pool.

[0091] The data packets to be processed in the data processing requests corresponding to each of the plurality of target communication connections are transmitted through the second number of transmission channels.

[0092] According to an embodiment of the present disclosure, the number of communication connections that the data connection pool can accommodate each time can be fixed, so when the first number of target communication connections is greater than the transmission channels in the data connection pool, batch transmission is required. Therefore, according to the first numbers of multiple target communication connections, it can be determined whether multiple to-be-processed data packets are to be transmitted simultaneously or in batches.

[0093] According to an embodiment of the present disclosure, when multiple data packets to be processed are transmitted simultaneously, the second number of transmission channels can transmit the data packets to be processed in a one-to-one correspondence with the first number of multiple target communication connections. When multiple data packets to be processed are transmitted in batches, the second number of transmission channels need to be multiplexed to complete the transmission of all multiple data packets to be processed.

[0094] According to an embodiment of the present disclosure, by determining a second number of transmission channels and using the second number of transmission channels to transmit the data packets to be processed, multiple data packets to be processed can be transmitted simultaneously, thereby improving the efficiency of data transmission.

[0095] According to an embodiment of the present disclosure, the number of the plurality of transmission channels is a third number, and determining a second number of transmission channels from the plurality of transmission channels of the data connection pool according to the first number of the plurality of target communication connections includes:

[0096] When it is determined that the first number is greater than the third number, the third number is used as the second number, and the second number of transmission channels is determined from the plurality of transmission channels in the data connection pool.

[0097] When it is determined that the first number is less than or equal to the third number, the first number is used as the second number, and the second number of transmission channels is determined from the plurality of transmission channels in the data connection pool.

[0098] According to an embodiment of the present disclosure, the number of multiple transmission channels may be set based on expert experience, for example, may be 30, 300 or 3000. It will be understood that the present disclosure is not limited thereto.

[0099] According to the embodiment of the present disclosure, setting the number of the multiple transmission channels to the third number can maximize the efficiency of data transmission and minimize the occupied resources.

[0100] According to an embodiment of the present disclosure, when the first number is greater than the third number, that is, the number of target communication connections is greater than the number of transmission channels. Therefore, the data connection pool cannot transmit data of multiple target communication connections at the same time, and all transmission channels can be used to transmit the data packets to be processed, that is, the third number is used as the second number, and the second number of transmission channels is determined from the multiple transmission channels of the data connection pool.

[0101] According to an embodiment of the present disclosure, when the first number is less than or equal to the third number, that is, the number of target communication connections is less than the number of transmission channels. Therefore, the data connection pool can transmit all pending data packets, that is, take the first number as the second number, and determine the second number of transmission channels from the multiple transmission channels of the data connection pool.

[0102] According to an embodiment of the present disclosure, a second number of transmission channels can be determined based on a first number of target communication connections, thereby transmitting pending data packets and avoiding data congestion when all pending data packets are transmitted.

[0103] According to an embodiment of the present disclosure, transmitting the to-be-processed data packets in the data processing requests corresponding to each of the plurality of target communication connections through the second number of transmission channels includes:

[0104] In the event that it is determined that the first number is greater than the third number, a second number of first target communication connections is determined from the first number of the plurality of target communication connections.

[0105] The data packets to be processed in the data processing request corresponding to the second number of first target communication connections are transmitted through the second number of transmission channels, wherein the second number of transmission channels correspond one-to-one to the second number of first target communication connections.

[0106] When it is determined that the first number is less than or equal to the third number, the first number of multiple target communication connections is used as the second number of second target communication connections.

[0107] The data packets to be processed in the data processing request corresponding to the second number of second target communication connections are transmitted through the second number of transmission channels, wherein the second number of transmission channels correspond one-to-one to the second number of second target communication connections.

[0108] According to an embodiment of the present disclosure, when the first number is greater than the third number, a part of the target communication connections from the multiple target communication connections of the first number can be connected first, which may be the number of all transmission channels, that is, the third number of target communication connections. In this case, the third number is the same as the second number, that is, the determined number of target communication connections may also be the second number.

[0109] According to an embodiment of the present disclosure, the second number of transmission channels and the second number of first target communication connections may correspond one to one, so that the to-be-processed data packets corresponding to the second number of first target communication connections may be transmitted to the data processing pool.

[0110] According to an embodiment of the present disclosure, when the first number is less than or equal to the third number, that is, the transmission channel of the data connection pool can simultaneously transmit all the to-be-processed data packets corresponding to the target communication connections, that is, the first number can be determined as the second number, and the second number of transmission channels can be determined from the data connection pool.

[0111] According to an embodiment of the present disclosure, based on the first number of target communication connections and the third number of transmission channels, the second number of transmission channels can be further accurately determined, thereby further improving data transmission efficiency and avoiding the occurrence of data congestion.

[0112] According to an embodiment of the present disclosure, when it is determined that the data processing pool receives a data packet to be processed, determining the second communication connection state of multiple target communication connections through the data processing pool includes:

[0113] When it is determined that the data processing pool receives the data packet to be processed, the data processing pool performs heartbeat detection on multiple target communication connections to obtain a heartbeat detection result.

[0114] Based on the heartbeat detection result, a second communication connection state of the plurality of target communication connections is determined.

[0115] According to an embodiment of the present disclosure, the data processing pool may detect the target communication connection through heartbeat detection, and determine the second communication connection state based on the heartbeat detection result. When the heartbeat detection result indicates that the communication connection is normal, it is determined that the second communication connection state is normal; when it is determined that the heartbeat detection result indicates that the communication connection is abnormal, it is determined that the second communication connection state is abnormal.

[0116] According to an embodiment of the present disclosure, after the data processing pool receives the data packet to be processed, it performs a second confirmation on the communication connection status of the target communication connection, which can ensure that the data packet to be processed can be normally transmitted to the data processing pool for processing, reduce data packet loss, and improve the accuracy of data transmission.

[0117] According to an embodiment of the present disclosure, determining multiple target communication connections according to a communication connection characterized as a normal first communication connection state among multiple communication connections includes:

[0118] In response to the scheduled task, a first communication connection state of the plurality of communication connections is determined by a listener.

[0119] A plurality of target communication connections are determined based on the first communication connection state being a normal communication connection.

[0120] When it is determined that the first communication connection state of at least one communication connection among the plurality of communication connections has abnormality, the communication connection having the abnormality in the first communication connection state is disconnected by a listener.

[0121] According to an embodiment of the present disclosure, the listener may be a structure configured to determine whether a communication connection is normally connected.

[0122] According to an embodiment of the present disclosure, the timed task may be that the listener obtains the first communication connection state of the communication connection at regular intervals. The first communication connection state indicates that a normal communication connection is determined as the target communication connection, and the first communication connection state indicates that an abnormal communication connection can be disconnected by the listener.

[0123] According to the embodiments of the present disclosure, by monitoring the communication connection in real time through the listener, the first communication connection state of the communication connection can be determined in time, the efficiency of transmitting the data packets to be processed can be improved, and the communication connection characterized by abnormal first communication connection state can be disconnected, so as to release the connection resources in time and improve the efficiency of resource utilization.

[0124] According to an embodiment of the present disclosure, the data processing method further includes:

[0125] If it is determined that the first number is greater than the third number, a fourth number of target communication connections is determined from the plurality of target communication connections.

[0126] When it is determined that at least one of the second number of transmission channels corresponding one-to-one to the second number of target communication connections is in an idle state, the idle transmission channel is used to transmit the to-be-processed data packets in the data processing request corresponding to the third number of target communication connections.

[0127] According to an embodiment of the present disclosure, the fourth number of target connection communications may be other target communication connections excluding the second number of target communication connections from the first number of target communication connections when the first number is greater than the third number. Therefore, the sum of the fourth number and the second number may be the same as the first number.

[0128] According to an embodiment of the present disclosure, when it is determined that at least one of the second number of transmission channels corresponding one-to-one to the second number of target communication connections is in an idle state, that is, there is a transmission channel that completes the transmission of at least one pending data packet in the second number of target communication connections. Therefore, the target communication connection can be disconnected, and the transmission channel corresponding to the target communication connection is also released, allowing the fourth number of target communication connections to use the idle transmission channel to transmit the pending data packet.

[0129] According to the embodiments of the present disclosure, multiple transmission channels transmit data simultaneously, and after a transmission channel has been used up, the next communication connection can continue to be used, thereby improving the transmission efficiency of data and enhancing the performance of concurrent processing of data.

[0130] Figure 3 A schematic diagram of a scenario to which the data processing method according to an embodiment of the present disclosure can be applied is schematically shown.

[0131] like Figure 3 As shown, the scenario may include a data acquisition layer 310, a data processing layer 320 and a data collection layer 330. The data acquisition layer 310 is mainly used to obtain data and send the data to the data processing layer in the form of a data packet to be processed. The data acquisition layer includes multiple clients. The data processing layer 320 may include a server 321, and a listener 3211, a data connection pool 3212, a data processing pool 3213 and a data sending pool 3214 are set in the server 321. The data sending pool 3214 can receive the processed target data in the data processing pool 3212 and push the target data to the data collection layer 330. Figure 3 The detailed description of each part can be found in other embodiments of the present disclosure and will not be repeated here.

[0132] Figure 4 The flowchart of a data processing method according to another embodiment of the present disclosure is schematically shown.

[0133] like Figure 4 As shown, the method includes operations S401 to S411.

[0134] In operation S401, in response to data processing requests respectively sent by different clients, corresponding communication connections are established between different clients and a server, wherein the data processing requests include a data packet to be processed.

[0135] In operation S402, in response to the timed task, a listener is used to determine whether a first communication connection state of the plurality of communication connections is normal. If it is determined that the first communication connection state is abnormal, operation S403 is performed. If it is determined that the first communication connection state is normal, operation S404 is performed.

[0136] In operation S403, the communication connection whose first communication connection state indicates abnormality is disconnected by the listener.

[0137] In operation S404, a plurality of target communication connections are determined according to the first communication connection state being a normal communication connection.

[0138] In operation S405, determine whether the first number of multiple target communication connections is greater than the third number of multiple transmission channels. If it is determined that the first number is greater than the third number, perform operation S406. If it is determined that the first number is less than or equal to the third number, perform operation S407.

[0139] In operation S406, the third number is used as the second number, and a second number of transmission channels is determined from a plurality of transmission channels in the data connection pool.

[0140] In operation S407 , the first number is used as the second number, and a second number of transmission channels is determined from a plurality of transmission channels in the data connection pool.

[0141] In operation S408, the to-be-processed data packets in the data processing requests corresponding to each of the plurality of target communication connections are transmitted through a second number of transmission channels.

[0142] In operation S409, when it is determined that the data processing pool has received the data packet to be processed, the data processing pool is used to determine whether the second communication connection status of the multiple target communication connections is normal. When it is determined that the second communication connection status indicates that the communication connection is normal, operation S410 is performed. When it is determined that the second communication connection status indicates that the communication connection is normal, operation S411 is performed.

[0143] In operation S410, disconnect the target communication connection indicating abnormality of the second communication connection state.

[0144] In operation S411, according to the target communication connection whose communication connection is normally represented by the second communication connection state, the data packet to be processed is processed to obtain target data.

[0145] According to an embodiment of the present disclosure, Figure 4 For detailed description, please refer to other embodiments of the present disclosure and will not be repeated here.

[0146] Figure 5 The block diagram schematically shows a data processing device according to an embodiment of the present disclosure.

[0147] like Figure 5 As shown, the data processing device 500 includes an establishing module 510 , a first determining module 520 , a first transmitting module 530 , a second determining module 540 and a processing module 550 .

[0148] The establishment module 510 is used to establish corresponding communication connections between different clients and the server in response to data processing requests sent by different clients, wherein the data processing requests include data packets to be processed. In one embodiment, the establishment module 510 can be used to perform the operation S210 described above, which will not be repeated here.

[0149] The first determining module 520 is used to determine multiple target communication connections according to the communication connection whose first communication connection state is normal among the multiple communication connections. In one embodiment, the first determining module 520 can be used to perform the operation S220 described above, which will not be described in detail here.

[0150] The first transmission module 530 is used to transmit the to-be-processed data packets in the data processing requests corresponding to the multiple target communication connections respectively through the multiple transmission channels in the data connection pool according to the first number of the multiple target communication connections. In one embodiment, the first transmission module 530 can be used to perform the operation S230 described above, which will not be described in detail here.

[0151] The second determination module 540 is used to determine the second communication connection state of multiple target communication connections through the data processing pool when it is determined that the data processing pool receives the data packet to be processed. In one embodiment, the second determination module 540 can be used to perform the operation S240 described above, which will not be repeated here.

[0152] The processing module 550 is used to process the data packet to be processed to obtain the target data when it is determined that the second communication connection state of the plurality of target communication connections indicates that the communication connection is normal. In one embodiment, the processing module 550 can be used to perform the operation S250 described above, which will not be described in detail here.

[0153] According to an embodiment of the present disclosure, the first transmission module 530 for transmitting the to-be-processed data packets in the data processing request corresponding to each of the multiple target communication connections through the multiple transmission channels in the data connection pool according to the first number of the multiple target communication connections includes:

[0154] A first transmission submodule, configured to determine a second number of transmission channels from a plurality of transmission channels in a data connection pool according to a first number of the plurality of target communication connections;

[0155] The second transmission submodule is used to transmit the to-be-processed data packets in the data processing requests corresponding to each of the plurality of target communication connections through a second number of transmission channels.

[0156] According to an embodiment of the present disclosure, wherein the number of the plurality of transmission channels is a third number, the first transmission submodule for determining a second number of transmission channels from the plurality of transmission channels of the data connection pool according to the first number of the plurality of target communication connections includes:

[0157] a first transmission unit, configured to, when it is determined that the first number is greater than the third number, use the third number as the second number, and determine the second number of transmission channels from the plurality of transmission channels in the data connection pool;

[0158] The second transmission unit is configured to, when it is determined that the first number is less than or equal to the third number, use the first number as the second number and determine the second number of transmission channels from the plurality of transmission channels in the data connection pool.

[0159] According to an embodiment of the present disclosure, the second transmission submodule for transmitting the to-be-processed data packets in the data processing requests corresponding to each of the plurality of target communication connections through the second number of transmission channels includes:

[0160] a third transmission unit, configured to determine a second number of first target communication connections from the first number of multiple target communication connections if it is determined that the first number is greater than the third number;

[0161] a fourth transmission unit, configured to transmit, through a second number of transmission channels, data packets to be processed in the data processing request corresponding to the second number of first target communication connections, wherein the second number of transmission channels corresponds one-to-one to the second number of first target communication connections;

[0162] a fifth transmission unit, configured to use the first number of multiple target communication connections as the second number of second target communication connections if it is determined that the first number is less than or equal to the third number;

[0163] The sixth transmission unit is used to transmit the to-be-processed data packets in the data processing request corresponding to the second number of second target communication connections through the second number of transmission channels, wherein the second number of transmission channels corresponds one-to-one to the second number of second target communication connections.

[0164] According to an embodiment of the present disclosure, the second determining module 540 for determining the second communication connection state of multiple target communication connections through the data processing pool when it is determined that the data processing pool receives a data packet to be processed includes:

[0165] A first determination submodule is used to perform heartbeat detection on multiple target communication connections through the data processing pool to obtain a heartbeat detection result when it is determined that the data processing pool has received a data packet to be processed;

[0166] The second determination submodule is used to determine the second communication connection status of multiple target communication connections based on the heartbeat detection result.

[0167] According to an embodiment of the present disclosure, the first determining module 520 for determining multiple target communication connections according to a communication connection characterized as a normal first communication connection state in multiple communication connections includes:

[0168] A third determining submodule, configured to determine, in response to the timing task, a first communication connection state of the plurality of communication connections through a listener;

[0169] The fourth determining submodule is used to determine a plurality of target communication connections according to the first communication connection state being a normal communication connection.

[0170] According to an embodiment of the present disclosure, the above device further includes:

[0171] The disconnection module is used to disconnect the communication connection characterized by the abnormal first communication connection state through a listener when it is determined that the first communication connection state characteristic of at least one communication connection among the multiple communication connections is abnormal.

[0172] According to an embodiment of the present disclosure, the above device further includes:

[0173] A third determining module, configured to determine a third number of target communication connections from the plurality of target communication connections when it is determined that the first number is greater than the third number;

[0174] The second transmission module is used to transmit the to-be-processed data packets in the data processing request corresponding to the third number of target communication connections using the idle transmission channels when it is determined that at least one of the second number of transmission channels corresponding one-to-one to the second number of target communication connections is in an idle state.

[0175] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0176] For example, any of the establishment module 510, the first determination module 520, the first transmission module 530, the second determination module 540 and the processing module 550 can be combined in one module / unit / sub-unit for implementation, or any of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the establishment module 510, the first determination module 520, the first transmission module 530, the second determination module 540 and the processing module 550 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware and firmware or by a suitable combination of any of them. Alternatively, at least one of the establishment module 510, the first determination module 520, the first transmission module 530, the second determination module 540 and the processing module 550 may be at least partially implemented as a computer program module, which may perform corresponding functions when executed.

[0177] Figure 6 A block diagram of an electronic device suitable for implementing the data processing method described above according to an embodiment of the present disclosure is schematically shown. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0178] like Figure 6 As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0179] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0180] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The system 600 may further include one or more of the following components connected to the input / output (I / O) interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output (I / O) interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.

[0181] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0182] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.

[0183] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or the RAM 603 described above and / or one or more memories other than the ROM 602 and the RAM 603 .

[0184] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the data processing method provided by the embodiment of the present disclosure.

[0185] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 601. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0186] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0187] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 901, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.

[0188] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0189] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0190] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0191] The embodiments of the present disclosure are described above. However, these embodiments are only for the purpose of illustration and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A data processing method, comprising: In response to data processing requests respectively sent by different clients, establishing corresponding communication connections respectively between the different clients and the server, wherein the data processing requests include data packets to be processed; Determining a plurality of target communication connections according to a communication connection in which a first communication connection state is normal among the plurality of communication connections; According to a first number of the plurality of target communication connections, transmitting the to-be-processed data packets in the data processing requests corresponding to the plurality of target communication connections respectively through the plurality of transmission channels in the data connection pool; In the case of determining that the data processing pool has received the data packet to be processed, determining the second communication connection state of the plurality of target communication connections through the data processing pool; In a case where it is determined that the second communication connection states of the plurality of target communication connections represent that the communication connections are normal, processing the data packets to be processed to obtain target data; The method of transmitting the to-be-processed data packets in the data processing requests corresponding to the respective target communication connections through the plurality of transmission channels in the data connection pool according to the first number of the target communication connections comprises: Determining a second number of transmission channels from the plurality of transmission channels in the data connection pool according to the first number of the plurality of target communication connections; The data packets to be processed in the data processing requests corresponding to each of the plurality of target communication connections are transmitted through the second number of transmission channels.

2. The method according to claim 1, wherein: The number of the plurality of transmission channels is a third number, and determining the second number of transmission channels from the plurality of transmission channels in the data connection pool according to the first number of the plurality of target communication connections includes: In a case where it is determined that the first number is greater than the third number, taking the third number as the second number, and determining the second number of transmission channels from the plurality of transmission channels in the data connection pool; When it is determined that the first number is less than or equal to the third number, the first number is used as the second number, and the second number of transmission channels is determined from the plurality of transmission channels in the data connection pool.

3. The method according to claim 2, wherein: The transmitting, through the second number of transmission channels, the to-be-processed data packets in the data processing requests corresponding to each of the plurality of target communication connections comprises: In the case where it is determined that the first number is greater than the third number, determining a second number of first target communication connections from the first number of the plurality of target communication connections; transmitting, through the second number of transmission channels, the to-be-processed data packets in the data processing request corresponding to the second number of first target communication connections, wherein the second number of transmission channels corresponds one-to-one to the second number of first target communication connections; In a case where it is determined that the first number is less than or equal to the third number, using the first number of multiple target communication connections as the second number of second target communication connections; The data packets to be processed in the data processing request corresponding to the second number of the second target communication connections are transmitted through the second number of transmission channels, wherein the second number of transmission channels correspond one-to-one to the second number of the second target communication connections.

4. The method according to claim 3, wherein when it is determined that the data processing pool receives the data packet to be processed, determining the second communication connection state of the plurality of target communication connections by the data processing pool comprises: When it is determined that the data processing pool has received the data packet to be processed, the data processing pool performs heartbeat detection on the plurality of target communication connections to obtain a heartbeat detection result; Based on the heartbeat detection result, the second communication connection status of the plurality of target communication connections is determined.

5. The method according to any one of claims 1 to 4, wherein: The determining of multiple target communication connections according to a communication connection in which a first communication connection state is normal among the multiple communication connections includes: In response to the scheduled task, determining, by a listener, a first communication connection state of the plurality of communication connections; A plurality of target communication connections are determined according to the first communication connection state being a normal communication connection.

6. The method according to claim 5, further comprising: When it is determined that the first communication connection state characteristic of at least one communication connection among the plurality of communication connections is abnormal, the communication connection having the first communication connection state characteristic abnormal is disconnected through a listener.

7. The method according to any one of claims 2 to 4, further comprising: In a case where it is determined that the first number is greater than the third number, determining the third number of target communication connections from the plurality of target communication connections; When it is determined that at least one of the second number of transmission channels corresponding one-to-one to the second number of target communication connections is in an idle state, the idle transmission channel is used to transmit the to-be-processed data packets in the data processing request corresponding to the third number of target communication connections.

8. A data processing device, comprising: An establishing module, configured to establish corresponding communication connections between different clients and the server in response to data processing requests respectively sent by different clients, wherein the data processing requests include data packets to be processed; A first determining module, configured to determine a plurality of target communication connections according to a communication connection in which a first communication connection state is normal among the plurality of communication connections; A first transmission module, configured to transmit, according to a first number of the plurality of target communication connections, the to-be-processed data packets in the data processing requests corresponding to the plurality of target communication connections respectively through the plurality of transmission channels in the data connection pool; A second determining module is used to determine the second communication connection status of the plurality of target communication connections through the data processing pool when it is determined that the data processing pool has received the data packet to be processed; A processing module, configured to process the data packet to be processed to obtain target data when it is determined that the second communication connection status of the plurality of target communication connections indicates that the communication connection is normal; Wherein, the first transmission module includes: A first transmission submodule, configured to determine a second number of transmission channels from the plurality of transmission channels in the data connection pool according to a first number of the plurality of target communication connections; The second transmission submodule is used to transmit the to-be-processed data packets in the data processing requests corresponding to each of the plurality of target communication connections through the second number of transmission channels.

9. An electronic device, comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 7.

11. A computer program product, comprising computer executable instructions, wherein the computer executable instructions are used to implement the method according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Request response method and device, equipment and medium

    CN114885010A