CN114422439A - Interface current limiting method and device, computer equipment and storage medium - Google Patents

Interface current limiting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114422439A
CN114422439A CN202210073181.5A CN202210073181A CN114422439A CN 114422439 A CN114422439 A CN 114422439A CN 202210073181 A CN202210073181 A CN 202210073181A CN 114422439 A CN114422439 A CN 114422439A
Authority
CN
China
Prior art keywords
interface
current limiting
parameter
current
value
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
CN202210073181.5A
Other languages
Chinese (zh)
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.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City 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 Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202210073181.5A priority Critical patent/CN114422439A/en
Publication of CN114422439A publication Critical patent/CN114422439A/en
Pending legal-status Critical Current

Links

Images

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/29Flow control; Congestion control using a combination of thresholds
    • 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/215Flow control; Congestion control using token-bucket

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to the field of artificial intelligence, and can intelligently perform dynamic current limiting on a current interface, so that the timeliness and the accuracy of interface current limiting are improved. Relates to an interface current limiting method, an interface current limiting device, interface current limiting equipment and a storage medium, wherein the method comprises the following steps: when an access request is received, determining an interface parameter value of a current interface; acquiring a layered current limiting parameter of a current interface; comparing the interface parameter value with a parameter range value, wherein the parameter range value comprises a parameter upper limit value and a parameter lower limit value; if the interface parameter value is larger than the parameter upper limit value, the initial current limiting threshold value is subjected to descending adjustment according to the descending proportion until the current limiting threshold value is smaller than the first current limiting threshold value; if the interface parameter value is smaller than the parameter lower limit value, the initial current limiting threshold value is adjusted in an increasing mode according to the increasing proportion until the current limiting threshold value is larger than a second current limiting threshold value; and carrying out current limiting control on the current interface according to the adjusted current limiting threshold value. In addition, the present application relates to blockchain techniques, and the hierarchical current limit parameters may be stored in blockchains.

Description

Interface current limiting method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of artificial intelligence, and in particular, to a method and an apparatus for limiting a current at an interface, a computer device, and a storage medium.
Background
In some high-flow high-concurrency scenes, such as second killing, the situation that the request amount is increased sharply often occurs; in order to avoid the impact of the rapidly increased request quantity on the server in a short time, the request quantity needs to be limited.
In the existing current limiting mode, interface pressure measurement is generally carried out before the start of an activity, developers evaluate according to a pressure measurement result to obtain a reasonable current limiting threshold value, and a current limiting script is generated according to the current limiting threshold value. After the activity begins, the requested amount of the interface is controlled by running a current limit script. When the request amount is too large or too small, the originally configured current limiting threshold value in the current limiting script is no longer applicable, and developers can only modify the current limiting script manually, so that the current can not be limited to the interface timely and accurately.
Therefore, how to improve the timeliness and accuracy of interface current limiting becomes an urgent problem to be solved.
Disclosure of Invention
The application provides an interface current limiting method, an interface current limiting device, computer equipment and a storage medium, wherein the dynamic current limiting of the current interface is realized intelligently by carrying out descending adjustment or ascending adjustment on the layered current limiting parameter of the current interface according to the interface parameter value of the current interface, a current limiting script does not need to be modified manually, and the timeliness and the accuracy of interface current limiting are improved.
In a first aspect, the present application provides an interface current limiting method, including:
when a current interface receives an access request, determining an interface parameter value of the current interface;
acquiring a layered current limiting parameter corresponding to the current interface, wherein the layered current limiting parameter comprises an initial current limiting threshold, an increasing proportion and a decreasing proportion;
comparing the interface parameter value with a preset parameter range value, wherein the parameter range value comprises a parameter upper limit value and a parameter lower limit value;
if the interface parameter value is larger than the upper parameter limit value, carrying out descending adjustment on the initial current limiting threshold value according to the descending proportion until the current limiting threshold value after descending adjustment is smaller than a preset first current limiting threshold value;
if the interface parameter value is smaller than the parameter lower limit value, carrying out incremental adjustment on the initial current limiting threshold value according to the incremental proportion until the adjusted current limiting threshold value is larger than a preset second current limiting threshold value;
and carrying out current limiting control on the current interface according to the adjusted current limiting threshold value.
In a second aspect, the present application further provides an interface current limiting device, including:
the state parameter determining module is used for determining the interface parameter value of the current interface when the current interface receives the access request;
a current limiting parameter obtaining module, configured to obtain a hierarchical current limiting parameter corresponding to the current interface, where the hierarchical current limiting parameter includes an initial current limiting threshold, an increasing proportion, and a decreasing proportion;
the parameter value comparison module is used for comparing the interface parameter value with a preset parameter range value, wherein the parameter range value comprises a parameter upper limit value and a parameter lower limit value;
a decreasing adjustment module, configured to perform decreasing adjustment on the initial current limiting threshold according to the decreasing proportion if the interface parameter value is greater than the parameter upper limit value, until the current limiting threshold after the decreasing adjustment is smaller than a preset first current limiting threshold;
the incremental adjustment module is used for carrying out incremental adjustment on the initial current limiting threshold value according to the incremental proportion if the interface parameter value is smaller than the parameter lower limit value until the adjusted current limiting threshold value is larger than a preset second current limiting threshold value;
and the current limiting control module is used for carrying out current limiting control on the current interface according to the adjusted current limiting threshold value.
In a third aspect, the present application further provides a computer device comprising a memory and a processor;
the memory for storing a computer program;
the processor is used for executing the computer program and realizing the interface current limiting method when the computer program is executed.
In a fourth aspect, the present application also provides a computer-readable storage medium storing a computer program, which when executed by a processor causes the processor to implement the interface current limiting method as described above.
The application discloses an interface current limiting method, an interface current limiting device, computer equipment and a storage medium, wherein when an access request is received by a current interface, an interface parameter value of the current interface is determined, so that the request quantity of the access request received by the current interface and the average response time of the access request processed by the current interface can be obtained; by obtaining the hierarchical current limiting parameter corresponding to the current interface, the initial current limiting threshold, the increasing proportion and the decreasing proportion when the current interface is subjected to hierarchical current limiting can be obtained; by comparing the interface parameter value with a preset parameter range value, whether the initial current limiting threshold value of the current interface needs to be adjusted or not can be determined; when the interface parameter value is determined to be larger than the upper limit value of the parameter, the initial current limiting threshold value is subjected to descending adjustment according to the descending proportion, so that the current limiting threshold value can be gradually reduced when the request quantity is overlarge, and the current limiting strength is enhanced; when the interface parameter value is determined to be smaller than the parameter lower limit value, the initial current limiting threshold value is adjusted in an increasing mode according to the increasing proportion, and the current limiting threshold value can be gradually increased when the request quantity is too small so as to reduce the current limiting strength; the current limiting control is carried out on the current interface according to the adjusted current limiting threshold value, so that the current interface can be intelligently and dynamically limited, manual modification of a current limiting script is not needed, and the timeliness and the accuracy of interface current limiting are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an interface current limiting method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating sub-steps of setting a hierarchical throttling parameter of an interface according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating sub-steps of creating a data buffer of an interface according to an embodiment of the present application;
fig. 4 is a schematic diagram of data corresponding to a query access request according to an embodiment of the present application;
fig. 5 is a schematic block diagram of an interface current limiting device according to an embodiment of the present disclosure;
fig. 6 is a schematic block diagram of a structure of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of 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.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The embodiment of the application provides an interface current limiting method and device, computer equipment and a storage medium. The interface current limiting method can be applied to a server, and dynamic current limiting of the current interface is realized intelligently by carrying out descending adjustment or ascending adjustment on the layered current limiting parameters of the current interface according to the interface parameter values of the current interface, a current limiting script does not need to be modified manually, and timeliness and accuracy of interface current limiting are improved.
The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
As shown in fig. 1, the interface current limiting method includes steps S10 to S60.
Step S10, when the current interface receives the access request, determining an interface parameter value of the current interface.
It should be noted that the interface current limiting method provided by the embodiment of the present application may be applied to a large-flow high-concurrency scenario in which a client accesses a server through an interface, for example, in some shopping second killing activities; when shopping applications in multiple clients access the server simultaneously, the amount of requests for the interface of the server is increased, and therefore, the interface needs to be throttled. It will be appreciated that limiting limits the amount of requests within a certain time window, maintains the availability and stability of the system, and prevents slow or down operation of the system due to traffic surges. In the server, there are a plurality of interfaces; the client may access one or more of the interfaces. In the embodiment of the present application, one of the interfaces in the server is taken as a current interface, and the client accesses the current interface as an example, so as to describe in detail how to perform current interface throttling.
The client can be an electronic device such as a smart phone, a tablet computer, a notebook computer and a desktop computer.
Illustratively, when an access request of a client is received through a current interface, a server can determine an interface parameter value corresponding to the current interface, and performs descending adjustment or ascending adjustment on a layered current limiting parameter of the current interface according to the interface parameter value, so that dynamic current limiting of the current interface is intelligently performed, a current limiting degradation script does not need to be manually modified manually, and timeliness and accuracy of interface current limiting are improved.
For example, the interface parameter value refers to a parameter value of the current interface, and may include a request amount and an average response duration, which are used to measure the performance of the current interface for processing the access request. For example, when an access request of a client is received through a current interface, the request amount of the access request received by the current interface and the average response time of the access request processed by the current interface within a preset time may be counted.
By determining the interface parameter value of the current interface when the current interface receives the access request, the request quantity of the access request received by the current interface and the average response time of the access request processed by the current interface can be obtained.
And step S20, acquiring the layered current limiting parameters corresponding to the current interface, wherein the layered current limiting parameters comprise an initial current limiting threshold, an increasing proportion and a decreasing proportion.
For example, the hierarchical current limiting parameter corresponding to the current interface may be obtained from a local database or a local disk based on a correspondence between a preset interface and the hierarchical current limiting parameter; and the layered current limiting parameter is used for performing layered current limiting on the current interface.
It should be noted that, in the embodiment of the present application, the layered current limiting parameter corresponding to each interface is preset. For example, before the hierarchical current limiting parameter corresponding to the current interface is obtained, the hierarchical current limiting parameter of each interface is set on an interface configuration page of the server.
By obtaining the hierarchical current limiting parameter corresponding to the current interface, the initial current limiting threshold, the increasing proportion and the decreasing proportion when the current interface is hierarchically limited can be obtained.
Referring to fig. 2, fig. 2 is a schematic flowchart of a sub-step of setting a hierarchical current limiting parameter of an interface according to an embodiment of the present application, which may specifically include the following steps S201 to S204.
Step S201, when detecting an interface test operation in an interface configuration page, obtaining a plurality of test requests, and determining a target test request including a preset identification code in the plurality of test requests.
It should be noted that, before the local activity starts, the developer tests the interfaces of the server to determine the interfaces of the main path of the activity, and sets the hierarchical current limiting parameters of each interface according to the interface test parameters corresponding to each interface displayed on the interface configuration page of the server.
For example, a developer may input a preset identification code to be monitored on an interface configuration page, where the preset identification code is used to identify uniqueness of a client; then, the developer logs in an application program corresponding to the preset identification code on the client, and performs operation of accessing the server through the application program, wherein the application program can be a shopping application program on the client and the like; the server can intercept a plurality of test requests received by the current interface through the interceptor and determine a target test request containing a preset identification code in the plurality of test requests.
For example, the preset identification code may include a user identification user id, such as a login account of an application program in the client, and may also be Sid (Security Identifiers). Wherein Sid may be a token for logging into the application.
Step S202, analyzing the target test request to determine an interface call set.
It should be noted that, in the embodiment of the present application, the target test request may be analyzed, a path called corresponding to the target test request is determined according to the analysis information, and then an interface call set may be determined according to an interface corresponding to the path. It can be understood that by determining the interface call set, the called interface in the interface test process can be obtained, and further, the interface of the main path of the current activity can be determined. Wherein the interface call set includes the current interface.
In some embodiments, parsing the target test request to determine the set of interface calls may include: extracting uniform resource locators in the target test request, and determining all paths called by the target test request according to the uniform resource locators; and acquiring an interface calling set according to the interfaces corresponding to all the paths.
It should be noted that a Uniform Resource Locator (URL) is a compact representation of the location and access method of a Resource available from the internet, and is an address of a standard Resource on the internet.
In the embodiment of the application, the uniform resource locator is used for representing the path called by the target test request; exemplarily, all paths called by the target test request can be determined through the uniform resource locator carried in the target test request; and then, acquiring an interface call set according to the interfaces corresponding to all the paths.
By analyzing the target test request, all paths called by the target test request can be determined according to the uniform resource locator, so that interfaces on the main path of the activity are obtained.
Step S203, determining an interface test parameter corresponding to each interface in the interface calling set, and displaying the interface test parameter corresponding to each interface on the interface configuration page.
For example, the interface test parameters may include the number of calls and the duration of the response. The number of calls refers to the number of times that the test request calls the interface, i.e., the request amount. For example, the number of calls of each interface in a preset time may be counted, and the response time of each interface may be calculated. And then, displaying the corresponding calling times and response time of each interface on an interface configuration page. The response duration may include a maximum response duration, a minimum response duration, and an average response duration. The preset time can be set according to actual conditions, and specific numerical values are not limited herein.
By displaying the interface test parameters corresponding to each interface on the interface configuration page, developers can set the layered current limiting parameters of each interface according to the interface test parameters corresponding to each interface, current limiting control can be performed on the interfaces on the main path of the current activity, and the stability of the server is ensured.
In this embodiment of the present application, after determining the interface test parameter corresponding to each interface in the interface call set, it may also be determined whether a data cache region of the interface needs to be created according to the data variation and the interface test parameter corresponding to each interface. It should be noted that the data cache region is used for storing data which is queried from the database by the interface for many times and has a small content change degree. The frequently used data are cached in the data cache region, so that the times of querying the database can be reduced, and the response speed is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a sub-step of creating a data buffer of an interface according to an embodiment of the present application, which may specifically include the following steps S2031 to S2034.
Step S2031, querying a database according to the test request received by each interface, acquiring a plurality of target data corresponding to each interface, and determining a data variation of each interface according to the plurality of target data.
For example, a database may be queried according to a test request received by each interface, and the queried data may be determined as a plurality of target data corresponding to each interface. The specific data query process is not limited herein. It is understood that the data variation refers to a data variation degree of the target data queried by querying the database according to the test request received by the interface.
For example, after the plurality of target data corresponding to each interface is acquired, the ratio of different data of the plurality of target data may be determined, and the ratio of different data may be determined as the data variation of each interface. For example, when there are 5 pieces of target data, such as data a, data C, data B, and data E, the ratio of different data is 4/5 ═ 0.8, that is, the data change amount is 0.8. For another example, when there are 5 pieces of target data, such as data a, data B, the ratio of different data is 2/5-0.4, that is, the data change amount is 0.4.
By determining the data variation of each interface according to the target data, whether the interface is a common interface can be determined according to the data variation.
Step S2032, determining whether a common interface exists in the interface calling set according to the data variation and the interface test parameter corresponding to each interface, wherein the common interface is an interface with calling times larger than preset times and data variation smaller than the preset variation.
In the embodiment of the application, whether a common interface exists in the interface calling set can be determined according to the calling times in the interface testing parameters corresponding to each interface and the corresponding data variable quantity. For example, the interface with the calling number greater than the preset number and the data variation smaller than the preset variation in the interface calling set may be determined as the common interface. The preset variation may be set according to an actual situation, and the specific value is not limited herein.
Step S2033, when the interface calling set has common interfaces, a data cache area corresponding to each common interface is created, and the data effective time of the data cache area is set.
Illustratively, when the common interfaces exist in the interface call set, a data cache region corresponding to each common interface is created, and the data valid time of the data cache region is set. For example, a data buffer corresponding to each common interface may be created in the memory, and a data valid time may be set for each data buffer. The data cache region is used for caching the common data inquired from the database; the data valid time refers to the time for storing the target data in the data cache region, and when the data valid time is reached, the expired data needs to be deleted.
By creating the data cache region corresponding to each common interface, the data to be queried by the common interfaces can be stored in the data cache region, the times of directly querying the database can be reduced, and the response speed of the access request is improved.
Step S2034, storing the target data corresponding to each common interface to the data buffer area corresponding to each common interface according to the data effective time.
For example, in the interface test process, the target data corresponding to each common interface may be stored in the data buffer corresponding to each common interface according to the data validity time. In addition, after the activity starts, the target data corresponding to each common interface can be stored in the data cache region corresponding to each common interface according to the data valid time.
By storing the target data of the common interface to the corresponding data cache region, the target data in the data cache region can be preferentially returned to the client when the same target data is inquired again by the access request of the client within the effective time of the data. Therefore, the times of directly querying the database can be reduced, and the response speed of the access request is improved.
Step S204, when the layered current limiting setting operation in the interface configuration page is detected, determining the layered current limiting parameter corresponding to each interface according to the layered current limiting setting operation.
It should be noted that, in the embodiment of the present application, after the interface configuration page displays the interface test parameters corresponding to each interface, the hierarchical current limiting parameter corresponding to each interface may be determined according to the hierarchical current limiting setting operation of the developer in the interface configuration page.
Wherein, the hierarchical current limiting parameter comprises an initial current limiting threshold, an increasing proportion and a decreasing proportion. The developer can set an initial current limiting threshold according to the interface test parameters of the interface, the estimated number of people in the activity and the number of the servers; the incremental ratio refers to the ratio of each increase to the current limit threshold; the decreasing rate refers to a rate at which the current limit threshold is decreased each time.
In some embodiments, when a hierarchical current limit setting operation in the interface configuration page is detected, a hierarchical current limit parameter corresponding to each interface is determined according to the hierarchical current limit setting operation.
Illustratively, the developer can determine the total request amount of each server according to the estimated number of people and the number of the servers in the activity; and then setting an initial current limiting threshold value of each interface according to the total request amount of each server, the request amount of each interface and the response time length.
For example, the developer may set the increasing ratio and the decreasing ratio according to the actual situation, and specific values are not described herein. For example, the increasing proportion may be 5% and the decreasing proportion may be-5%.
In some embodiments, after determining the hierarchical current limit parameter corresponding to each interface according to the hierarchical current limit setting operation, each interface and the corresponding hierarchical current limit parameter may be stored in a local database or a local disk in an associated manner.
To further ensure privacy and security of the hierarchical current limiting parameters, the hierarchical current limiting parameters may be stored in nodes of a block chain.
The hierarchical current limiting parameters corresponding to each interface are determined according to the hierarchical current limiting setting operation, and then current limiting control can be achieved according to the hierarchical current limiting parameters when the interfaces need to limit current.
Step S30, comparing the interface parameter value with a preset parameter range value, where the parameter range value includes a parameter upper limit value and a parameter lower limit value.
Illustratively, the preset parameter range values include a request quantity range value and a response duration range value. The request quantity range value comprises a request quantity upper limit value and a request quantity lower limit value; the response time length range value comprises a response time length upper limit value and a response time length lower limit value. The request quantity upper limit value, the request quantity lower limit value, the response time length upper limit value and the response time length lower limit value can be set according to actual conditions, and specific numerical values are not limited herein.
In the embodiment of the application, two current limiting strategies are provided to carry out current limiting control on the current interface; the current limiting strategy may include a request amount current limiting strategy and a response time length current limiting strategy. For example, the current interface may be subjected to current limiting control according to the request amount, or may be subjected to current limiting control according to the response duration.
In some embodiments, before comparing the interface parameter value with the preset parameter range value, the method may further include: and determining a target current limiting strategy corresponding to the current interface.
For example, the target current limiting policy corresponding to the current interface may be determined according to the current limiting policy option in the interface configuration page. It should be noted that, the developer may perform the operation of selecting the current limiting policy in the current limiting policy option in the interface configuration page.
In some embodiments, comparing the interface parameter value with the preset parameter range value may include: when the target current limiting strategy is a request quantity current limiting strategy, comparing the request quantity in the interface parameter value with a request quantity range value; and when the target current limiting strategy is a response time length strategy, comparing the average response time length in the interface parameter values with the response time length range value.
By comparing the interface parameter value with a preset parameter range value, whether the initial current limiting threshold value of the current interface needs to be adjusted or not can be determined; by determining the target current limiting strategy corresponding to the current interface, whether the current interface needs to be limited according to different current limiting strategies can be judged, and the flexibility is improved.
And step S40, if the interface parameter value is larger than the parameter upper limit value, performing descending adjustment on the initial current limiting threshold value according to the descending proportion until the descending adjusted current limiting threshold value is smaller than a preset first current limiting threshold value.
It should be noted that the parameter upper limit value may be a request quantity upper limit value in the request quantity range value, or may be a response time length upper limit value in the response time length range value. When the target current-limiting strategy is a request quantity current-limiting strategy, the upper limit value of the parameter is the upper limit value of the request quantity; and when the target current limiting strategy is a response time length current limiting strategy, the upper limit value of the parameter is the upper limit value of the response time length.
In some embodiments, if the requested amount in the interface parameter value is greater than the requested amount upper limit value, the initial current limit threshold value is subjected to decreasing adjustment according to a decreasing proportion until the current limit threshold value after decreasing adjustment is smaller than a preset first current limit threshold value.
In other embodiments, if the average response duration in the interface parameter value is greater than the response duration upper limit, the initial current limit threshold is adjusted in a descending manner according to the descending proportion until the current limit threshold after descending adjustment is smaller than the preset first current limit threshold.
The preset first current limit threshold may be set according to an actual situation, and a specific value is not limited herein. It can be understood that, when the request amount is too large, the initial current limiting threshold is adjusted in a decreasing manner, which is equivalent to increasing the current limiting force, so as to achieve the purpose of reducing the request amount.
Illustratively, when the initial current limit threshold is a and the decrement ratio is-5%, performing a first round of decrement adjustment on the initial current limit threshold to obtain a current limit threshold of 95% a; after the second round of incremental adjustment, the resulting current limit threshold is 90% a. And repeating the steps until the current limiting threshold value after the decreasing adjustment is smaller than the preset first current limiting threshold value.
When the interface parameter value is determined to be larger than the upper limit value of the parameter, the initial current limiting threshold value is subjected to descending adjustment according to the descending proportion, so that the current limiting threshold value can be gradually reduced when the request quantity is overlarge, and the current limiting strength is enhanced.
And step S50, if the interface parameter value is smaller than the parameter lower limit value, performing incremental adjustment on the initial current limiting threshold value according to the incremental proportion until the adjusted current limiting threshold value is larger than a preset second current limiting threshold value.
Illustratively, when the target current limiting strategy is a request quantity current limiting strategy, the lower limit value of the parameter is a request quantity lower limit value; and when the target current limiting strategy is a response time length current limiting strategy, the lower limit value of the parameter is the lower limit value of the response time length.
In some embodiments, if the requested quantity in the interface parameter value is smaller than the requested quantity lower limit value, the initial current limit threshold value is incrementally adjusted according to the incremental proportion until the incrementally adjusted current limit threshold value is larger than the preset second current limit threshold value.
In other embodiments, if the average response duration in the interface parameter value is smaller than the response duration lower limit, the initial current limit threshold is incrementally adjusted according to the incremental proportion until the incrementally adjusted current limit threshold is larger than the preset second current limit threshold.
The preset second current limit threshold may be set according to an actual situation, and a specific value is not limited herein. It will be appreciated that when the number of requests is too small, incremental adjustment of the initial current limit threshold is equivalent to lessening the strength of the current limit so that the server can receive more access requests.
Illustratively, when the initial current limit threshold is b, and the incremental ratio is 5%, performing a first round of incremental adjustment on the initial current limit threshold to obtain a current limit threshold of 105% b; after the second round of incremental adjustment, the resulting current limit threshold is 110%. b.
When the interface parameter value is determined to be smaller than the parameter lower limit value, the initial current limiting threshold value is adjusted in an increasing mode according to the increasing proportion, the current limiting threshold value can be gradually increased when the request quantity is too small, and therefore current limiting strength is reduced.
And step S60, carrying out current limiting control on the current interface according to the adjusted current limiting threshold.
In the embodiment of the application, a token bucket can be arranged on each interface, the capacity of the token bucket is adjusted according to the current limiting threshold value of the interface, and then the current limiting control is performed on the interface through the capacity of the token bucket, so that the accuracy of the current limiting control is improved.
It should be noted that Token Bucket (Token-Bucket) is a flow measurement method that is most commonly used at present to evaluate whether the flow rate exceeds a specified value. Where token bucket refers to an internal storage pool of a network device and tokens refer to virtual packets that fill the token bucket at a given rate. The token bucket can be regarded as a container for storing tokens, and a certain capacity is preset; the system places tokens into the bucket at a set rate, and when the bucket is full of tokens, excess tokens overflow. In an embodiment of the present application, a token bucket is used to throttle an interface. For example, the capacity of the token bucket may be set according to an initial throttling threshold, and the capacity of the token bucket may be adjusted according to changes in the throttling threshold. When the access request reaches the current interface, firstly, taking out tokens equivalent to the request amount from a token bucket according to the request amount of the access request for transmitting the access request; when the number of tokens is insufficient, the access request may be discarded or cached. Therefore, current limiting control on the current interface is realized.
In some embodiments, performing current limiting control on the current interface according to the adjusted current limiting threshold may include: and setting the capacity of the token bucket corresponding to the current interface as the adjusted current limiting threshold value.
For example, if the adjusted current limiting threshold is K, the capacity of the token bucket corresponding to the current interface may be set to K. When multiple access requests arrive at the current interface, the K access requests can be transmitted because the token bucket stores K tokens. I.e. only K access requests can be processed simultaneously, the redundant access requests will be buffered and awaited or discarded.
The capacity of the token bucket corresponding to the current interface is set to be the adjusted current limiting threshold value, the request quantity of the interface can be controlled according to the quantity of the tokens in the token bucket, the current interface can be intelligently and dynamically limited, a current limiting script does not need to be modified manually, and timeliness and accuracy of interface current limiting are improved.
In some embodiments, when the interface parameter value is compared with the preset parameter range value, the method may further include: when the interface parameter value is smaller than the parameter upper limit value and larger than the parameter lower limit value, determining whether a token corresponding to the access request is distributed from a token bucket of the current interface; if the token corresponding to the access request is distributed, performing data query according to the access request based on a preset data query strategy, and returning a data query result through the current interface; and if the token corresponding to the access request is not distributed, returning a preset response message through the current interface.
It should be noted that, when the interface parameter value is smaller than the parameter upper limit value and larger than the parameter lower limit value, the current limit threshold of the current interface does not need to be adjusted, and the current limit of the current interface does not need to be performed. At this time, the access request can be processed normally, the data corresponding to the access request is queried, and the query result is returned to the client.
For example, when the value of the interface parameter is smaller than the upper parameter limit value and larger than the lower parameter limit value, it is determined whether to allocate a token corresponding to the access request from the token bucket of the current interface. For example, when the request quantity in the interface parameter values is smaller than the request quantity upper limit value and larger than the request quantity lower limit value, whether the token corresponding to the access request is allocated from the token bucket of the current interface is judged. For another example, when the average response duration in the interface parameter values is smaller than the response duration upper limit value and larger than the response duration upper limit value, it is determined whether to allocate a token corresponding to the access request from the token bucket of the current interface.
Referring to fig. 4, fig. 4 is a schematic diagram of querying data corresponding to an access request according to an embodiment of the present disclosure, and as shown in fig. 4, tokens corresponding to the access request are allocated from a token bucket of a current interface; and if the token corresponding to the access request is not distributed, returning a preset response message through the current interface. The preset response message may be "network congestion, please retry", or other prompting contents. And if the token corresponding to the access request is distributed, performing data query according to the access request based on a preset data query strategy, and returning a data query result through the current interface.
Based on a preset data query policy, performing data query according to the access request, and returning a data query result through the current interface, may include: determining whether a data cache region exists in a current interface; and if the current interface does not have the data cache region, querying the database to obtain a query result corresponding to the access request. And if the current interface has a data cache region, querying the data cache region. And when the data corresponding to the access request exists in the data cache region, taking the corresponding data as a query result. And when the data corresponding to the access request does not exist in the data cache region, querying the database to obtain a query result.
In some embodiments, when there is no target data corresponding to the access request in the data cache region, the data validity time of the data cache region may also be set, and the data obtained from the database query is stored in the data cache region.
By preferentially inquiring the data in the data cache region, the times of directly inquiring the database can be reduced, and the response speed of the access request is improved.
In the interface current limiting method provided in the above embodiment, when the current interface receives an access request, an interface parameter value of the current interface is determined, so that a request amount of the access request received by the current interface and an average response duration of the access request processed by the current interface can be obtained; by obtaining the hierarchical current limiting parameter corresponding to the current interface, the initial current limiting threshold, the increasing proportion and the decreasing proportion when the current interface is subjected to hierarchical current limiting can be obtained; by analyzing the target test request, all paths of the target test request can be determined according to the uniform resource locator, so that interfaces on the main path of the activity are obtained; determining the data variation of each interface according to a plurality of target data, and further determining whether the interface is a common interface according to the data variation; by creating the data cache region corresponding to each common interface, the data which needs to be inquired by the common interfaces can be stored in the data cache region, the times of directly inquiring the database can be reduced, and the response speed of the access request is improved; by determining the target current-limiting strategy corresponding to the current interface, whether the current interface needs to be subjected to current limiting or not can be judged according to different current-limiting strategies, so that the flexibility is improved; when the interface parameter value is determined to be larger than the upper limit value of the parameter, the initial current limiting threshold value is subjected to descending adjustment according to the descending proportion, so that the current limiting threshold value can be gradually reduced when the request quantity is overlarge, and the current limiting strength is enhanced; when the interface parameter value is determined to be smaller than the lower parameter limit value, the initial current limiting threshold value is adjusted in an increasing mode according to the increasing proportion, so that the current limiting threshold value can be gradually increased when the request quantity is too small, and the current limiting strength is reduced; the capacity of the token bucket corresponding to the current interface is set to be the adjusted current limiting threshold value, the request quantity of the interface can be controlled according to the quantity of the tokens in the token bucket, the current interface can be intelligently and dynamically limited, a current limiting script does not need to be modified manually, and timeliness and accuracy of interface current limiting are improved.
Referring to fig. 5, fig. 5 is a schematic block diagram of an interface current limiting apparatus 1000 according to an embodiment of the present application, where the interface current limiting apparatus is configured to perform the interface current limiting method described above. The interface current limiting device can be configured in the server.
As shown in fig. 5, the interface current limiting apparatus 1000 includes: a state parameter determination module 1001, a current limit parameter acquisition module 1002, a parameter value comparison module 1003, a decremental adjustment module 1004, an incremental adjustment module 1005, and a current limit control module 1006.
A state parameter determining module 1001, configured to determine, when a current interface receives an access request, an interface parameter value of the current interface.
A current limiting parameter obtaining module 1002, configured to obtain a hierarchical current limiting parameter corresponding to the current interface, where the hierarchical current limiting parameter includes an initial current limiting threshold, an increasing proportion, and a decreasing proportion.
A parameter value comparison module 1003, configured to compare the interface parameter value with a preset parameter range value, where the parameter range value includes a parameter upper limit value and a parameter lower limit value.
A decreasing adjustment module 1004, configured to, if the interface parameter value is greater than the parameter upper limit value, perform decreasing adjustment on the initial current limiting threshold according to the decreasing proportion until the current limiting threshold after decreasing adjustment is smaller than a preset first current limiting threshold.
An incremental adjustment module 1005, configured to, if the interface parameter value is smaller than the parameter lower limit value, perform incremental adjustment on the initial current limiting threshold according to the incremental ratio until the adjusted current limiting threshold is larger than a preset second current limiting threshold.
And a current limiting control module 1006, configured to perform current limiting control on the current interface according to the adjusted current limiting threshold.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the apparatus and the modules described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The apparatus described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present disclosure.
Referring to fig. 6, the computer device includes a processor and a memory connected by a system bus, wherein the memory may include a storage medium and an internal memory. The storage medium may be a nonvolatile storage medium or a volatile storage medium.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for running a computer program in the non-volatile storage medium, which when executed by the processor, causes the processor to perform any of the interface throttling methods.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
when a current interface receives an access request, determining an interface parameter value of the current interface; acquiring a layered current limiting parameter corresponding to the current interface, wherein the layered current limiting parameter comprises an initial current limiting threshold, an increasing proportion and a decreasing proportion; comparing the interface parameter value with a preset parameter range value, wherein the parameter range value comprises a parameter upper limit value and a parameter lower limit value; if the interface parameter value is larger than the upper parameter limit value, carrying out descending adjustment on the initial current limiting threshold value according to the descending proportion until the current limiting threshold value after descending adjustment is smaller than a preset first current limiting threshold value; if the interface parameter value is smaller than the parameter lower limit value, carrying out incremental adjustment on the initial current limiting threshold value according to the incremental proportion until the adjusted current limiting threshold value is larger than a preset second current limiting threshold value; and carrying out current limiting control on the current interface according to the adjusted current limiting threshold value.
In one embodiment, the interface parameter values comprise request quantity and average response time length, and the parameter range values comprise request quantity range values and response time length range values; before the processor compares the interface parameter value with a preset parameter range value, the processor is further configured to:
and determining a target current limiting strategy corresponding to the current interface.
In one embodiment, the processor, when performing the comparison of the interface parameter value with the preset parameter range value, is configured to perform:
when the target current limiting strategy is a request quantity current limiting strategy, comparing the request quantity in the interface parameter value with a request quantity range value; and when the target current limiting strategy is a response time length strategy, comparing the average response time length in the interface parameter values with the response time length range value.
In one embodiment, the current interface includes a token bucket; when the processor compares the interface parameter value with a preset parameter range value, the processor is further configured to:
when the interface parameter value is smaller than the parameter upper limit value and larger than the parameter lower limit value, determining whether to allocate a token corresponding to the access request from a token bucket of the current interface; if the token corresponding to the access request is distributed, based on a preset data query strategy, performing data query according to the access request, and returning a data query result through the current interface; and if the token corresponding to the access request is not distributed, returning a preset response message through the current interface.
In one embodiment, the current interface includes a token bucket; and when realizing the current limiting control of the current interface according to the adjusted current limiting threshold value, the processor is used for realizing that:
and setting the capacity of the token bucket corresponding to the current interface as the adjusted current limiting threshold value.
In an embodiment, before the obtaining of the hierarchical current limiting parameter corresponding to the current interface, the processor is further configured to:
when detecting an interface test operation in an interface configuration page, acquiring a plurality of test requests, and determining a target test request containing a preset identification code in the plurality of test requests; analyzing the target test request to determine an interface call set; determining an interface test parameter corresponding to each interface in the interface calling set, and displaying the interface test parameter corresponding to each interface on the interface configuration page; and when detecting the layered current limiting setting operation in the interface configuration page, determining the layered current limiting parameter corresponding to each interface according to the layered current limiting setting operation.
In one embodiment, the processor, when performing parsing the target test request to determine the set of interface calls, is configured to perform:
extracting uniform resource locators in the target test request, and determining all paths called by the target test request according to the uniform resource locators; and acquiring the interface calling set according to the interfaces corresponding to all the paths.
In one embodiment, the interface test parameters include a number of calls; after determining the interface test parameters corresponding to each interface in the interface call set, the processor is further configured to implement:
inquiring a database according to the test request received by each interface, acquiring a plurality of target data corresponding to each interface, and determining the data variation of each interface according to the plurality of target data; determining whether a common interface exists in the interface calling set according to the data variation and the interface test parameter corresponding to each interface, wherein the common interface is an interface of which the calling times are greater than the preset times and the data variation is smaller than the preset variation; when the interface calling set has common interfaces, creating a data cache region corresponding to each common interface, and setting the data effective time of the data cache region; and storing the target data corresponding to each common interface into a data cache region corresponding to each common interface according to the data effective time.
The embodiment of the application further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, the computer program comprises program instructions, and the processor executes the program instructions to implement any interface current limiting method provided by the embodiment of the application.
For example, the program is loaded by a processor and may perform the following steps:
when a current interface receives an access request, determining an interface parameter value of the current interface; acquiring a layered current limiting parameter corresponding to the current interface, wherein the layered current limiting parameter comprises an initial current limiting threshold, an increasing proportion and a decreasing proportion; comparing the interface parameter value with a preset parameter range value, wherein the parameter range value comprises a parameter upper limit value and a parameter lower limit value; if the interface parameter value is larger than the upper parameter limit value, carrying out descending adjustment on the initial current limiting threshold value according to the descending proportion until the current limiting threshold value after descending adjustment is smaller than a preset first current limiting threshold value; if the interface parameter value is smaller than the parameter lower limit value, carrying out incremental adjustment on the initial current limiting threshold value according to the incremental proportion until the adjusted current limiting threshold value is larger than a preset second current limiting threshold value; and carrying out current limiting control on the current interface according to the adjusted current limiting threshold value.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD Card), a Flash memory Card (Flash Card), and the like provided on the computer device.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An interface current limiting method, comprising:
when a current interface receives an access request, determining an interface parameter value of the current interface;
acquiring a layered current limiting parameter corresponding to the current interface, wherein the layered current limiting parameter comprises an initial current limiting threshold, an increasing proportion and a decreasing proportion;
comparing the interface parameter value with a preset parameter range value, wherein the parameter range value comprises a parameter upper limit value and a parameter lower limit value;
if the interface parameter value is larger than the upper parameter limit value, carrying out descending adjustment on the initial current limiting threshold value according to the descending proportion until the current limiting threshold value after descending adjustment is smaller than a preset first current limiting threshold value;
if the interface parameter value is smaller than the parameter lower limit value, carrying out incremental adjustment on the initial current limiting threshold value according to the incremental proportion until the adjusted current limiting threshold value is larger than a preset second current limiting threshold value;
and carrying out current limiting control on the current interface according to the adjusted current limiting threshold value.
2. The interface current limiting method according to claim 1, wherein the interface parameter values include a request amount and an average response duration, and the parameter range values include a request amount range value and a response duration range value;
before comparing the interface parameter value with a preset parameter range value, the method further includes:
determining a target current limiting strategy corresponding to the current interface;
the comparing the interface parameter value with a preset parameter range value includes:
when the target current limiting strategy is a request quantity current limiting strategy, comparing the request quantity in the interface parameter value with a request quantity range value;
and when the target current limiting strategy is a response time length strategy, comparing the average response time length in the interface parameter values with the response time length range value.
3. The interface throttling method of claim 1, wherein the current interface comprises a token bucket; the interface parameter value is compared with a preset parameter range value, and the method further comprises the following steps:
when the interface parameter value is smaller than the parameter upper limit value and larger than the parameter lower limit value, determining whether to allocate a token corresponding to the access request from a token bucket of the current interface;
if the token corresponding to the access request is distributed, based on a preset data query strategy, performing data query according to the access request, and returning a data query result through the current interface;
and if the token corresponding to the access request is not distributed, returning a preset response message through the current interface.
4. The interface throttling method of claim 1, wherein the current interface comprises a token bucket; the current limiting control of the current interface according to the adjusted current limiting threshold value comprises the following steps:
and setting the capacity of the token bucket corresponding to the current interface as the adjusted current limiting threshold value.
5. The interface current limiting method according to any one of claims 1 to 4, wherein before the obtaining of the hierarchical current limiting parameter corresponding to the current interface, the method further comprises:
when detecting an interface test operation in an interface configuration page, acquiring a plurality of test requests, and determining a target test request containing a preset identification code in the plurality of test requests;
analyzing the target test request to determine an interface call set;
determining an interface test parameter corresponding to each interface in the interface calling set, and displaying the interface test parameter corresponding to each interface on the interface configuration page;
and when detecting the layered current limiting setting operation in the interface configuration page, determining the layered current limiting parameter corresponding to each interface according to the layered current limiting setting operation.
6. The interface throttling method of claim 5, wherein parsing the target test request to determine a set of interface calls comprises:
extracting uniform resource locators in the target test request, and determining all paths called by the target test request according to the uniform resource locators;
and acquiring the interface calling set according to the interfaces corresponding to all the paths.
7. The interface current limiting method of claim 5, wherein the interface test parameters include a number of calls; after determining the interface test parameters corresponding to each interface in the interface call set, the method further includes:
inquiring a database according to the test request received by each interface, acquiring a plurality of target data corresponding to each interface, and determining the data variation of each interface according to the plurality of target data;
determining whether a common interface exists in the interface calling set according to the data variation and the interface test parameter corresponding to each interface, wherein the common interface is an interface of which the calling times are greater than the preset times and the data variation is smaller than the preset variation;
when the interface calling set has common interfaces, creating a data cache region corresponding to each common interface, and setting the data effective time of the data cache region;
and storing the target data corresponding to each common interface into a data cache region corresponding to each common interface according to the data effective time.
8. An interface current limiting device, comprising:
the state parameter determining module is used for determining the interface parameter value of the current interface when the current interface receives the access request;
a current limiting parameter obtaining module, configured to obtain a hierarchical current limiting parameter corresponding to the current interface, where the hierarchical current limiting parameter includes an initial current limiting threshold, an increasing proportion, and a decreasing proportion;
the parameter value comparison module is used for comparing the interface parameter value with a preset parameter range value, wherein the parameter range value comprises a parameter upper limit value and a parameter lower limit value;
a decreasing adjustment module, configured to perform decreasing adjustment on the initial current limiting threshold according to the decreasing proportion if the interface parameter value is greater than the parameter upper limit value, until the current limiting threshold after the decreasing adjustment is smaller than a preset first current limiting threshold;
the incremental adjustment module is used for carrying out incremental adjustment on the initial current limiting threshold value according to the incremental proportion if the interface parameter value is smaller than the parameter lower limit value until the adjusted current limiting threshold value is larger than a preset second current limiting threshold value;
and the current limiting control module is used for carrying out current limiting control on the current interface according to the adjusted current limiting threshold value.
9. A computer device, wherein the computer device comprises a memory and a processor;
the memory for storing a computer program;
the processor is configured to execute the computer program and to implement the interface current limiting method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the interface current limiting method according to any one of claims 1 to 7.
CN202210073181.5A 2022-01-21 2022-01-21 Interface current limiting method and device, computer equipment and storage medium Pending CN114422439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210073181.5A CN114422439A (en) 2022-01-21 2022-01-21 Interface current limiting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210073181.5A CN114422439A (en) 2022-01-21 2022-01-21 Interface current limiting method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114422439A true CN114422439A (en) 2022-04-29

Family

ID=81275504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210073181.5A Pending CN114422439A (en) 2022-01-21 2022-01-21 Interface current limiting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114422439A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174588A (en) * 2022-07-28 2022-10-11 中国工商银行股份有限公司 Bandwidth control method, device, equipment, storage medium and program product
CN115277577A (en) * 2022-09-28 2022-11-01 平安银行股份有限公司 Data processing method, data processing device, computer equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170026295A1 (en) * 2014-04-03 2017-01-26 Zhongxing Microelectronics Technology Co. Ltd Method and apparatus for limiting rate by means of token bucket, and computer storage medium
CN110099009A (en) * 2018-01-31 2019-08-06 北京易真学思教育科技有限公司 Dynamic current limiting method and computer-readable medium based on interface response time trend
CN113326132A (en) * 2021-06-04 2021-08-31 深圳前海微众银行股份有限公司 Information adjusting method, equipment and storage medium
CN113472679A (en) * 2021-09-02 2021-10-01 杭州星犀科技有限公司 Interface current limiting method and system
CN113726683A (en) * 2021-09-09 2021-11-30 海尔数字科技(青岛)有限公司 Access current limiting method, device, equipment, storage medium and computer program product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170026295A1 (en) * 2014-04-03 2017-01-26 Zhongxing Microelectronics Technology Co. Ltd Method and apparatus for limiting rate by means of token bucket, and computer storage medium
CN110099009A (en) * 2018-01-31 2019-08-06 北京易真学思教育科技有限公司 Dynamic current limiting method and computer-readable medium based on interface response time trend
CN113326132A (en) * 2021-06-04 2021-08-31 深圳前海微众银行股份有限公司 Information adjusting method, equipment and storage medium
CN113472679A (en) * 2021-09-02 2021-10-01 杭州星犀科技有限公司 Interface current limiting method and system
CN113726683A (en) * 2021-09-09 2021-11-30 海尔数字科技(青岛)有限公司 Access current limiting method, device, equipment, storage medium and computer program product

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174588A (en) * 2022-07-28 2022-10-11 中国工商银行股份有限公司 Bandwidth control method, device, equipment, storage medium and program product
CN115174588B (en) * 2022-07-28 2024-03-01 中国工商银行股份有限公司 Bandwidth control method, device, apparatus, storage medium and program product
CN115277577A (en) * 2022-09-28 2022-11-01 平安银行股份有限公司 Data processing method, data processing device, computer equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108173938B (en) Server load distribution method and device
CN107798108B (en) Asynchronous task query method and device
CN112640388B (en) Suspicious activity detection in computer networks
CN111262795B (en) Service interface-based current limiting method and device, electronic equipment and storage medium
CN110888838B (en) Request processing method, device, equipment and storage medium based on object storage
US20140068085A1 (en) Controlling access to resources by hosted entities
CN114422439A (en) Interface current limiting method and device, computer equipment and storage medium
CN111756644B (en) Hot spot current limiting method, system, equipment and storage medium
WO2005062571A2 (en) System and method for allocating server resources
US20200412736A1 (en) Dynamic security policy consolidation
CN106899549B (en) Network security detection method and device
CN108416665B (en) Data interaction method and device, computer equipment and storage medium
CN114095567B (en) Data access request processing method and device, computer equipment and medium
CN110569114B (en) Service processing method, device, equipment and storage medium
US8364776B1 (en) Method and system for employing user input for website classification
CN111930505B (en) Data resource management method and system for big data platform, server and medium
CN106817296B (en) Information recommendation test method and device and electronic equipment
CN103685198A (en) Method and device for interaction of user data
CN115037693A (en) Distributed current limiting method and distributed current limiting device based on token bucket
CN113961334A (en) Task processing method, device, equipment and storage medium
CN112882646A (en) Resource caching method and device, electronic equipment and storage medium
CN114004536A (en) Method and device for measuring service quality, electronic equipment and storage medium
CN108846141B (en) Offline cache loading method and device
CN112491882A (en) Webshell detection method, webshell detection device, webshell detection medium and electronic equipment
US11520850B1 (en) Determining a number of secondary tracking attempts avoided by blocking a primary tracking domain from loading in a host web page

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