Data processing method and device, equipment, storage medium and program product
By generating a time-consuming statistics table through the identification mapping relationship between the client and the server, the problem that the front-end and back-end data in the logistics business system cannot be analyzed in series is solved, the full-link time-consuming analysis is realized, and the efficiency of abnormality investigation and analysis accuracy are improved.
Patent Information
- Application Number
- CN202410460632.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-16
- Publication Date
- 2025-10-24
AI Technical Summary
The data from the front-end and back-end of the logistics business system cannot be analyzed in series, resulting in low efficiency in abnormality investigation. In addition, when network communication is abnormal, the front-end fails to accurately report abnormal requests, affecting subsequent analysis results.
Through the identification mapping relationship between the client and the server, a time consumption statistics table is obtained and generated, including the network communication duration of the client and the server, to achieve full-link time consumption analysis.
It improves the efficiency of network anomaly troubleshooting, ensures stable client performance and energy consumption, can accurately record the time-consuming issues of a single node, and improves the accuracy of anomaly analysis.
Smart Images

Figure CN120834993A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to data processing methods, apparatuses, devices, computer-readable storage media, and computer program products. Background Art
[0002] With the development of internet technology, logistics operations are becoming increasingly information-based and automated. In daily work scenarios, the front-end and back-end of logistics business systems each have their own full-link time consumption and anomaly analysis systems. These systems subtract the input and output times of each node, connect links using their respective identifiers, and report link data to a unified tracking platform to visualize traffic flow and time consumption at each node.
[0003] However, in such an analysis system, the front-end and back-end data cannot be linked together for analysis, and the analysis process uses an average analysis method for the entire data. Therefore, it is impossible to record problems with individual nodes, resulting in low efficiency in troubleshooting. In addition, in the event of an anomaly in network communication, the front-end may not accurately report the abnormal request, thus affecting the subsequent anomaly analysis results. If all requests from the front-end are reported in full, it will affect the performance and energy consumption of the front-end. Therefore, how to improve the efficiency of troubleshooting system anomalies deserves attention. Summary of the Invention
[0004] In the first aspect of the present disclosure, a data processing method is provided. The method includes: obtaining first time-consuming information of a client from a client information repository, wherein the client is a client that triggers an abnormality reporting request after detecting a time-consuming abnormality in network communication, and the first time-consuming information indicates the time consumed by the client to complete the network communication; obtaining a mapping relationship between a client identifier and a server identifier of the client; based on the mapping relationship between the client identifier and the server identifier, obtaining second time-consuming information of the server corresponding to the server identifier from a server information repository corresponding to the server identifier, wherein the second time-consuming information indicates the time consumed by the server to complete the network communication; and generating a time-consuming statistics table based on the first time-consuming information and the second time-consuming information, wherein the time-consuming statistics table includes the first time-consuming information and the second time-consuming information.
[0005] In a second aspect of the present disclosure, a data processing apparatus is provided. The apparatus comprises: a first information obtaining module configured to obtain first time-consuming information of a client from a client information repository, the client being a client triggering an exception reporting request after detecting time-consuming exception of network communication, the first time-consuming information indicating a time length consumed by the client to complete network communication; a second information obtaining module configured to obtain a mapping relationship between a client identifier of the client and a server identifier; a third information obtaining module configured to obtain second time-consuming information of a server corresponding to the server identifier from a server information repository corresponding to the server identifier based on the mapping relationship between the client identifier and the server identifier, the second time-consuming information indicating a time length consumed by the server to complete network communication; and a statistics generating module configured to generate a time-consuming statistics table based on the first time-consuming information and the second time-consuming information, the time-consuming statistics table comprising the first time-consuming information and the second time-consuming information.
[0006] In a third aspect of the present disclosure, an electronic device is provided. The electronic device comprises at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method of the first aspect of the present disclosure.
[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided. The computer-readable storage medium has stored thereon a computer program, which is executable by a processor to perform the method according to the first aspect of the present disclosure.
[0008] In a fifth aspect of the present disclosure, a computer program product is provided. The computer program product comprises computer executable instructions that, when executed by a processor, implement the method according to the first aspect of the present disclosure.
[0009] It should be understood that the description in the summary is not intended to identify key or essential features of embodiments of the present disclosure or limit the scope of the present disclosure, but is intended to emphasize that the disclosure can include other aspects not described in the summary. Other features of the present disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0010] The above and other features, aspects, and advantages of various implementations of the present disclosure will become more apparent from the following detailed description, taken in conjunction with the accompanying drawings, in which like reference numbers represent like elements throughout. In the drawings:
[0011] Figure 1 A schematic diagram showing an example architecture for data processing of embodiments of the present disclosure is shown;
[0012] Figure 2An example diagram showing a client information statistics table is shown in accordance with some embodiments of the present disclosure;
[0013] Figure 3 An example diagram showing an identity mapping table is shown in accordance with some embodiments of the present disclosure;
[0014] Figure 4 An example diagram showing a node time consumption statistics table is shown in accordance with some embodiments of the present disclosure;
[0015] Figure 5 An example diagram showing a time consumption analysis table is shown in accordance with some embodiments of the present disclosure;
[0016] Figure 6 A flowchart showing a process for data processing in accordance with some embodiments of the present disclosure is shown;
[0017] Figure 7 A block diagram showing a data processing apparatus in accordance with some embodiments of the present disclosure is shown; and
[0018] Figure 8 A block diagram of an electronic device in which one or more embodiments of the disclosure can be implemented is shown; DETAILED DESCRIPTION
[0019] Embodiments of the present disclosure will be described below in greater detail with reference to the accompanying drawings. While some embodiments of the present disclosure are illustrated in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be interpreted as being limited to the embodiments set forth herein; rather, these embodiments are provided so as to more completely and thoroughly understand the present disclosure. It is understood that the drawings and embodiments of the present disclosure are for exemplary purposes only and are not intended to limit the scope of protection of the present disclosure.
[0020] In the description of embodiments of the present disclosure, the term "comprising" and its conjugations should be understood to encompass the meanings of "consisting of" and "consisting essentially of", i.e., "comprising but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Further explicit and implicit definitions can be included below.
[0021] In this document, unless explicitly stated otherwise, performing a step "in response to" an event means performing the step at least partially in response to the event, and can include one or more intervening steps.
[0022] It can be understood that the data involved in the technical solution (including but not limited to the data itself, the obtaining, use, storage or deletion of the data) should comply with the requirements of the relevant laws and regulations and relevant provisions.
[0023] As mentioned above, in network communication scenarios such as daily logistics delivery, the front end and the back end of the logistics business system each has its own full-link time consumption and abnormality analysis system. However, in such analysis systems, the data of the front end and the back end cannot be linked for analysis, and the average full-amount analysis method is adopted in the analysis process, so the problems of individual nodes cannot be recorded, thereby resulting in low efficiency of troubleshooting of abnormality. In addition, in the case of network communication abnormality, the front end may not accurately report the abnormal request, thereby affecting the subsequent abnormality analysis result. If all requests of the front end are reported in full amount, the performance and energy consumption of the front end will be affected. The full-link analysis tool is often for the average value of all requests, and does not record individual problem nodes, which is helpful for measuring the full-amount performance, but is not conducive to solving the time consumption problem of individual users or requests, because the network environment of individual users and sites in the logistics scenario is relatively complex, and the average full-amount analysis method cannot find the problems of individual scenarios.
[0024] Therefore, the present disclosure provides a data processing scheme. In the scheme, first time consumption information of a client is obtained from a client information repository, the client being a client that triggers an abnormality reporting request after detecting time consumption abnormality of network communication, wherein the first time consumption information can indicate a time length consumed by the client to complete the network communication. A mapping relationship between a client identifier of the client and a server identifier is obtained. Based on the mapping relationship between the client identifier and the server identifier, second time consumption information of a server corresponding to the server identifier is obtained from a server information repository corresponding to the server identifier, the second time consumption information can indicate a time length consumed by the server to complete the network communication. Then, a time consumption statistical table is generated based on the first time consumption information and the second time consumption information, the time consumption statistical table can include the first time consumption information and the second time consumption information. In this way, the time consumption information of the server can be centrally and comprehensively collected for the abnormality reporting request of the client, to ensure the stability of the performance and energy consumption of the client while ensuring sufficient collection rate, so that the time consumption information of the client and the server can be linked for analysis, thereby greatly improving the efficiency of troubleshooting of network abnormality and solving the problems of collection rate and terminal traffic power consumption.
[0025] Example embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Figure 1 A schematic diagram of an example architecture 100 for data processing of an embodiment of the present disclosure is shown. It is worth noting that the present disclosure is not limited to the modules / systems involved in the example architecture 100, such as adding or replacing the modules / systems in the figure to achieve a similar purpose, which should be considered as included in the scope of the present disclosure.
[0026] In an embodiment of the present disclosure, network communication can be performed between the client 110 and the server 130 through the gateway 120. Such a client 110 can be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a gaming device, or any combination thereof, including accessories and peripherals of these devices or any combination thereof.
[0027] Client 110 can provide both application services to user 111 and specific data retrieval capabilities to analyst 171. For example, user 111 can use client 110 to transmit service requests 113, such as delivery or pickup, to server 130 using the content transparent transmission function of gateway 120. After performing normal delivery and pickup services, server 130 transmits the service cache data to middleware 140 for real-time storage.
[0028] In some embodiments, as Figure 1 As shown, in the case of network communication delay, freeze, etc., the client 110 is configured to trigger an exception reporting request in response to the network communication time exceeding a predetermined threshold (e.g., 3 seconds). In other embodiments, the user 111 can actively open the exception reporting request.
[0029] Figure 2 FIG. 2 shows an example of a client information statistics table 200 according to some embodiments of the present disclosure. In one embodiment, Figure 1 and Figure 2 As shown, after the abnormality reporting request is triggered, the client 110 is configured to turn on the collection switch to determine and comprehensively collect all business request information of the user 111 based on the user identifier 210 of the user 111, so as to generate a client information statistics table 200 indicating the business request information associated with the user and store it in the client 110. The analyst 171 can retrieve the client information statistics table 200 from the client 110 through the analysis client 170 to obtain the relevant business request information of the client 110, such as Figure 2 As shown in the client information statistics table 200 in FIG. 1 , the service request information includes, but is not limited to, a device identifier 220, an operation identifier 230, a site identifier 240, an activation status 250, and an update time 260. The device identifier 220 indicates the device on which the client 110 performs the service. The operation identifier 230 indicates the operation performed by the client 110. The site identifier 240 indicates the site where the client 110 is located.
[0030] It can be understood that the service request information of the client information statistics table 200 in actual application can include more or less information. In addition to the form of the table, the service request information of the client information statistics table 200 can also be in other appropriate forms, which will not be described here.
[0031] In some embodiments, as shown in Figure 1 In response to the user 111 actively starting or the time-consuming of the network communication being passively triggered to exceed a predetermined threshold, the client 110 generates and reports the client identifier and the interface name used by the network communication to the server 130. In an embodiment, the client identifier is identified as "Front_traceID". Wherein "TraceID" is a trace identifier, which refers to a technology of concatenating the calling logs of requests on various servers. The generation rules can include the server Internet Protocol (IP), the time of identification (ID) generation, the self-increment sequence, the current process number, and the like.
[0032] With reference back to Figure 1 , the client information repository 150 can store various client service information of the client 110. The client service information can include the first time-consuming information 112. The first time-consuming information 112 indicates the time length consumed by the client to complete the network communication. The first time-consuming information 112 can indicate the time-consuming of one or more of the following, including but not limited to: request data assembly, serialization, network sending, server processing return, data decryption and deserialization, client logic processing, page rendering, and the like. The server information repository 160 can store various server service information of the server 130. The server service information can include the second time-consuming information 161. The second time-consuming information 161 indicates the time length consumed by the server to complete the network communication.
[0033] In some embodiments, in response to receiving the client identifier, the server 130 can generate the mapping relationship 131 between the server identifier and the client identifier and store the mapping relationship 131 between the client identifier and the server identifier to the database 1301 asynchronously. In some embodiments, the server identifier is identified as "Back_traceID". Asynchronous storage means that after the server stores the mapping relationship to the database, the server can continue to execute other normal business requests without waiting for the response result of the database. The user 111 initiates an abnormal reporting request or the time consumption of network communication exceeds a predetermined threshold to trigger an abnormal reporting request passively, which triggers the full-link service 1302 of the server 130 asynchronously to obtain the mapping relationship 131 between the client identifier and the server identifier from the database 1301 based on the client identifier. Asynchronous triggering means that after the user sends an abnormal reporting request through the client, the user can continue to perform other operations without waiting for the response result of the server. The above-mentioned asynchronous storage and asynchronous triggering can minimize the increase in time consumption of normal traffic requests.
[0034] Figure 3 An example diagram of an identifier mapping table 300 is shown according to some embodiments of the present disclosure. The identifier mapping table 300 is used to indicate the mapping relationship 131 between the client identifier and the server identifier, and the table content can include a client identifier 310, an operation identifier 320, an interface name 330, a server identifier 340, a user name 350, and an update time 360. The identifier mapping table 300 is configured to be generated by the server 130 and stored to the database 1301. It can be understood that the content of the identifier mapping table 300 in actual application can include more or less information. In addition to the form of the table, the table content of the identifier mapping table 300 can also be other appropriate forms, which will not be described here.
[0035] In some embodiments, in response to the abnormal reporting request triggered by the client 110, the server 130 is configured to obtain the first time consumption information 112 of the client 110 based on the subscription to the client information repository 150 and comprehensively collect the second time consumption information 161 of the server corresponding to the server identifier in the server information repository 160 based on the mapping relationship 131 between the client identifier and the server identifier. In normal business requests, the client 110 and the server 130 do not collect the respective time consumption information in real time. In the case of the client 110 actively or passively triggering the abnormal reporting request, the client 110 and the server 130 can comprehensively collect the respective time consumption information. Such a collection scheme not only reduces the loss of traffic and power caused by unnecessary collection, but also releases part of the storage and computing pressure of the client 110 and the server 130, and takes into account the efficiency and flexibility of information collection.
[0036] Figure 4An example diagram of the node time consumption statistics table 400 is shown according to some embodiments of the present disclosure. The full-link service 1302 of the server 130 is configured to generate the time consumption statistics table 1303 based on the first time consumption information 112 and the second time consumption information 161. The node time consumption statistics table 400, as an example of the time consumption statistics table 1303, can include a client identifier 410, an operation identifier 420, an interface name 430, a server identifier 440, a rendering time 450, a network time 460, a server time 470, a full-link time 480, and a gateway time 490. The rendering time 450 indicates the time length consumed by page rendering. The gateway time 490 indicates the time length consumed by gateway data transmission.
[0037] Figure 5 An example diagram of the time consumption analysis table 500 is shown according to some embodiments of the present disclosure. The time consumption analysis table 500 can include a user identifier 501, an operation identifier 502, an interface name 503, a client identifier 504, a server identifier 505, a full-link time consumption 506, a server time consumption 507, front-end data assembly 508, front-end storage 509, network transmission 510, and the like. After the time consumption statistics table 1303 is generated and stored, an analyst 171 can be notified by an alarm to make the analyst discover an abnormal reporting request. The analyst 171 can send a time consumption analysis request to the server 130 by analyzing the client 170. The time consumption analysis request at least indicates the user identifier and the client identifier. The server 130 is configured to provide the time consumption analysis table 500 to the analysis client 170 in response to the time consumption analysis request. The time consumption analysis table 500 can show the time consumption of each node of the full link to the analyst 171, so that the analyst 171 can optimize the problem node accordingly. According to the data processing method in the embodiments of the present disclosure, a unified trace identifier (TraceID) is used in the client and the server, including the client identifier (which can be identified as “Front_traceID”) generated by the client in response to the network communication exception triggering the abnormal reporting request and the server identifier (which can be identified as “Back_traceID”) generated by the server in response to receiving the client identifier, and then the mapping relationship between the client identifier and the server identifier is stored in the database by means of asynchronous storage, so that the time consumption information of the server is comprehensively collected based on the mapping relationship, to generate the time consumption analysis table for the analyst to perform time consumption analysis. In this way, the time consumption analysis of the full link of the logistics business system can be realized.
[0038] Example Process
[0039] Figure 6 A flowchart of the process 600 of data processing is shown according to some embodiments of the present disclosure. The process 600 can be implemented at the server 130.
[0040] At block 610, the service end 130 obtains first time-consuming information of the client from the client information repository. In embodiments of the present disclosure, the client is a client that triggers an exception reporting request after detecting time-consuming exception of network communication, and the first time-consuming information indicates a time length consumed by the client to complete network communication.
[0041] At block 620, the service end 130 obtains a mapping relationship between the client identifier and the service end identifier.
[0042] At block 630, the service end 130 obtains second time-consuming information of the service end corresponding to the service end identifier from the service end information repository corresponding to the service end identifier based on the mapping relationship between the client identifier and the service end identifier. In embodiments of the present disclosure, the second time-consuming information indicates a time length consumed by the service end to complete network communication.
[0043] At block 640, the service end 130 generates a time-consuming statistical table based on the first time-consuming information and the second time-consuming information. In embodiments of the present disclosure, the time-consuming statistical table includes the first time-consuming information and the second time-consuming information.
[0044] In some embodiments, obtaining the first time-consuming information of the client from the client information repository includes: subscribing to time-consuming information of the client from the client information repository; and obtaining the first time-consuming information of the client based on the subscription to the client information repository.
[0045] In some embodiments, the process 600 further includes: receiving a client identifier from the client, wherein the client identifier is generated and reported by the client in response to the time-consuming exception of network communication; in response to receiving the client identifier, generating the mapping relationship between the client identifier and the service end identifier; and storing the mapping relationship between the client identifier and the service end identifier to the database asynchronously.
[0046] In some embodiments, obtaining the mapping relationship between the client identifier and the service end identifier includes: receiving an exception reporting request triggered by the client, the exception reporting request including at least the client identifier; and obtaining the mapping relationship between the client identifier and the service end identifier from the database based on the client identifier.
[0047] In some embodiments, the client triggers the exception reporting request in response to the time consumed by network communication exceeding a predetermined threshold.
[0048] In some embodiments, the time-consuming statistical table further includes at least one of the following: a user identifier of the client; an operation identifier, the operation identifier indicating an operation performed by the client and the service end in network communication; an interface identifier, the interface identifier indicating an interface through which the service end connects with the gateway; the client identifier, and the service end identifier.
[0049] In some embodiments, the process 600 further includes receiving a time-consuming analysis request from the analysis client, the time-consuming analysis request indicating at least the user identification and the client identification; and providing the time-consuming statistics table to the analysis client in response to the time-consuming analysis request.
[0050] Example device
[0051] Figure 7 A block diagram of a data processing apparatus 700 according to some embodiments of the present disclosure is shown. The apparatus 700 can be implemented in the service end 130. Various modules / components in the apparatus 700 can be implemented by hardware, software, firmware, or any combination thereof.
[0052] The apparatus 700 includes a first information obtaining module 710 configured to obtain first time-consuming information of a client from a client information repository, the client being a client that triggers an exception reporting request after detecting a time-consuming exception of network communication, the first time-consuming information indicating a time length consumed by the client to complete network communication. The apparatus 700 further includes a second information obtaining module 720 configured to obtain a mapping relationship between a client identification of the client and a service end identification. The apparatus 700 further includes a third information obtaining module 730 configured to obtain second time-consuming information of a service end corresponding to the service end identification from a service end information repository corresponding to the service end identification based on the mapping relationship between the client identification and the service end identification, the second time-consuming information indicating a time length consumed by the service end to complete network communication. The apparatus 700 further includes a statistics generating module 740 configured to generate a time-consuming statistics table based on the first time-consuming information and the second time-consuming information, the time-consuming statistics table including the first time-consuming information and the second time-consuming information.
[0053] In some embodiments, the first information obtaining module 710 is further configured to subscribe to the client information repository for time-consuming information of the client; and obtain the first time-consuming information of the client based on the subscription to the client information repository.
[0054] In some embodiments, the apparatus 700 further includes a mapping relationship generating module configured to receive a client identification from a client, wherein the client identification is generated and reported by the client in response to a time-consuming exception of network communication; and generate the mapping relationship between the client identification and the service end identification in response to receiving the client identification.
[0055] In some embodiments, the second information obtaining module 720 is further configured to receive an exception reporting request triggered by the client, the exception reporting request including at least the client identification; and obtain the mapping relationship between the client identification and the service end identification from the database based on the client identification.
[0056] In some embodiments, the client triggers the exception reporting request in response to a time length of network communication exceeding a predetermined threshold.
[0057] In some embodiments, the time consumption statistics table further comprises at least one of: a user identification of the client; an operation identification, the operation identification indicating an operation performed by the client and the server in the network communication; an interface identification, the interface identification indicating an interface through which the server connects with the gateway; a client identification, and a server identification.
[0058] In some embodiments, the apparatus 700 further comprises a table output module configured to receive a time consumption analysis request from the analysis client, the time consumption analysis request indicating at least the user identification and the client identification; and provide the time consumption statistics table to the analysis client in response to the time consumption analysis request.
[0059] The units included in the apparatus 700 can be implemented by various means, including software, hardware, firmware, or any combination of these. In some embodiments, one or more units can be implemented using software and / or firmware, e.g., machine-executable instructions stored on a storage medium. In addition to or alternatively, some or all of the units in the apparatus 500 can be implemented at least partially by one or more hardware logic components. As an example and not by way of limitation, example types of hardware logic components that can be used include Field-Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application-Specific Standard Products (ASSPs), System-on-a-Chip (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
[0060] Figure 8 A block diagram of an electronic device 800 in which one or more embodiments of the disclosure can be implemented is shown. It should be understood that Figure 8 The electronic device 800 illustrated is merely exemplary and should not be construed as limiting the scope of the embodiments described herein. Figure 8 The electronic device 800 illustrated can be used to implement the server 130 of Figure 1 .
[0061] As Figure 8 illustrated, the electronic device 800 is in the form of a general electronic device. Components of the electronic device 800 can include, but are not limited to, one or more processors or processing units 810, a memory 820, a storage device 830, one or more communication units 840, one or more input devices 850, and one or more output devices 880. The processing unit 810 can be a real or virtual processor and is capable of executing various processing in accordance with programs stored in the memory 820. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing capability of the electronic device 800.
[0062] The electronic device 800 typically includes a plurality of computer storage media. Such media can be removable, non-removable, or a combination thereof. Storage memory 820 can be volatile (such as registers, cache, or random access memory (RAM)), non-volatile (such as read-only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory), or some combination thereof. Storage devices 830 can be removable or non-removable, and can include machine- readable media, such as flash drives, disks, or any other media, which can be capable of storing information and / or data (e.g., training data for training) and which can be accessed within the electronic device 800.
[0063] The electronic device 800 can further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in Figure 8 disk drives for reading from or writing to a removable, non- volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk (e.g., a CD-ROM). In these instances, each drive can be connected to the bus (not shown) by one or more data media interfaces. The memory 820 can include a computer program product 825 having one or more program modules configured to carry out the various methods or actions of the various embodiments of the present disclosure.
[0064] The communication unit 840 enables communications with other electronic devices over a communication medium. Additionally, the functionality of the components of the electronic device 800 can be implemented in a single computing cluster or a plurality of computer machines capable of communicating over a communication connection. As such, the electronic device 800 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network nodes in the networking environment.
[0065] The input device 850 can be one or more input devices, such as a mouse, a keyboard, a trackball, etc. The output device 880 can be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 800 can also communicate with one or more external devices (not shown) such as a storage device, a display device, etc. through the communication unit 840, as needed, one or more devices that enable a user to interact with the electronic device 800, or any devices (e.g., a network card, a modem, etc.) that enable the electronic device 800 to communicate with one or more other electronic devices. Such communication can be carried out via an input / output (I / O) interface (not shown).
[0066] According to an example implementation of the present disclosure, a computer-readable storage medium having stored thereon one or more computer instructions is provided, wherein the one or more computer instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer executable instructions, and the computer executable instructions are executed by a processor to implement the method described above.
[0067] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0068] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0069] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0070] The computer program product of the present disclosure can have a signal including said computer program. This signal can be electronic, electromagnetic, optical, or any other suitable type of signal. Such a signal can be provided through a communication connection, such as electrical wiring, optical fiber, wireless interface, etc. Examples of computer program products include computer program implemented on a personal computer, server, or other networked device. A non-transitory computer readable medium, such as a floppy disk, CD-ROM, DVD-ROM, Blu-ray disk, hard disk, or other memory, can store the computer program.
[0071] Having described several implementations of the present disclosure, it will be clear to those skilled in the art that many modifications, additions, and substitutions are possible without departing from the scope and spirit of the described implementations. Many modifications and variations of the present disclosure are possible in light of the above teachings. It is, therefore, to be understood that within the scope of the appended claims, the present disclosure can be practiced otherwise than as specifically described. While the present disclosure has been described with reference to the above examples, it is to be understood that modifications and variations of the examples can be configured and that it is therefore intended to cover any and all modifications and variations.
Claims
1. A method for data processing, comprising: obtaining, from a client information repository, first time-consuming information of a client, the client being a client that triggers an exception reporting request after detecting a time-consuming exception of network communication, the first time-consuming information indicating a time length consumed by the client to complete network communication; obtaining a mapping relationship between a client identifier of the client and a server identifier; obtaining, from a server information repository corresponding to the server identifier, second time-consuming information of a server corresponding to the server identifier based on the mapping relationship between the client identifier and the server identifier, the second time-consuming information indicating a time length consumed by the server to complete network communication; and generating a time-consuming statistics table based on the first time-consuming information and the second time-consuming information, the time-consuming statistics table comprising the first time-consuming information and the second time-consuming information.
2. The method of claim 1, wherein the obtaining, from a client information repository, first time-consuming information of a client comprises: subscribing to time-consuming information of the client from the client information repository; and obtaining, based on the subscription to the client information repository, first time-consuming information of the client.
3. The method of claim 1, further comprising: receiving, from the client, the client identifier, wherein the client generates and reports the client identifier in response to a time-consuming exception of network communication; generating, in response to receiving the client identifier, a mapping relationship between the client identifier and the server identifier; and storing, asynchronously, the mapping relationship between the client identifier and the server identifier to a database.
4. The method of claim 3, wherein the obtaining a mapping relationship between a client identifier of the client and a server identifier comprises: receiving an exception reporting request triggered by the client, the exception reporting request comprising at least the client identifier; and obtaining, based on the client identifier, a mapping relationship between the client identifier and the server identifier from the database.
5. The method of claim 4, wherein the client triggers the exception reporting request in response to a time length of network communication exceeding a predetermined threshold.
6. The method of claim 1, wherein the time-consuming statistics table further comprises at least one of: a user identifier of the client; an operation identifier, the operation identifier indicating an operation performed by the client and the server in network communication; an interface identifier, the interface identifier indicating an interface through which the server connects to a gateway; the client identifier; the server identifier.
7. The method of claim 5, further comprising: receiving, from an analysis client, a time-consuming analysis request, the time-consuming analysis request indicating at least the user identifier and the client identifier; and providing, in response to the time-consuming analysis request, the time-consuming statistics table to the analysis client.
8. The method of at least one of claims 1 to 7, wherein the method is executed at the server.
9. A data processing apparatus, comprising: a first information obtaining module configured to obtain first time-consuming information of a client from a client information repository, the client being a client that triggers an exception reporting request after detecting time-consuming exception of network communication, the first time-consuming information indicating a time length consumed by the client to complete network communication a second information obtaining module configured to obtain a mapping relationship between a client identifier of the client and a server identifier a third information obtaining module configured to obtain second time-consuming information of a server corresponding to the server identifier from a server information repository corresponding to the server identifier based on the mapping relationship between the client identifier and the server identifier, the second time-consuming information indicating a time length consumed by the server to complete network communication and a statistics generating module configured to generate a time-consuming statistics table based on the first time-consuming information and the second time-consuming information, the time-consuming statistics table including the first time-consuming information and the second time-consuming information. 10.An electronic device comprising: at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, cause the electronic device to perform the method according to any one of claims 1 to 8. 11.A computer readable storage medium having stored thereon a computer program, the computer program being executable by a processor to implement the method according to any one of claims 1 to 8.