CA3184580A1 - Interface dynamic flow control method and device, computer equipment and storage medium - Google Patents

Interface dynamic flow control method and device, computer equipment and storage medium

Info

Publication number
CA3184580A1
CA3184580A1 CA3184580A CA3184580A CA3184580A1 CA 3184580 A1 CA3184580 A1 CA 3184580A1 CA 3184580 A CA3184580 A CA 3184580A CA 3184580 A CA3184580 A CA 3184580A CA 3184580 A1 CA3184580 A1 CA 3184580A1
Authority
CA
Canada
Prior art keywords
target service
target
request
interface
service request
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.)
Pending
Application number
CA3184580A
Other languages
French (fr)
Inventor
Chenghua Wang
Jia HUO
Qian Sun
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.)
10353744 Canada Ltd
Original Assignee
10353744 Canada 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 10353744 Canada Ltd filed Critical 10353744 Canada Ltd
Publication of CA3184580A1 publication Critical patent/CA3184580A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention discloses an interface dynamic flow control method, apparatus, computer device, and storage medium. The method comprises: obtaining a flow control rule corresponding to preset category information of a target interface from a data system; obtaining request response time of each target service request of the target interface corresponding to the preset category information, wherein the target interface is set a plurality of the flow control rules in advance; and calculating an average request response time of a plurality of target service requests according to the request response time of each target service request of the target interface; and setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, connection quantity requested by the target service of the target interface e controlled through the threshold.

Description

INTERFACE DYNAMIC FLOW CONTROL METHOD AND DEVICE, COMPUTER
EQUIPMENT AND STORAGE MEDIUM
Technical Field [0001] The present disclosure relates to the technical field of flow control, particularly to an interface dynamic flow control method, apparatus, computer device, and storage medium.
Background
[0002] Current peak-clipping solutions regarding network flow control, such as gateway flow control in the microservices, Soul gateway with a high-performance response and so on, usually adjust the flow control threshold by setting a fixed value or by manual to perform flow peak clipping. It may cause the following issues:
[0003] 1. The fixed value of the flow control threshold may not be the optimal value for various emergent scenarios; and
[0004] 2. Manual adjustment cannot respond effectively in time.
Invention Content
[0005] Based on this, it is necessary to address the above technical problems and provide an interface dynamic flow control method, apparatus, computer device and storage medium, which enables control of a threshold value of flow control interface dynamically based on a dynamic service request quantity so as to maintain the stability of a data system.
[0006] An interface dynamic flow control method, comprises: obtaining a flow control rule corresponding to preset category infoimation of a target interface from a data system; obtaining request response time of each target service request of the target interface corresponding to the preset category information; calculating an average request response time of a plurality of target service requests according to the request response time of each target service request of the target interface; and setting a Date Regue/Date Received 2023-02-21 threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the connection quantity requested by the target service of the target interface can be controlled through the threshold.
[0007] In an embodiment, wherein the target interface includes a gateway layer interface of the data system, wherein the method of obtaining a flow control rule corresponding to preset category information of a target interface from a data system, further comprises: obtaining a plurality of first data of the plurality of first service requests from the gateway layer interface, wherein the plurality of first data includes a request category of each first target service request, a trigger time of each first target service request, and an end time of each first target service request;
according to the request category of each first target service request, identifying the plurality of target service requests corresponding to the preset category information from the plurality of first service requests; obtaining both a trigger time and an end time of each target service request from the plurality of first data of the plurality of first service requests;
and calculating the request response time of each target service request according to both the trigger time and the end time of each target service request.
[0008] In an embodiment, wherein the method of setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, further comprises: obtaining a first threshold value that matches the average request response time from the flow control rule and setting the first threshold value as the threshold value of the target service request quantity.
[0009] In an embodiment, wherein the target interface includes an application layer interface of an application server in the data system, wherein the method of obtaining request response time of each target service request of the target interface corresponding to the preset category information, further comprises: obtaining a plurality of second data of the plurality of second service requests from the application Date Regue/Date Received 2023-02-21 layer interface, wherein the plurality of second data includes a request category of each second target service request, a trigger time of each second target service request, and an end time of each second target service request; according to the request category of each second target service request, identifying the plurality of target service requests corresponding to the preset category information from the plurality of second service requests; obtaining both a trigger time and an end time of each target service request from the plurality of second data of the plurality of second service requests;
and calculating the request response time of each target service request according to both the trigger time and the end time of each target service request.
[00101 In an embodiment, the interface dynamic flow control method further comprises:
obtaining status infoimation of a data support system corresponding to the application server, wherein the data support system is configured to respond to the plurality of second service requests sent by the application server; determining a second threshold value according to the status information; and setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, further includes: determining a third threshold value according to both the flow control rule and average request response time; and determining a minimum value between the second threshold value and the third threshold value, and setting the minimum value as the threshold value of the target service request quantity.
[00111 In an embodiment, the interface dynamic flow control method further comprises:
obtaining data acquisition frequency and data acquisition parameters corresponding to the preset category information of the target interface; acquiring a plurality of the third data of the plurality of target service requests from the target interface according to the data acquisition frequency and data acquisition parameters; and calculating the request response time of each target service request according to the plurality of the third data.
[00121 In an embodiment, the interface dynamic flow control method further comprises:

Date Recue/Date Received 2023-02-21 when the target service request quantity of the target interface is beyond the threshold value, controlling the target interface that accesses a first quantity of the target service requests, and performing a circuit-breaking process for a second quantity of the target service requests, wherein the first quantity of the target service requests is the threshold value, wherein the second quantity of the target service requests is a difference between the target service request quantity and the threshold value.
[0013] In an embodiment, an interface dynamic flow control apparatus comprises: a first obtaining module configured to obtain a flow control rule corresponding to preset category information of a target interface from a data system; a second obtaining module configured to obtain request response time of each target service request of the target interface corresponding to the preset category infoimation; a calculation module configured to calculate an average request response time of a plurality of target service requests according to the request response time of each target service request of the target interface; and a setting module configured to set a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the connection quantity requested by the target service of the target interface can be controlled through the threshold.
[0014] A computer device, including a memory, a processor and a computer program stored in the memory and run on the processor configured to achieve above steps when the processor executes the computer program.
[0015] A computer readable storage medium stored with a computer program configured to achieve above steps when the processor executes the computer program.
[0016] The above-mentioned method, apparatus, computer device, and storage medium for controlling interface flow dynamically. The method comprises: obtaining a flow control rule corresponding to preset category information of a target interface from a data system; obtaining request response time of each target service request of the target Date Recue/Date Received 2023-02-21 interface; calculating an average request response time of a plurality of target service requests according to the request response time of each target service request of the target interface; and setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the connection quantity requested by the target service of the target interface can be controlled through the threshold. The above method can adjust the threshold value of the target service request quantity of the target interface in real-time to maintain the stability of the data system in real-time.
Drawing Description [0017] Figure 1 is an application environment diagram of an interface dynamic flow control method in an embodiment;
[0018] Figure 2 is a flowchart of the interface dynamic flow control method in an embodiment;
[0019] Figure 3 is an infounation flow frame of a gateway layer for controlling interface flow dynamically in an embodiment;
[0020] Figure 4 is a framework diagram of a system architecture of the interface dynamic flow control method in an embodiment;
[0021] Figure 5 is a hardware topology diagram of the system architecture of the interface dynamic flow control method in an embodiment;
[0022] Figure 6 is a process operation diagram of an interface dynamic flow control method in an embodiment;
[0023] Figure 7 is a structural diagram of an interface dynamic flow control apparatus in an embodiment; and Date Regue/Date Received 2023-02-21 [0024]
Figure 8 is an internal structural diagram of a computer device in an embodiment.
Specific embodiment methods [0025] In order to make clearer application purposes, technical solutions, and advantages, the present disclosure is further explained in detail with a particular embodiment thereof, and with reference to the drawings. It shall be appreciated that these descriptions are only intended to be illustrative, but not to limit the scope of the disclosure thereto.
[0026] The present application provides an interface dynamic flow control method and applies the method in an application environment as shown in Figure 1. In Figure 1, a service system cluster 102 includes a plurality of service systems, each service system sends a service request to a data system 104 respectively so as to obtain the service data corresponding to the service request from the data system 104. When the plurality of service systems delivers the service requests to the data system in the same period, or when a service system delivers a plurality of service requests to the data system, it may cause the data system 104 operating overpressure and system failure, therefore, it is necessary to control flow for the service requests in the data system 104. Specifically, the data monitoring platform 106 obtains a flow control rule corresponding to preset category information of a target interface from a data system, and obtains request response time of each target service request of the target interface corresponding to the preset category information, and calculates an average request response time of a plurality of target service requests according to the request response time of each target service request of the target interface, and sets a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the connection quantity requested by the target service of the target interface can be controlled through the threshold. Therefore, it enables the threshold value of target service request quantity of the target interface to be adjusted in real time, it also enables the threshold value to synchronize for Date Regue/Date Received 2023-02-21 matching the target service request of the target interface. The stability of the data system is maintained in real time.
[0027] In an embodiment, as shown in Figure 2, an interface dynamic flow control method is provided, as an example of the data monitoring platform in Figure 1, comprising the following steps:
[0028] Step 202, obtaining a flow control rule corresponding to preset category information of a target interface from a data system.
[0029] In the embodiment, one or multiple flow control rules are set for the target interface in advance. The multiple flow control rules are set based on the category of the service request of the target interface. For example, the category of the service request relates to a user's reports, the flow control rule is set for the user's reports, wherein the flow control rule correlates to the average response time of the service request of the target interface, and the different average response times corresponds to various threshold values for flow control.
[0030] The flow control rule includes but is not limited to: counting method and bucketing method. The counting method: the maximum connection numbers of the different service requests corresponds to the various average response times, namely, the maximum allowable connection numbers of a single URL (uniform resource locator) or the entire URL or a system at various average response times.
The bucketing method: the maximum access numbers per second at various average response times, namely, the maximum allowable access numbers per second of a single URL (unifoini resource locator) or the entire URL or a system at various average response times.
[0031] Various preset category information is configured in the data monitoring platform, and the different preset category information corresponds to different Date Regue/Date Received 2023-02-21 flow control rules. The data monitoring platform obtains the flow control rule corresponding to preset category information of the target interface from the data system.
[0032] Step 204, obtaining request response time of each target service request of the target interface corresponding to the preset category information.
[0033] In the embodiment, the data system receives multiple types of service requests through the target interface. The data monitoring platform has different flow control rules for multiple types of service requests. Here, the data relating to a plurality of service requests of the target interface, which corresponds to the preset category information, is acquired, and the request response time of each target service request is deteunined according to the data relating to each target service request. For example, the data relating to a plurality of service requests of the target interface, which corresponds to the user's reports, is acquired.
The data includes the trigger time and the response time of each target service request, and the request response time of each target service request is determined according to the trigger time and response time.
[0034] Step 206, calculating an average request response time of a plurality of target service requests according to the request response time of each target service request of the target interface.
[0035] In the embodiment, the average request response time of the target service request of the target interface within the preset period is obtained. The average request response time can be an average value of the request response times of the plurality of target service requests within the preset period. The average request response time is also can be an average response time of a number of the target service requests within a time window, wherein the time window is slidable for setting the preset period, for example, 30 seconds or 60 seconds.

Date Regue/Date Received 2023-02-21 [0036] Step 208, setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the connection quantity requested by the target service of the target interface can be controlled through the threshold.
[0037] In the embodiment, various average response times are set for different threshold values in the flow control rules, namely, it is determined the associated combination relationship between one or multiple groups of the average response time and the threshold values. When the average response time of the target service requests within the preset period is known, the corresponding threshold value of a number of the target service requests is determined from the flow control rule. The maximum connection number of the target service requests of the target interface is set by the corresponding threshold value of the target service request quantity.
Therefore, the flow control of the target interface can be achieved by controlling the target service request quantity.
[0038] A above-mentioned method for controlling interface flow dynamically.
The method comprises: obtaining a flow control rule corresponding to preset category information of a target interface from a data system; obtaining request response time of each target service request of the target interface; calculating an average request response time of a plurality of target service requests according to the request response time of each target service request of the target interface;
and setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the connection quantity requested by the target service of the target interface can be controlled through the threshold. Therefore, the present application can adjust the threshold value of the target service request quantity of the target interface in real-time to maintain the stability of the data system in real-time.

Date Regue/Date Received 2023-02-21 [0039] In an embodiment, the target interface includes a gateway layer interface of the data system, the above method of obtaining a flow control rule corresponding to preset category information of a target interface from a data system, further comprises: obtaining a plurality of first data of the plurality of first service requests from the gateway layer interface, wherein the plurality of first data includes a request category of each first target service request, a trigger time of each first target service request, and an end time of each first target service request;
according to the request category of each first target service request, identifying the plurality of target service requests corresponding to the preset category information from the plurality of first service requests; obtaining both a trigger time and an end time of each target service request from the plurality of first data of the plurality of first service requests; and calculating the request response time of each target service request according to both the trigger time and the end time of each target service request.
[0040] In this embodiment, when the service system accesses the data system, the gateway layer interface receives a plurality of the first service requests from the service system, and the gateway layer records a plurality of the first data of each first service request. The plurality of the first data includes a trigger time of each first service request, and the request content of each first service request, and the name of the data system in the first service request, and the interface address of each first service request etc. At the moment, the first data is stored in the gateway server. When the gateway layer forwards the first service request to the application server and receives the response data from the application server, the gateway layer records the end time of the first service request, and the name of the data support system depending on the first service request and the status of the request result. Wherein the plurality of the first data further includes the end time of the first service request, and the name of the data support system depending on the first service request and the status of the request result. The gateway layer delivers all data information above included in the plurality of the first data to an information acquisition storage area of the data monitoring platform.
Date Recue/Date Received 2023-02-21 [0041] The data monitoring platfolin acquires, from the information acquisition storage area, the plurality of the first data of each first service request at the gateway layer interface, wherein the plurality of first data includes the request category of each first target service request, the trigger time of each first target service request, and the end time of each first target service request. According to the request category of each first service request, the plurality of the first service requests corresponding to the preset category information is identified from the plurality of first service requests.
Specifically, the plurality of the first service requests includes a plurality of the target service requests, the request category of each first service request matches the preset category information, and the plurality of the target service request of each the first service request is identified from the matching results. Further, both a trigger time and an end time of each target service request are obtained, the difference between the trigger time and the end time is set as the request response time. Therefore, the request response time of each target service request at the gateway layer interface is obtained and the threshold value of the target service request quantity is further calculated. In this way, the flow control of the target interface can be achieved by controlling the connection number of the target service requests at the gateway layer.
[0042] In an embodiment, the above method of setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, further comprises: obtaining a first threshold value that matches the average request response time from the flow control rule and setting the first threshold value as the threshold value of the target service request quantity.
[0043] In this embodiment, the target interface is the gateway layer interface, the threshold value of the gateway layer interface for flow control is set by the average request response time of the target service requests. Specifically, the threshold value corresponding to each average request response is set in the flow control rule, a first threshold value that matches the average request response time is obtained from the Date Recue/Date Received 2023-02-21 flow control rule, and the first threshold value is set as the threshold value of the target service request quantity. Therefore, the threshold value is obtained that matches the real-time target service request of the gateway layer interface. Therefore, the connection number of the target service requests at the gateway layer can be controlled by the threshold value to maintain the stability of the gateway layer.
[0044] For example, on a basis of the embodiment above of the interface dynamic flow control method, as an example of an information flow frame of a gateway layer for controlling interface flow dynamically in an embodiment, the details of information flow as shown in Figure 3:
[0045] 1. A system operates the rule module for initiating the acquisition rule, the flow control rule and the circuit-breaking rule, the following rules can be inserted dynamically according to the rule piece.
[0046] 2. A client terminal initiates a service request.
[00471 3. The gateway layer acquires the service request status, a start time and an end time of the service request and so on.
[0048] 4. The corresponding service server acquires core parameters of the service request depending on the response time and status of the interface.
[0049] 5. Landing the data pushed by an external server.
[0050] 6. Acquisition data is input into a Kafka queue and calculated through spark, flunk, and acquiring the result data that impacts on the flow control rule and the circuit-breaking rule, and storing the result data to the data storage, such as druid, ES.
[00511 7. According to the calculation results, matching automatically a upper limit of Date Regue/Date Received 2023-02-21 layers, and modifying dynamically the threshold value corresponding to the rule.
[0052] 8. The gateway relies on the latest degrade rule and performs a peak-clipping process.
[00531 Therefore, the threshold value can be changed dynamically according to the real-time pressure control data system of the gateway layer, to maintain the stability of the data system.
[0054] In an embodiment, the target interface includes an application layer interface of an application server in the data system, the above method of obtaining request response time of each target service request of the target interface corresponding to the preset category information, further comprises: obtaining a plurality of second data of the plurality of second service requests from the application layer interface, wherein the plurality of second data includes a request category of each second target service request, a trigger time of each second target service request, and an end time of each second target service request; according to the request category of each second target service request, identifying the plurality of target service requests corresponding to the preset category information from the plurality of second service requests;
obtaining both a trigger time and an end time of each target service request from the plurality of second data of the plurality of second service requests; and calculating the request response time of each target service request according to both the trigger time and the end time of each target service request.
[0055] In this embodiment, when the service system accesses the data system, the gateway layer interface receives a plurality of the first service requests from the service system and forwards the first service request to the application server. The application server delivers the second service request to the data support system based on the first service request. The application server records the request category and a trigger time of the second service request. When the application server receives the response from Date Recue/Date Received 2023-02-21 the data support system, the application server records an end time of the second service request. The application server delivers all data information included in the plurality of the second data to an information acquisition storage area of the data monitoring platform, wherein the all data information includes the request category and the trigger time and the end time of the second service request.
[0056]
Specifically, when receiving the first service request, the application server records all information including the requesting user, the requesting body information, whether depending on the data support system, the name of the dependent data support system, the queue time for storing the request onto the data support system, the executing time of the data support system. According to the recorded information, the application server delivers the second service request to the data support system. When receiving the response from the data support system, the application server records the end time for the request and the status of the request. At the moment, all record information is pushed onto the information acquisition storage area of the data monitoring platform. Wherein the second data includes the requesting user, the body information, whether depending on the data support system, the name of the dependent data support system, the queue time for storing the request onto the data support system, the executing time of the data support system, the end time for the request and the status of the request. The request category of the second service request is determined by the requesting user or the requesting body, the trigger time of the second service request is determined by the executing time of the data support system, and the end time of the second service request is determined by the end time responded by the data support system.
[0057] The data monitoring platform acquires, from the information acquisition storage area, the plurality of the second data of each second service request on the application layer interface, wherein the plurality of second data includes the request category of each second target service request, the trigger time of each second target service request, and the end time of each second target service request. According to the request Date Regue/Date Received 2023-02-21 category of each second service request, the plurality of the second service requests corresponding to the preset category information is identified from the plurality of second service requests. Specifically, the plurality of the second service requests includes a plurality of the target service requests, the request category of each second service request matches the preset category information, and the plurality of the target service request of each the second service request is identified from the matching results.
Further, both a trigger time and an end time of each target service request are obtained, the difference between the trigger time and the end time is set as the request response time. Therefore, the request response time of each target service request on the application layer interface is obtained and the threshold value of the target service request quantity is further calculated. In this way, the flow control of the target interface can be achieved by controlling the connection number of the target service requests on the application layer.
[0058] In an embodiment, prior to the step of setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the method further comprises: obtaining status information of a data support system corresponding to the application server, wherein the data support system is configured to respond to the plurality of second service requests sent by the application server; determining a second threshold value according to the status information; and setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, further includes: determining a third threshold value according to both the flow control rule and average request response time; and determining a minimum value between the second threshold value and the third threshold value, and setting the minimum value as the threshold value of the target service request quantity.
[0059] In this embodiment, the data support system is configured to respond to the plurality of second service requests sent by the application server. The data support system pushed current status information to the information acquisition storage area of Date Recue/Date Received 2023-02-21 the data monitoring platform. The current status information includes sub-healthy, healthy and unavailable. Various status corresponds to different threshold values. For example, the threshold value corresponding to the sub-healthy status is 200, the threshold value corresponding to the healthy status is 500, and the threshold value corresponding to the unavailable status is 0. The data monitoring platform acquires, from the information acquisition storage area, the status information of the data support system corresponding to the application server and determines the second threshold value. For example, the status information is sub-healthy, the threshold value corresponding to the sub-healthy status is 200. Besides, the third threshold value is determined according to the flow control rule and the average response time.
The determination method is the same as the determination method for the first threshold in the embodiment above, no more detailed description again. Further, a minimum value between the second threshold value and the third threshold value is determined, and the minimum value is set as the threshold value of the target service request quantity.
Therefore, the threshold value of the target service request quantity at the application layer is determined by the target service request at the application layer and the status information of the data support system corresponding to the application server, the flow control of the application layer interface can be achieved by controlling connection number of the target service requests at the application server.
[00601 In an embodiment, prior to the step of obtaining request response time of each target service request of the target interface corresponding to the preset category information, the method further comprise: obtaining data acquisition frequency and data acquisition parameters corresponding to the preset category information of the target interface; acquiring a plurality of the third data of the plurality of target service requests from the target interface according to the data acquisition frequency and data acquisition parameters; and calculating the request response time of each target service request according to the plurality of the third data.
[0061] In this embodiment, data acquisition frequency and data acquisition parameters Date Regue/Date Received 2023-02-21 are set. The data monitoring platform acquires the plurality of the third data of the plurality of target service requests from the target interface on a basis of the data acquisition frequency. The data monitoring platform determines data acquisition objects of the target service requests on a basis of the data acquisition parameters, which is determined that the plurality of the third data of the target service requests. Further, the request response time of each target service request is calculated according to the plurality of the third data.
[0062] For example, the data acquisition parameters include the link URL, the access system, the category of the service request, the requesting object and so on.
The gateway layer interface and/or the application layer can be identified by the data acquisition parameters, further, the data acquisition objects of the service request at the gateway layer interface and/or the application layer can be identified.
[0063] The target interface includes the gateway layer interface, the acquisition method for acquiring a plurality of the third data of the plurality of target service requests at the gateway layer interface includes: when the service system accesses the data system, the gateway layer delivers the name of the current service system, the requested interface address, the trigger time of the request and the request content to the gateway server; when receiving the final data returned by the application server, the gateway layer again records the end time of the request, the name of the dependent system, the status of the request result. The gateway layer pushes all recorded information as the plurality of the third data to the information acquisition storage area of the data monitoring platform.
[0064] For example, the target interface includes the application layer interface, the acquisition method for acquiring a plurality of the third data of the plurality of target service requests at the application layer interface includes: when receiving the forwarded request from the gateway layer, the application server records the requesting user, the requesting body information, whether depending on the data support system, Date Recue/Date Received 2023-02-21 the name of the dependent data support system, the queue time for storing the request onto the data support system, the executing time of the data support system.
When receiving the response from the data support system, the application server records the end time for the request and the status of the request. At the moment, all recorded information of the application layer is set as the plurality of the third data of the plurality of the target service requests and pushed onto the information acquisition storage area of the data monitoring platform. Besides, the data support system pushes the current status information to the information acquisition storage area of the data monitoring platform.
[0065] In an embodiment, after the step of setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the connection quantity requested by the target service of the target interface can be controlled through the threshold, the method further comprises: when the target service request quantity of the target interface is beyond the threshold value, controlling the target interface that accesses a first quantity of the target service requests, and performing a circuit-breaking process for a second quantity of the target service requests, wherein the first quantity of the target service requests is the threshold value, wherein the second quantity of the target service requests is a difference between the target service request quantity and the threshold value.
[0066] In this embodiment, the manner of controlling the target service request quantity of the target interface for connection through the threshold value includes, when the target service request quantity of the target interface is beyond the set threshold value, controlling the target interface that accesses a first quantity of the target service requests, and performing a circuit-breaking process for a second quantity of the target service requests, wherein the first quantity of the target service requests is the threshold value, wherein the second quantity of the target service requests is the part of the quantity beyond the set threshold value. Therefore, the method can achieve dynamic flow control for the target interface to maintain the stability of the data system.

Date Recue/Date Received 2023-02-21 [0067] For example, the circuit-breaking rule is set. The circuit-breaking rule includes but is not limited to: the layered circuit-breaking of the reporting system based on the connection number of the various service requests or the various average response times.
When the system pressure upstream and downstream reaches a certain level, which means the connection number of the target service requests is beyond the set threshold value, then the system or the function performs the layered circuit-breaking.
[0068] For the interface dynamic flow control method above, the following example provides a specific implementation scenario to illustrate the peak-clipping process for the gateway layer interface and the application layer interface.
[0069] As shown in Figure 4, as a scenario example of a data request:
[0070] 1. Service system A, and service system B access to data system interface.
[0071] 2. Priority access to the gateway server, the connection number of the gateway +1, then the data request is forwarded from the gateway server to the application server.
[0072] 3. When the application server proceeds data, the calling data support system E, and the data support system F obtain the support information.
[00731 4. The data support system E, and the data support system F
return the data to the application server.
[0074] 5. The application server proceeds the support data after receiving the support data, then return the final data to service system A and service system B
through the gateway, the connection number of the gateway -1.
[00751 The above scenario includes information acquisition and real-time data Date Regue/Date Received 2023-02-21 computation.
[0076] The information acquisition includes as below:
[0077] Acquisition 1: when the service system accesses the data system, the gateway layer interface records the name of the current service system, the interface address of the request, the trigger time of the request, the request content and so on (note: the recorded information stored on the gateway server at the moment); when the application server returns the final data to the gateway, the gateway records the end time of the request, the name of the depended system, the status of the request result and so on, then all the recorded infoimation is pushed on the information acquisition storage area.
[0078] Acquisition 2 : when receiving the request, the application server records the requesting user, the body information (the report information by requesting through the report, the indicator information by requesting through the indicators...), whether depending on the data support system, the name of the dependent data support system, the queue time for storing the request onto the data support system, the executing time of the data support system; when the data support system returns the data to the application server, the application server records the end time for the request and the status of the request, then all the recorded infoimation is pushed on the information acquisition storage area.
[0079] Acquisition 3 The data support system pushed current status information to the information acquisition storage area of the data monitoring platform.
[0080] The real-time data computation includes as below:
[0081] The data source is obtained from the information acquisition.
Date Regue/Date Received 2023-02-21 [0082] 1. Calculating the response time of each acquisition in real time, for example, the overall response time of each interface in the Acquisition L (the end time ¨ the trigger time), the queue time in the data support system in the Acquisition 2 (the executed time ¨ the queue time for storing in the data support system), the response time executed by the data support system (the end time ¨ the executed time).
[0083] 2. Calculating the overall service request quantity at the current window in the data system by the time window (30s or 60s), the average response time of each URL, the average response time of each data support system, the status of the data support system (if the current window fails to receive the feedback from the data support system, the status maintains the previous one, if the current window fails to receive the feedback for a while, the status is set to be unavailable.
[0084] 3. According to the calculation results above and the configuration information by the operation and maintenance personnel, adjusting the interface concurrency quantity for the entire interface and/or each interface.
[0085] Wherein the configuration infoimation rule includes as below:
[0086] 1. The interface concurrency quantity for the gateway layer interface is 500, in parallel, the interface concurrency quantity for the application layer interface on the data support system is 400.
[0087] 2. When the average response time of the interface on the data system >5s, the interface concurrency quantity for the gateway layer is 50; the average response time >ls, the interface concurrency quantity for the gateway layer is 200; the average response time <1s, the interface concurrency quantity for the gateway layer is 500.
[0088] 3. When the executed response time of the interface or the waiting time on the Date Regue/Date Received 2023-02-21 data support system >5s, the interface concurrency quantity for the application layer is 50; the executed response time of the interface or the waiting time on the data support system >ls, the interface concurrency quantity for the application layer is 200; the executed response time of the interface or the waiting time on the data support system <1s, the interface concurrency quantity for the application layer is 500.
[0089] 4. When the status of the data support system is unavailable, the interface concurrency quantity for the application layer is 0. When the status of the data support system is sub-healthy, the interface concurrency quantity for the application layer is 200. When the status of the data support system is healthy, the interface concurrency quantity for the application layer is 500.
[0090] In the above scenario, according to the calculation results, the interface concurrency quantity is adjusted in real time. For example, the status of the data support system E, F are healthy, the average response time <1s. The service system concurrency quantity is greater than 500, the gateway layer proceeds the first 500 pieces of the requests, performs the circuit-breaking process for other requests, and prompts "the system is busy, try again later" for other requests; the subsequent requests depend on the connection number of the gateway.
[0091] When the status of the data support system E is sub-healthy, or the executed response time or waiting time >1 s, the interface concurrency quantity for the application layer on the data support system E decreased from 500 to 200; when the service system 500 send concurrently requests, if these requests are not involved in any data support system, then the requests are processed. If these requests are not involved in the data support system E, then the requests are processed. If these requests are involved in the data support system E and the quantity is less than 200, then the requests are processed.
If these requests involve in the data support system E and the quantity is greater than 500, the gateway layer does not intercept, but the application layer intercepts, which means that the application layer processes 200 of 500 requests only and performs Date Regue/Date Received 2023-02-21 circuit-breaking process for the rest of 500 requests.
[0092] If the data support system F has not pushed the status for a continuous period of time, the interface concurrency quantity for the application layer on the data support system F decreased from 500 to 0. The application layer refuses any requests relating to the data support system F.
[0093] For the implementation scenario, as an example of the report system for illustration. Wherein the upstream of the report system is the indicator service system, the system architecture is shown in Figure 5, the detailed process operation diagram is shown in Figure 6.
[0094] Step 1: the reporting system operates initial rules, within 1 minute, shown as below:
[0095] 1. If the average response time of the reports <100ms, the maximum connection number for controlling the service requests is 600;
[0096] 2. If the average response time of the reports <500ms, the maximum connection number for controlling the service requests is 400;
[0097] 3. If the average response time of the reports <1s, the maximum connection number for controlling the service requests is 200;
[0098] 4. If the average response time of the reports >=1s, the maximum connection number for controlling the service requests is 100, at the same time, circuit-breaking mode starts for part of the reports;
[0099] Step 2: data acquisitions for the service requests, calculating the acquired data at the frequency of one minute, calculating the average response time at the current one Date Regue/Date Received 2023-02-21 minute, and reporting TOPN sorted by a descending order within the average response time.
[0100] Result 1: the average response time of the service request at the current period is 50ms, the maximum connection number remains constant.
[0101] Result 2: the average response time of the service request at the current period is 200ms/800ms, the dynamic maximum connection number is adjusted from 600ms to 400ms/200ms.
[0102] Result 3: the average response time of the service request at the current period is 1100ms, the dynamic maximum connection number is adjusted from 600ms to 100ms, at the same time, the report TOPN is executed the circuit-breaking process.
[0103] The above-mentioned interface dynamic flow control method resolves the existing technical problems below:
[0104] 1. Current peak-clipping solutions regarding network flow control cannot perform autonomous optimal adjustment according to the system service pressure. The present application includes two types of autonomous optimal adjustments.
[0105] One is to analyze the historical data, and to acquire the optimal ratio of the system pressure and the threshold value of the peak-clipping for dynamically adjusting the initial rules.
[0106] Another one is to analyze and calculate the system pressure at the current period of time according to the acquired data, for example, the connection number, the average response time, then adjusting dynamically the threshold value of the peak-clipping according to the layered rules.

Date Regue/Date Received 2023-02-21 [0107] 2. Current peak-clipping solutions regarding network flow control cannot perform autonomous optimal adjustment according to the depended system pressure upstream and downstream: the system pressure data is from two scenarios, the one is the interactive interface of the depended system, another one is the interaction of the depended system, which is pushed by the depended system. In the present application, the threshold value of the peak-clipping for adjusting dynamically by calculating the response infonnation of interactive interface and the pushed data (depended system degrading, etc.) [0108] What should be understood is although the steps of the process diagram of figures are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly provided instruction in this article, there is no strict order in which these steps can be perfonned, and they can be perfonned in any other orders. In addition, at least partial steps of figures can include more sub steps or multiple stages, these sub steps or stages are not necessarily completed at the same time but can be executed in different time, the execution order of these sub steps or stages is also not necessarily in sequence order but can be performed alternately with the other steps or sub steps of other steps or at least one part of the other stages.
[0109] In an embodiment, the present application provides an interface dynamic flow control apparatus, as shown in Figure 7, the interface dynamic flow control apparatus comprises: a first obtaining module 702, a second obtaining module 704, a calculation module 706, and a setting module 708. The first obtaining module 702 is configured to obtain a flow control rule corresponding to preset category information of a target interface from a data system; the second obtaining module 704 is configured to obtain request response time of each target service request of the target interface corresponding to the preset category information; the calculation module 706 is configured to calculate an average request response time of a plurality of target service requests according to the request response time of each target service request of the Date Recue/Date Received 2023-02-21 target interface; and a setting module 708 is configured to set a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the connection quantity requested by the target service of the target interface can be controlled through the threshold.
[0110] In an embodiment, the target interface includes a gateway layer interface of the data system, the above method of obtaining a flow control rule corresponding to preset category information of a target interface from a data system, further comprises: obtaining a plurality of first data of the plurality of first service requests from the gateway layer interface, wherein the plurality of first data includes a request category of each first target service request, a trigger time of each first target service request, and an end time of each first target service request;
according to the request category of each first target service request, identifying the plurality of target service requests corresponding to the preset category information from the plurality of first service requests; obtaining both a trigger time and an end time of each target service request from the plurality of first data of the plurality of first service requests; and calculating the request response time of each target service request according to both the trigger time and the end time of each target service request.
[0111] In an embodiment, the above method of setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, further comprises: obtaining a first threshold value that matches the average request response time from the flow control rule, and setting the first threshold value as the threshold value of the target service request quantity.
[0112] In an embodiment, the target interface includes an application layer interface of an application server in the data system, the above method of obtaining request response time of each target service request of the target interface corresponding to the preset category information, further comprises: obtaining a plurality of second data of the Date Recue/Date Received 2023-02-21 plurality of second service requests from the application layer interface, wherein the plurality of second data includes a request category of each second target service request, a trigger time of each second target service request, and an end time of each second target service request; according to the request category of each second target service request, identifying the plurality of target service requests corresponding to the preset category information from the plurality of second service requests;
obtaining both a trigger time and an end time of each target service request from the plurality of second data of the plurality of second service requests; and calculating the request response time of each target service request according to both the trigger time and the end time of each target service request.
[0113] In this embodiment, the interface dynamic flow control apparatus further comprises a determining module, wherein the determining module is configured to obtain status information of a data support system corresponding to the application server, wherein the data support system is configured to respond to the plurality of second service requests sent by the application server; wherein the determining module is further configured to determine a second threshold value according to the status information; and set a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, which further includes: determining a third threshold value according to both the flow control rule and average request response time; and determining a minimum value between the second threshold value and the third threshold value, and setting the minimum value as the threshold value of the target service request quantity.
[0114] In an embodiment, the interface dynamic flow control apparatus further comprises an acquisition module, wherein the acquisition module is configured to obtain data acquisition frequency and data acquisition parameters corresponding to the preset category information of the target interface; acquire a plurality of the third data of the plurality of target service requests from the target interface according to the data acquisition frequency and data acquisition parameters; and calculate the request Date Recue/Date Received 2023-02-21 response time of each target service request according to the plurality of the third data.
[0115] In this embodiment, the interface dynamic flow control apparatus further comprises a circuit-breaking module, wherein the circuit-breaking module is configured to, when the target service request quantity of the target interface is beyond the threshold value, control the target interface that accesses a first quantity of the target service requests, and perform a circuit-breaking process for a second quantity of the target service requests, wherein the first quantity of the target service requests is the threshold value, wherein the second quantity of the target service requests is a difference between the target service request quantity and the threshold value.
[0116] For the specific limitation of the interface dynamic flow control apparatus can refer to the above-mentioned interface dynamic flow control method, which will not be repeated here. Each module of the above interface dynamic flow control apparatus can be achieved or partly by software, hardware, and their combinations.
The above modules can be embedded in the processor or independent of the processor in computer device and can store in the memory of computer device in form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0117] In an embodiment, a computer device is provided, the computer device can be a server whose internal structure diagram is shown in Figure 8. The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. The processor of the computer device is configured to provide calculation and control capabilities. The memory of the computer device includes non-volatile storage medium and internal memory. The memory of non-volatile storage medium has an operation system, computer programs and database. The internal memory provides an environment for the operation system and computer program running in a non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer Date Regue/Date Received 2023-02-21 program is executed by the processor to implement an interface dynamic flow control method.
[0118] The skilled in the art can understand that the structure shown in Figure 8 is only partial structural diagram related this application solution and not constitute limitation to the computer device applied on the current application solution, the specific computer device can include more or less components than what is shown in the figure, or combinations of some components or different components to what is shown in the figure.
[0119] In an embodiment, a computer device is provided, including a memory, a processor and a computer program stored in the memory and ran on the processor configured to achieve the following steps when the processor executes the computer program: obtaining a flow control rule corresponding to preset category information of a target interface from a data system; obtaining request response time of each target service request of the target interface corresponding to the preset category information;
calculating an average request response time of a plurality of target service requests according to the request response time of each target service request of the target interface; and setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the connection quantity requested by the target service of the target interface can be controlled through the threshold.
[0120] In an embodiment, wherein the target interface includes a gateway layer interface of the data system, the processor executes the computer program of obtaining a flow control rule corresponding to preset category information of a target interface from a data system, and further achieves the following steps: obtaining a plurality of first data of the plurality of first service requests from the gateway layer interface, wherein the plurality of first data includes a request category of each first target service Date Recue/Date Received 2023-02-21 request, a trigger time of each first target service request, and an end time of each first target service request; according to the request category of each first target service request, identifying the plurality of target service requests corresponding to the preset category information from the plurality of first service requests; obtaining both a trigger time and an end time of each target service request from the plurality of first data of the plurality of first service requests; and calculating the request response time of each target service request according to both the trigger time and the end time of each target service request.
[0121] In an embodiment, the processor executes the computer program of setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, and further achieves the following steps: obtaining a first threshold value that matches the average request response time from the flow control rule and setting the first threshold value as the threshold value of the target service request quantity.
[0122] In an embodiment, wherein the target interface includes an application layer interface of an application server in the data system, the processor executes the computer program of obtaining request response time of each target service request of the target interface corresponding to the preset category information, and further achieves the following steps: obtaining a plurality of second data of the plurality of second service requests from the application layer interface, wherein the plurality of second data includes a request category of each second target service request, a trigger time of each second target service request, and an end time of each second target service request; according to the request category of each second target service request, identifying the plurality of target service requests corresponding to the preset category information from the plurality of second service requests; obtaining both a trigger time and an end time of each target service request from the plurality of second data of the plurality of second service requests; and calculating the request response time of each target service request according to both the trigger time and the end time of each target Date Regue/Date Received 2023-02-21 service request.
[0123] In an embodiment, the processor executes the computer program and further achieves the following steps: obtaining status information of a data support system corresponding to the application server, wherein the data support system is configured to respond to the plurality of second service requests sent by the application server;
determining a second threshold value according to the status information; and setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, further includes:
determining a third threshold value according to both the flow control rule and average request response time; and determining a minimum value between the second threshold value and the third threshold value, and setting the minimum value as the threshold value of the target service request quantity.
[0124] In an embodiment, the processor executes the computer program and further achieves the following steps: obtaining data acquisition frequency and data acquisition parameters corresponding to the preset category information of the target interface;
acquiring a plurality of the third data of the plurality of target service requests from the target interface according to the data acquisition frequency and data acquisition parameters; and calculating the request response time of each target service request according to the plurality of the third data.
[0125] In an embodiment, the processor executes the computer program and further achieves the following steps: when the target service request quantity of the target interface is beyond the threshold value, controlling the target interface that accesses a first quantity of the target service requests, and performing a circuit-breaking process for a second quantity of the target service requests, wherein the first quantity of the target service requests is the threshold value, wherein the second quantity of the target service requests is a difference between the target service request quantity and the threshold value.

Date Regue/Date Received 2023-02-21 [0126] In an embodiment, a computer readable storage medium stored with a computer program configured to achieve following steps when the processor executes the computer program: obtaining a flow control rule corresponding to preset category information of a target interface from a data system; obtaining request response time of each target service request of the target interface corresponding to the preset category information; calculating an average request response time of a plurality of target service requests according to the request response time of each target service request of the target interface; and setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the connection quantity requested by the target service of the target interface can be controlled through the threshold.
[0127] In an embodiment, wherein the target interface includes a gateway layer interface of the data system, the computer program of obtaining a flow control rule corresponding to preset category information of a target interface from a data system, is executed by the processor to achieve the following steps: obtaining a plurality of first data of the plurality of first service requests from the gateway layer interface, wherein the plurality of first data includes a request category of each first target service request, a trigger time of each first target service request, and an end time of each first target service request; according to the request category of each first target service request, identifying the plurality of target service requests corresponding to the preset category information from the plurality of first service requests; obtaining both a trigger time and an end time of each target service request from the plurality of first data of the plurality of first service requests; and calculating the request response time of each target service request according to both the trigger time and the end time of each target service request.
[0128] In an embodiment, the computer program of setting a threshold value of target service request quantity of the target interface according to both the flow control rule Date Regue/Date Received 2023-02-21 and average request response time is executed by the processor to achieve the following steps: obtaining a first threshold value that matches the average request response time from the flow control rule and setting the first threshold value as the threshold value of the target service request quantity.
[01291 In an embodiment, wherein the target interface includes an application layer interface of an application server in the data system, the computer program of obtaining request response time of each target service request of the target interface corresponding to the preset category information, is executed by the processor to achieve the following steps: obtaining a plurality of second data of the plurality of second service requests from the application layer interface, wherein the plurality of second data includes a request category of each second target service request, a trigger time of each second target service request, and an end time of each second target service request; according to the request category of each second target service request, identifying the plurality of target service requests corresponding to the preset category information from the plurality of second service requests;
obtaining both a trigger time and an end time of each target service request from the plurality of second data of the plurality of second service requests; and calculating the request response time of each target service request according to both the trigger time and the end time of each target service request.
[0130] In an embodiment, the computer program is executed by the processor to achieve the following steps: obtaining status information of a data support system corresponding to the application server, wherein the data support system is configured to respond to the plurality of second service requests sent by the application server; determining a second threshold value according to the status information; and the computer program of setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, is executed by the processor to achieve the following steps: determining a third threshold value according to both the flow Date Regue/Date Received 2023-02-21 control rule and average request response time; and determining a minimum value between the second threshold value and the third threshold value, and setting the minimum value as the threshold value of the target service request quantity.
[0131] In an embodiment, the computer program is executed by the processor to achieve the following steps: obtaining data acquisition frequency and data acquisition parameters corresponding to the preset category information of the target interface; acquiring a plurality of third data of the plurality of target service requests from the target interface according to the data acquisition frequency and data acquisition parameters; and calculating the request response time of each target service request according to the plurality of third data.
[0132] In an embodiment, the computer program is executed by the processor to achieve the following steps: when the target service request quantity of the target interface is beyond the threshold value, controlling the target interface that accesses a first quantity of the target service requests, and performing a circuit-breaking process for a second quantity of the target service requests, wherein the first quantity of the target service requests is the threshold value, wherein the second quantity of the target service requests is a difference between the target service request quantity and the threshold value.
[0133] The skilled in the art can understand that all or partial of procedures from the above-mentioned methods can be performed by computer program instructions through related hardware, the mentioned computer program can be stored in a non-volatile material computer readable storage medium, this computer can include various embodiment procedures from the abovementioned methods when execution. Any reference to the memory, the storage, the database, or the other media used in each embodiment provided in current application can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programable ROM (PROM), electrically programmable ROM (EPRPMD), electrically erasable Date Regue/Date Received 2023-02-21 programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an instruction but not limited to, RAM is available in many forms such as static RAM (SRAM), dynamic RAM (DRAMD), synchronous DRAM (SDRAM), dual data rate SDRAM
(DDRSDRAM), enhanced SRAM (ESDRAM), synchronal link (Synchlink) DRAM
(SLDRAM), memory bus (Rambus), direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0134] The technical features of the above-mentioned embodiments can be randomly combined, for concisely statement, not all possible combinations of technical features in the abovementioned embodiments are described. However, if there are no conflicts in the combinations of these technical features, it shall be within the scope of the present description.
[0135] The above-mentioned embodiments are only several embodiments in this disclosure and the description is more specific and detailed but cannot be understood as the limitation of the scope of the invention patent. Evidently those ordinary skilled in the art can make various modifications and variations to the disclosure without departing from the spirit and scope of the disclosure. Therefore, the appended claims are intended to be construed as encompassing the described embodiment and all the modifications and variations coming into the scope of the disclosure.
Date Regue/Date Received 2023-02-21

Claims (10)

Claims:
1. An interface dynamic flow control method, comprises:
obtaining a flow control rule corresponding to preset category information of a target interface from a data system;
obtaining request response time of each target service request of the target interface corresponding to the preset category information;
calculating an average request response time of a plurality of target service requests according to the request response time of each target service request of the target interface; and setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the connection quantity requested by the target service of the target interface can be controlled through the threshold.
2. The method according to claim 1, wherein the target interface includes a gateway layer interface of the data system, wherein the method of obtaining a flow control rule corresponding to preset category information of a target interface from a data system, further comprising:
obtaining a plurality of first data of the plurality of first service requests from the gateway layer interface, wherein the plurality of first data includes a request category of each first target service request, a trigger time of each first target service request, and an end time of each first target service request;
according to the request category of each first target service request, identifying the plurality of target service requests corresponding to the preset category information from the plurality of first service requests;

Date Regue/Date Received 2023-02-21 obtaining both a trigger time and an end time of each target service request from the plurality of first data of the plurality of first service requests; and calculating the request response time of each target service request according to both the trigger time and the end time of each target service request.
3. The method according to claim 2, wherein the method of setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, further comprises:
obtaining a first threshold value that matches the average request response time from the flow control rule, and setting the first threshold value as the threshold value of the target service request quantity.
4. The method according to claim 1, wherein the target interface includes an application layer interface of an application server in the data system, wherein the method of obtaining request response time of each target service request of the target interface corresponding to the preset category information, further comprising:
obtaining a plurality of second data of the plurality of second service requests from the application layer interface, wherein the plurality of second data includes a request category of each second target service request, a trigger time of each second target service request, and an end time of each second target service request;
according to the request category of each second target service request, identifying the plurality of target service requests corresponding to the preset category information from the plurality of second service requests;
obtaining both a trigger time and an end time of each target service request from the Date Recue/Date Received 2023-02-21 plurality of second data of the plurality of second service requests; and calculating the request response time of each target service request according to both the trigger time and the end time of each target service request.
5. The method according to claim 4, wherein the method further comprising:
obtaining status information of a data support system corresponding to the application server, wherein the data support system is configured to respond to the plurality of second service requests sent by the application server;
determining a second threshold value according to the status information; and setting a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, further includes:
determining a third threshold value according to both the flow control rule and average request response time; and determining a minimum value between the second threshold value and the third threshold value and setting the minimum value as the threshold value of the target service request quantity.
6. The method according to claim 1, wherein the method further comprising:
obtaining data acquisition frequency and data acquisition parameters corresponding to the preset category information of the target interface;
acquiring a plurality of the third data of the plurality of target service requests from the Date Recue/Date Received 2023-02-21 target interface according to the data acquisition frequency and data acquisition parameters; and calculating the request response time of each target service request according to the plurality of the third data.
7. The method according to claim 1, wherein method further comprising:
when the target service request quantity of the target interface is beyond the threshold value, controlling the target interface that accesses a first quantity of the target service requests, and performing a circuit-breaking process for a second quantity of the target service requests, wherein the first quantity of the target service requests is the threshold value, wherein the second quantity of the target service requests is a difference between the target service request quantity and the threshold value.
8. An interface dynamic flow control apparatus, comprises:
a first obtaining module configured to obtain a flow control rule corresponding to preset category information of a target interface from a data system;
a second obtaining module configured to obtain request response time of each target service request of the target interface corresponding to the preset category information;
a calculation module configured to calculate an average request response time of a plurality of target service requests according to the request response time of each target service request of the target interface; and a setting module configured to set a threshold value of target service request quantity of the target interface according to both the flow control rule and average request response time, the connection quantity requested by the target service of the target Date Recue/Date Received 2023-02-21 interface can be controlled through the threshold.
9. A computer device, including a memory, a processor and a computer program stored in the memory and run on the processor configured to achieve the steps of any methods in claims 1 to 7 when the processor executes the computer program.
10. A computer readable storage medium stored with a computer program configured to achieve the steps of any methods in claim 1 to 7 when the processor executes the computer program.
Date Regue/Date Received 2023-02-21
CA3184580A 2021-12-24 2022-12-21 Interface dynamic flow control method and device, computer equipment and storage medium Pending CA3184580A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111601181.XA CN114465959A (en) 2021-12-24 2021-12-24 Interface dynamic flow control method and device, computer equipment and storage medium
CN202111601181.X 2021-12-24

Publications (1)

Publication Number Publication Date
CA3184580A1 true CA3184580A1 (en) 2023-06-24

Family

ID=81406853

Family Applications (1)

Application Number Title Priority Date Filing Date
CA3184580A Pending CA3184580A1 (en) 2021-12-24 2022-12-21 Interface dynamic flow control method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114465959A (en)
CA (1) CA3184580A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023240506A1 (en) * 2022-06-15 2023-12-21 北京小米移动软件有限公司 Request processing method and apparatus, server, and storage medium
CN116418749B (en) * 2023-02-17 2023-11-17 通明智云(北京)科技有限公司 Load balancing method and device for dynamically adjusting weights

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474850A (en) * 2019-08-23 2019-11-19 苏宁云计算有限公司 Flow control methods, device, computer equipment and the storage medium of business interface
CN112953840A (en) * 2021-01-27 2021-06-11 上海金仕达成括信息科技有限公司 Current limiting control method, gateway equipment and current limiting control system
CN113179222A (en) * 2021-04-30 2021-07-27 康键信息技术(深圳)有限公司 Current-limiting control method, device and equipment for hotspot data and storage medium
CN113595922B (en) * 2021-07-29 2024-05-03 上海浦东发展银行股份有限公司 Flow limiting method, device, server and storage medium
CN113472679B (en) * 2021-09-02 2021-12-21 杭州星犀科技有限公司 Interface current limiting method and system

Also Published As

Publication number Publication date
CN114465959A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CA3184580A1 (en) Interface dynamic flow control method and device, computer equipment and storage medium
CN108965381B (en) Nginx-based load balancing implementation method and device, computer equipment and medium
US9911148B2 (en) Querying for business service processing status information
CN110321273B (en) Service statistics method and device
CN111539633A (en) Service data quality auditing method, system, device and storage medium
CN106936622A (en) A kind of distributed memory system upgrade method and device
CN107018091A (en) The dispatching method and device of resource request
CN112714029A (en) Method, device and equipment for scheduling content distribution network bandwidth
CN111597213B (en) Caching method, software server and storage medium
WO2022001628A1 (en) Commodity stock information updating method and apparatus, computer device and storage medium
CN107391337A (en) A kind of data monitoring method and device
US20220006716A1 (en) Method and managing apparatus for processing server anomalies
CN107346308B (en) Method and device for calling data in cluster system
CN106612263A (en) Method and device used for processing application access request
CN114465915B (en) CDN bandwidth prediction method, device and system and electronic equipment
CN111258724B (en) Data processing method, device, equipment and storage medium of distributed system
US20090083747A1 (en) Method for managing application programs by utilizing redundancy and load balance
CN115695472A (en) Server fault response processing method and device, computer equipment and storage medium
CN104407960B (en) Data monitoring method and device
CN110471969B (en) Aviation product management system using rule engine and application method thereof
CN114356735A (en) Data early warning method, device, medium and equipment
CN109672563B (en) Gateway configuration method and device and API gateway
CN107786614B (en) TMS application downloading self-adaptive strategy method
CN111861047A (en) Data processing control method and computing device
CN111381959A (en) Capacity expansion method and device

Legal Events

Date Code Title Description
EEER Examination request

Effective date: 20230919

EEER Examination request

Effective date: 20230919

EEER Examination request

Effective date: 20230919

EEER Examination request

Effective date: 20230919

EEER Examination request

Effective date: 20230919

EEER Examination request

Effective date: 20230919