CN114039878A - Network request processing method and device, electronic equipment and storage medium - Google Patents

Network request processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114039878A
CN114039878A CN202111308121.9A CN202111308121A CN114039878A CN 114039878 A CN114039878 A CN 114039878A CN 202111308121 A CN202111308121 A CN 202111308121A CN 114039878 A CN114039878 A CN 114039878A
Authority
CN
China
Prior art keywords
network request
target
development
research
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111308121.9A
Other languages
Chinese (zh)
Other versions
CN114039878B (en
Inventor
黄铮
李永飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ziroom Information Technology Co Ltd
Original Assignee
Beijing Ziroom Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ziroom Information Technology Co Ltd filed Critical Beijing Ziroom Information Technology Co Ltd
Priority to CN202111308121.9A priority Critical patent/CN114039878B/en
Publication of CN114039878A publication Critical patent/CN114039878A/en
Application granted granted Critical
Publication of CN114039878B publication Critical patent/CN114039878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a network request processing method and device, electronic equipment and a storage medium. The method comprises the following steps: monitoring a plurality of network requests generated in the current detection period, and determining the time consumption of the network requests corresponding to the network requests; determining a network request with the time consumption not meeting the time consumption requirement of the network request corresponding to the current research and development period as a target network request, wherein the current research and development period comprises a plurality of detection periods; inquiring a target research and development object corresponding to the target network request; and creating a monitoring task according to the target research and development object, and sending the monitoring task to a preset client, wherein the preset client deploys at least one research and development task corresponding to the target research and development object. According to the method and the device, the network requests which are not time-consuming and meet the requirements can be determined by monitoring the network requests in the current detection period, the monitoring tasks are generated and used for monitoring the research and development tasks corresponding to the network requests which are not meeting the requirements, the feedback timeliness can be increased, and the research and development efficiency is increased.

Description

Network request processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a network request, an electronic device, and a storage medium.
Background
At present, in the process of product research and development, a plurality of links (for example, research and development of research and development personnel, testing of the testing personnel, Bug submission of the testing personnel, Bug repair of the research and development personnel, verification of the testing personnel and online release) need to be set, each link needs different development personnel to execute different research and development tasks, in the process of executing the research and development tasks, different network requests can be generated, when the time consumed by the network requests is long, problems in the research and development cannot be found in time, the problems cannot be solved in time finally, and the research and development cycle is prolonged.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, the present application provides a method and an apparatus for processing a network request, an electronic device, and a storage medium.
According to an aspect of an embodiment of the present application, there is provided a method for processing a network request, including:
monitoring a plurality of network requests generated in a current detection period, and determining the time consumption of the network requests corresponding to the network requests;
determining the network request with the time consumption not meeting the time consumption requirement of the network request corresponding to the current research and development cycle as a target network request, wherein the current research and development cycle comprises a plurality of detection cycles;
inquiring a target research and development object corresponding to the target network request;
and creating a monitoring task according to the target research and development object, and sending the monitoring task to a preset client, wherein at least one research and development task corresponding to the target research and development object is deployed on the preset client.
Further, the determining that the network request corresponding to the network request is time-consuming includes:
calling a log file set corresponding to the network request;
and analyzing each log file in the log file set to obtain the time consumption of the target network request.
Further, before determining that the network request consuming time does not meet the network request consuming time requirement corresponding to the current development cycle as a target network request, the method further includes:
acquiring a historical network request generated in a preset historical time period, and calling a historical log file corresponding to the historical network request;
extracting historical network request time consumption corresponding to the historical network request from the historical log file;
calculating the time consumption upper limit of the network request according to the historical time consumption of the network request;
and determining the upper limit of the consumed time of the network request as the consumed time requirement of the network request corresponding to the current development cycle.
Further, the determining, as a target network request, the network request whose network request consumed time does not meet the network request consumed time requirement corresponding to the current development cycle includes:
and determining the network request with the time consumption higher than the upper limit of the time consumption of the network request as the target network request.
Further, the querying a target development object corresponding to the target network request includes:
determining a target log file corresponding to the target network request from the log file set, wherein the target log file carries a task identifier;
acquiring a target research and development task corresponding to the task identifier according to the task identifier;
and extracting the target research and development object from the target research and development task.
Further, the sending the monitoring task to a preset client includes:
acquiring a network request address of the preset client from the target log file;
inquiring configuration parameters corresponding to the network request address;
and sending the monitoring task to a preset client under the condition that the network state of the preset client is determined to be a normal state according to the configuration parameters.
Further, after sending the monitoring task to a preset client, the method further includes:
acquiring a monitoring result fed back by the preset client according to the monitoring task;
and under the condition that the monitoring result is used for indicating that the research and development progress of the target research and development task meets a preset requirement, cancelling the monitoring task.
According to another aspect of the embodiments of the present application, there is also provided a device for processing a network request, including:
the monitoring module is used for monitoring a plurality of network requests generated in the current detection period and determining the time consumption of the network requests corresponding to the network requests;
a determining module, configured to determine, as a target network request, a network request whose network request consumed time does not meet a network request consumed time requirement corresponding to the current development cycle, where the current development cycle includes multiple detection cycles;
the query module is used for querying a target research and development object corresponding to the target network request;
and the creating module is used for creating a monitoring task according to the target research and development object and sending the monitoring task to a preset client, wherein the preset client deploys at least one research and development task corresponding to the target research and development object.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that executes the above steps when the program is executed.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; a processor for executing the steps of the method by running the program stored in the memory.
Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the steps of the above method.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method and the device, the network requests which are not time-consuming and meet the requirements can be determined by monitoring the network requests in the current detection period, the monitoring tasks are generated and used for monitoring the research and development tasks corresponding to the network requests which are not meeting the requirements, the feedback timeliness can be increased, and the research and development efficiency is increased.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of a method for processing a network request according to an embodiment of the present application;
fig. 2 is a flowchart of a method for processing a network request according to another embodiment of the present application;
fig. 3 is a flowchart of a method for processing a network request according to another embodiment of the present application;
fig. 4 is a flowchart of a method for processing a network request according to another embodiment of the present application;
fig. 5 is a flowchart of a method for processing a network request according to another embodiment of the present application;
fig. 6 is a block diagram of a device for processing a network request according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments, and the illustrative embodiments and descriptions thereof of the present application are used for explaining the present application and do not constitute a limitation to the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another similar entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a network request processing method and device, electronic equipment and a storage medium. The method provided by the embodiment of the invention can be applied to any required electronic equipment, for example, the electronic equipment can be electronic equipment such as a server and a terminal, and the method is not particularly limited herein, and is hereinafter simply referred to as electronic equipment for convenience in description.
According to an aspect of embodiments of the present application, a method embodiment of a method for processing a network request is provided. Fig. 1 is a flowchart of a method for processing a network request according to an embodiment of the present application, and as shown in fig. 1, the method includes:
step S11, monitoring a plurality of network requests generated in the current detection period, and determining that the network request corresponding to the network request consumes time.
In the embodiment of the present application, step S11, determining that the network request corresponding to the network request is time-consuming, as shown in fig. 2, includes the following steps a1-a 2:
step A1, call the network to request the corresponding log file set.
Step A2, analyzing each log file in the log file set to obtain the time consumption of the target network request.
In the embodiment of the present application, the detection period may be a period preset in the current development period for detecting a network request, and the detection period may be 10min, 20min, 30min, and so on. The method comprises the following steps of monitoring a plurality of network requests generated in each detection period so as to collect relevant data of each network request, wherein the relevant data comprises: the network request processing method comprises the following steps of consuming time for the network request, task identification and a request address, wherein the task identification is used for representing a research and development task which is used for the network request to execute, and the request address is an address for sending the network request.
Step S12, determining a network request whose network request consumed time does not meet the network request consumed time requirement corresponding to the current development cycle as a target network request, where the current development cycle includes multiple detection cycles.
In this embodiment of the application, as shown in fig. 3, before determining a network request whose network request consumption does not meet the network request consumption requirement corresponding to the current development cycle as a target network request, the method further includes the following steps B1-B4:
and step B1, acquiring historical network requests generated in a preset historical time period, and calling historical log files corresponding to the historical network requests.
In this embodiment of the application, the preset historical time period may be one or two historical development cycles adjacent to the current development cycle, or the difference between the end point of the preset historical time period and the preset time length may be calculated with the start time of the current development cycle as the end point of the preset historical time period, and the difference is determined as the start point of the preset historical time period, so as to obtain the preset historical time period finally.
And step B2, extracting the time consumption of the historical network request corresponding to the historical network request from the historical log file.
In the embodiment of the present application, after a preset historical time period is determined, a historical network request generated in the preset historical time period is queried, and a historical log file corresponding to the historical network request is called, where the historical log file includes: historical network request time consumption, historical task identification and historical request address.
And step B3, calculating the upper limit of the time consumption of the network request according to the historical time consumption of the network request.
In the embodiment of the application, the time consumption of the historical network request in the last detection period is counted, and the upper limit of the time consumption of the network request in the current detection period is calculated according to the time consumption of the historical network request. And dynamic change of the time consumption upper limit of the network request in the detection period is realized in turn. The time consumption upper limit of the network request does not need to be manually set, and the processing efficiency of the network request is improved.
And step B4, determining the upper limit of the network request time consumption as the network request time consumption requirement corresponding to the current development cycle.
The upper limit of the time consumption of the network request in the embodiment of the application may be the value of indexes such as TP90, TP95, TP99, and the like. The process of calculating the above index is as follows:
in the embodiment of the application, more numerical values are stored by using a data structure with a limited length. Here, the data structure selects an array, taking as an example the indexes of TP90, TP95, or TP99, etc. that take time to calculate:
double[]SCALE=new double[2400]
int[]count Container=new int[2400]
based on the method, two arrays with the same length are created, wherein the SCALE array is used for storing time-consuming placeholders and representing corresponding time-consuming values; and the count Container array is used for storing the occurrence times of a certain time consumption value and is in one-to-one correspondence with the SCALE array.
For example, a SCALE [1024] value of 1025 and a count Container [1024] value of 2050 indicates that the 1025 value occurred 2050 times. Because the time-consuming value can be infinite, but all the values cannot be given to the utmost, the more practical situation is: most of the consumption values are concentrated in one area. Therefore, we only need to list common values and use step size to control, and the specific method is as follows:
and the SCALE array indexes are 0-999, the storage is 1-1000, and the step length is 1.
The SCALE array indexes are 1000-1899, the storage ranges from 1010-10000, and the step length is 10.
And the SCALE array indexes are 1900-2399, store 10100-60000 and have the step size of 100.
The Count Container array indexes 0-2399, all initialized to 0
Where the stored maximum time consumption value is 60000, meaning 60000 milliseconds, i.e., 1 minute.
When recording takes time, t, assuming that t is 1000,
(1) matching the corresponding slot position in the t-to-SCALE array, and calculating that SCALE [999] ═ 1000, wherein the index value of the corresponding slot position is 999;
(2) adding the value of the count Container [999] into the count Container array to accumulate 1;
(3) step 1 and step 2 are cycled
When the value of TP95 is calculated, step 3 is stopped, the total number sum of the records that is consumed, i.e. the sum of all the values in the count Container array, is obtained, and then the calculation process is as follows:
(1) the index of TP99 was calculated, assuming sum 99% ═ watermark 99 started from count Container [0 ].
(2) The values of the array are accumulated from front to back (or from back to front starting with count Container [2399 ]).
(3) When count Container [0] + count Container [1] + count Container [ target ] >, the target index is recorded as watermark 95.
(4) Holding the target to the corresponding slot position matched in the SCALE array, wherein SCALE [ target ] is the value of TP99
Thus, TP95 is calculated.
In this embodiment of the present application, in step S12, determining, as the target network request, the network request whose network request consumed time does not meet the network request consumed time requirement corresponding to the current development cycle, includes: and determining the network request with the time consumption higher than the upper limit of the time consumption of the network request as the target network request.
And step S13, inquiring a target development object corresponding to the target network request.
In this embodiment of the application, in step S13, querying the target development object corresponding to the target network request includes, as shown in fig. 4, the following steps C1-C3:
and step C1, determining a target log file corresponding to the target network request from the log file set, wherein the target log file carries the task identifier.
And step C2, acquiring the target research and development task corresponding to the task identifier according to the task identifier.
And step C3, extracting the target development object from the target development task.
In the embodiment of the application, a target research and development task can be directly obtained by a task identifier carried in a log file, and the target research and development task includes: task name, task content, and target development object. The targeted development tasks may be interface debugging tasks, database maintenance tasks, testing tasks, and the like. The target development object may be a developer.
It should be noted that, in the process of developing a certain service, multiple research and development tasks are generated according to the service content of the service, and the research and development tasks correspond to different research and development objects. According to the embodiment of the application, after the research and development tasks are generated according to the business content, a first incidence relation between the business identifier of the business and the task identifier of each research and development task is established, a second incidence relation between the research and development tasks and the research and development objects is established, and the second incidence relation is stored in the research and development tasks.
Step S14, creating a monitoring task according to the target research and development object, and sending the monitoring task to a preset client, where the preset client deploys at least one research and development task corresponding to the target research and development object.
In the embodiment of the application, the monitoring task is used for monitoring the research and development tasks executed by the target research and development object. Wherein the monitoring task may be a Jira task.
In the embodiment of the application, the sending of the monitoring task to the preset client includes the following steps D1-D3:
and D1, acquiring the network request address of the preset client from the target log file.
And D2, inquiring the configuration parameters corresponding to the network request address.
And D3, sending a monitoring task to the preset client under the condition that the network state of the preset client is determined to be a normal state according to the configuration parameters.
In this embodiment, the configuration parameters corresponding to the network request address include normal and thumbnail, where normal may represent a network state with better signal, thumbnail may represent a network state with worse signal, or normal may represent that the user can receive data or resources with better quality, and thumbnail may represent that the user can receive data or resources with only worse quality. Further, the user's WiFi status may be represented by the normal quality parameter and the user's data traffic status may be represented by the thunbbail.
Therefore, the method provided by the embodiment of the application can provide different data interfaces to return data resources to the client according to different network states of the user client, so that the client can save data traffic in a non-Wi-Fi state.
According to the method and the device, the network requests which are not time-consuming and meet the requirements can be determined by monitoring the network requests in the current detection period, the monitoring tasks are generated and used for monitoring the research and development tasks corresponding to the network requests which are not meeting the requirements, the feedback timeliness can be increased, and the research and development efficiency is increased.
In this embodiment of the present application, after sending the monitoring task to the preset client, as shown in fig. 5, the method further includes the following steps:
step S21, acquiring a monitoring result fed back by a preset client according to the monitoring task;
and step S22, under the condition that the monitoring result is used for indicating that the research and development progress of the target research and development task meets the preset requirement, the monitoring task is cancelled.
In the embodiment of the application, the preset client executes the monitoring task to monitor the target research and development task, so as to obtain a monitoring result, wherein the monitoring result comprises: the progress of the development of the target development task and the development problem. Specifically, under the condition that the monitoring result is used for indicating that the research and development progress of the target research and development task meets the preset requirement, the monitoring task is cancelled.
In the embodiment of the application, under the condition that the research and development problem of the target research and development task is determined according to the monitoring result, a preset knowledge base is called, the preset knowledge base stores historical research and development problems and processing strategies corresponding to the historical research and development problems, whether the historical research and development problems related to the research and development problems exist is inquired from the preset knowledge base, if the historical research and development problems related to the research and development problems exist, the processing strategies corresponding to the historical research and development problems are obtained from the preset knowledge base, and the processing strategies are sent to a preset client side, so that the preset client side can display the processing strategies, and the processing strategies include: solving the historical research and development problem and causing the historical research and development problem.
In the embodiment of the application, if the historical research and development problems related to the research and development problems do not exist in the preset knowledge base, the research and development information related to the research and development problems is crawled from at least two websites, the research and development information is stored in the preset knowledge base, and meanwhile, the research and development information is sent to the preset client.
In the embodiment of the application, under the condition that the monitoring result is used for indicating that the research and development progress of the target research and development task does not meet the preset requirement, the research and development progress of the research and development tasks in other clients is obtained, the client with the research and development progress larger than the preset progress is determined as the main client, and then the remaining target research and development tasks are migrated to the main client from the preset client, so that the research and development object corresponding to the main client completes the remaining target research and development tasks.
Fig. 6 is a block diagram of a network request processing apparatus provided in an embodiment of the present application, which may be implemented as part of or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 6, the apparatus includes:
the monitoring module 61 is configured to monitor multiple network requests generated in a current detection period, and determine time consumption of the network requests corresponding to the network requests;
a determining module 62, configured to determine, as a target network request, a network request whose network request consumed time does not meet a network request consumed time requirement corresponding to a current development cycle, where the current development cycle includes multiple detection cycles;
the query module 63 is configured to query a target research and development object corresponding to the target network request;
the creating module 64 is configured to create a monitoring task according to the target research and development object, and send the monitoring task to a preset client, where at least one research and development task corresponding to the target research and development object is deployed on the preset client.
In the embodiment of the application, the monitoring module is used for calling a log file set corresponding to the network request; and analyzing each log file in the log file set to obtain the target network request time consumption of the target network request.
In this embodiment of the present application, the apparatus for processing a network request further includes: the computing module is used for acquiring historical network requests generated in a preset historical time period and calling historical log files corresponding to the historical network requests; extracting historical network request time consumption corresponding to the historical network request from the historical log file; calculating the time consumption upper limit of the network request according to the historical time consumption of the network request; and determining the upper limit of the consumed time of the network request as the consumed time requirement of the network request corresponding to the current research and development period.
In the embodiment of the present application, the determining module is configured to determine, as the target network request, a network request for which the network request time consumption is higher than a network request time consumption upper limit.
In the embodiment of the application, the query module is used for determining a target log file corresponding to a target network request from the log files, wherein the target log file carries a task identifier; acquiring a target research and development task corresponding to the task identifier according to the task identifier; and extracting a target research and development object from the research and development task.
In the embodiment of the application, the creating module is used for acquiring a network request address of a preset client from a target log file; inquiring configuration parameters corresponding to the network request address; and sending a monitoring task to the preset client under the condition that the network state of the preset client is determined to be a normal state according to the configuration parameters.
In this embodiment of the present application, the apparatus for processing a network request further includes: the processing module is used for acquiring a monitoring result fed back by a preset client according to the monitoring task; and under the condition that the monitoring result is used for indicating that the research and development progress of the target research and development task meets the preset requirement, cancelling the monitoring task.
An embodiment of the present application further provides an electronic device, as shown in fig. 7, the electronic device may include: the system comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 complete communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501 is configured to implement the steps of the above embodiments when executing the computer program stored in the memory 1503.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, which stores instructions that, when executed on a computer, cause the computer to perform a method for processing a network request as described in any of the above embodiments.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform a method for processing a network request as described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk), among others.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for processing a network request, comprising:
monitoring a plurality of network requests generated in a current detection period, and determining the time consumption of the network requests corresponding to the network requests;
determining the network request with the time consumption not meeting the time consumption requirement of the network request corresponding to the current research and development cycle as a target network request, wherein the current research and development cycle comprises a plurality of detection cycles;
inquiring a target research and development object corresponding to the target network request;
and creating a monitoring task according to the target research and development object, and sending the monitoring task to a preset client, wherein at least one research and development task corresponding to the target research and development object is deployed on the preset client.
2. The method of claim 1, wherein the determining that the network request corresponding to the network request is time-consuming comprises:
calling a log file set corresponding to the network request;
and analyzing each log file in the log file set to obtain the time consumption of the target network request.
3. The method according to claim 1, wherein before determining that the network request consuming time that does not meet the network request consuming time requirement corresponding to the current development cycle is a target network request, the method further comprises:
acquiring a historical network request generated in a preset historical time period, and calling a historical log file corresponding to the historical network request;
extracting historical network request time consumption corresponding to the historical network request from the historical log file;
calculating the time consumption upper limit of the network request according to the historical time consumption of the network request;
and determining the upper limit of the consumed time of the network request as the consumed time requirement of the network request corresponding to the current development cycle.
4. The method according to claim 3, wherein the determining the network request whose network request consumed time does not meet the network request consumed time requirement corresponding to the current development cycle as the target network request comprises:
and determining the network request with the time consumption higher than the upper limit of the time consumption of the network request as the target network request.
5. The method of claim 2, wherein the querying the target development object corresponding to the target network request comprises:
determining a target log file corresponding to the target network request from the log file set, wherein the target log file carries a task identifier;
acquiring a target research and development task corresponding to the task identifier according to the task identifier;
and extracting the target research and development object from the target research and development task.
6. The method of claim 5, wherein sending the monitoring task to a preset client comprises:
acquiring a network request address of the preset client from the target log file;
inquiring configuration parameters corresponding to the network request address;
and sending the monitoring task to a preset client under the condition that the network state of the preset client is determined to be a normal state according to the configuration parameters.
7. The method of claim 5, wherein after sending the monitoring task to a pre-set client, the method further comprises:
acquiring a monitoring result fed back by the preset client according to the monitoring task;
and under the condition that the monitoring result is used for indicating that the research and development progress of the target research and development task meets a preset requirement, cancelling the monitoring task.
8. An apparatus for processing a network request, comprising:
the monitoring module is used for monitoring a plurality of network requests generated in the current detection period and determining the time consumption of the network requests corresponding to the network requests;
a determining module, configured to determine, as a target network request, a network request whose network request consumed time does not meet a network request consumed time requirement corresponding to the current development cycle, where the current development cycle includes multiple detection cycles;
the query module is used for querying a target research and development object corresponding to the target network request;
and the creating module is used for creating a monitoring task according to the target research and development object and sending the monitoring task to a preset client, wherein the preset client deploys at least one research and development task corresponding to the target research and development object.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program is operative to perform the method steps of any of the preceding claims 1 to 7.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus; wherein:
a memory for storing a computer program;
a processor for performing the method steps of any of claims 1-7 by executing a program stored on a memory.
CN202111308121.9A 2021-11-05 2021-11-05 Network request processing method and device, electronic equipment and storage medium Active CN114039878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111308121.9A CN114039878B (en) 2021-11-05 2021-11-05 Network request processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111308121.9A CN114039878B (en) 2021-11-05 2021-11-05 Network request processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114039878A true CN114039878A (en) 2022-02-11
CN114039878B CN114039878B (en) 2023-03-24

Family

ID=80143090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111308121.9A Active CN114039878B (en) 2021-11-05 2021-11-05 Network request processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114039878B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114900444A (en) * 2022-04-25 2022-08-12 北京奇艺世纪科技有限公司 Data monitoring method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190303274A1 (en) * 2018-03-30 2019-10-03 Atlassian Pty Ltd Systems and methods for monitoring performance of applications
CN110471824A (en) * 2019-08-19 2019-11-19 中国工商银行股份有限公司 Monitoring method, device, system, electronic equipment and computer readable storage medium
CN111064802A (en) * 2019-12-26 2020-04-24 北京奇艺世纪科技有限公司 Network request processing method and device, electronic equipment and storage medium
CN112600713A (en) * 2020-12-24 2021-04-02 上海哔哩哔哩科技有限公司 Data monitoring method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190303274A1 (en) * 2018-03-30 2019-10-03 Atlassian Pty Ltd Systems and methods for monitoring performance of applications
CN110471824A (en) * 2019-08-19 2019-11-19 中国工商银行股份有限公司 Monitoring method, device, system, electronic equipment and computer readable storage medium
CN111064802A (en) * 2019-12-26 2020-04-24 北京奇艺世纪科技有限公司 Network request processing method and device, electronic equipment and storage medium
CN112600713A (en) * 2020-12-24 2021-04-02 上海哔哩哔哩科技有限公司 Data monitoring method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114900444A (en) * 2022-04-25 2022-08-12 北京奇艺世纪科技有限公司 Data monitoring method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114039878B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN106548402B (en) Resource transfer monitoring method and device
CN110851465B (en) Data query method and system
CN109543891B (en) Method and apparatus for establishing capacity prediction model, and computer-readable storage medium
CN110633977A (en) Payment exception processing method and device and terminal equipment
CN110956269A (en) Data model generation method, device, equipment and computer storage medium
CN111338967A (en) Shunting test method and device, electronic equipment and storage medium
CN114090366A (en) Method, device and system for monitoring data
CN114039878B (en) Network request processing method and device, electronic equipment and storage medium
CN114281648A (en) Data acquisition method and device, electronic equipment and storage medium
CN111159131A (en) Performance optimization method, device, equipment and computer readable storage medium
CN113326061A (en) Fusing configuration modification method, device and equipment and readable storage medium
CN112836124A (en) Image data acquisition method and device, electronic equipment and storage medium
CN107797924B (en) SQL script abnormity detection method and terminal thereof
CN108255704B (en) Abnormal response method of script calling event and terminal thereof
CN114090268B (en) Container management method and container management system
CN115098157A (en) Method and device for processing public service data
CN114265737A (en) System migration integrity detection method and device and electronic equipment
CN110020166A (en) A kind of data analysing method and relevant device
CN113778831A (en) Data application performance analysis method, device, equipment and medium
CN113094088A (en) Database configuration information acquisition method and device, computer equipment and storage medium
CN114490246A (en) Monitoring method, monitoring device, electronic equipment and storage medium
CN112817713A (en) Job scheduling method and device and electronic equipment
CN112671602A (en) Data processing method, device, system, equipment and storage medium of edge node
CN111045983A (en) Nuclear power station electronic file management method and device, terminal equipment and medium
CN117313856B (en) Reliability test planning system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant