Traffic control method, system and computer program product

By obtaining and monitoring the management thresholds and enabling data of multiple current limiting rules, combining time window algorithms and user information, the traffic control strategy is adjusted in real time, and the problem of insufficient flexibility and accuracy of traffic control methods in the existing technology is solved, achieving more efficient traffic management and system stability.

CN119728562APending Publication Date: 2025-03-28TRAVELSKY TECHNOLOGY LIMITED
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411917946.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the prior art, the flexibility and accuracy of the traffic control method are low, making it difficult to effectively control access traffic and reasonably allocate server resources in a complex network environment.

Method used

By obtaining the management threshold and enable data corresponding to multiple current limit rules, we can monitor whether the user access traffic parameters exceed the management threshold in real time, and trigger the alarm mechanism and adjust the current limit rules based on the time window algorithm and user information.

Benefits of technology

It realizes more flexible and accurate traffic control, improves the flexibility and accuracy of traffic management methods, avoids server overload and resource abuse, and ensures the stability and security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728562A_ABST
    Figure CN119728562A_ABST
Patent Text Reader

Abstract

The invention discloses a traffic control method, a traffic control system and a computer program product. The method comprises the following steps: acquiring management thresholds and starting data corresponding to various current limiting rules; performing information extraction on an access request message sent by a user to obtain user information; based on a time window algorithm, starting data and user information, and monitoring whether a user access flow parameter exceeds a management threshold in real time; and triggering an alarm mechanism in response to the user access traffic parameter exceeding the management threshold. According to the method and the device, the technical problems of low flexibility and low accuracy of a traffic control method in related technologies are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of civil aviation technology and network technology, and more specifically, to a traffic control method, system and computer program product. Background Art

[0002] In the field of network technology, access traffic refers to the number of user visits to a website or application. As the user scale and activity continue to grow, the number of network service requests is increasing, causing server overload, which in turn leads to network congestion, service delays, server system crashes and other problems. Therefore, access traffic needs to be controlled.

[0003] In the related technology, traffic control methods usually adopt single-dimensional restrictions. The single-dimensional restriction method sets a threshold for the data in a single dimension and performs traffic control on a single dimension. It is difficult to effectively control access traffic and reasonably allocate server resources in a complex network environment. The traffic control method has poor flexibility and accuracy.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a traffic control method, system and computer program product to at least solve the technical problems of low flexibility and low accuracy of the traffic control method in the related art.

[0006] According to one aspect of an embodiment of the present application, a traffic management method is provided, including: obtaining management thresholds and enabling data corresponding to a plurality of flow limiting rules; extracting information from access request messages issued by users to obtain user information; based on a time window algorithm, enabling data and user information, monitoring in real time whether user access traffic parameters exceed the management threshold; and triggering an alarm mechanism in response to user access traffic parameters exceeding the management threshold.

[0007] Optionally, obtaining management thresholds and enabling data corresponding to multiple flow limiting rules also includes: determining the management thresholds and enabling data based on management events triggered for the multiple flow limiting rules, wherein the management event is triggered by at least one of the following actions: adding an action, deleting an action, modifying an action, and querying an action, the management thresholds include a user concurrent number threshold, a user interface access number per second threshold, and a user daily total traffic threshold, and the enabling data is used to characterize multiple enabling states corresponding to the multiple flow limiting rules; and synchronously storing the management thresholds and enabling data in a key-value storage database.

[0008] Optionally, extracting information from an access request message sent by a user to obtain user information includes: receiving an access request message; and parsing the message body of the access request message to obtain user information.

[0009] Optionally, based on the time window algorithm, enablement data and user information, real-time monitoring of whether the user access traffic parameters exceed the management threshold includes: in response to determining that the user current limiting function is in an on state according to the enablement data, using the enablement data and user information to generate current limiting data corresponding to multiple current limiting rules; storing the current limiting data in a key-value storage database; using the time window algorithm and the current limiting data to determine whether the user access traffic parameters exceed the management threshold, wherein the time window algorithm is implemented using a LUA script.

[0010] Optionally, multiple flow limiting rules include technical direction flow limiting rules, and user access traffic parameters include the current concurrent number of users; using the time window algorithm and the flow limiting data to determine whether the user access traffic parameters exceed the management threshold includes: in response to determining that the technical direction flow limiting rule is in an enabled state according to the enablement data, using the time window algorithm and the flow limiting data to determine the current concurrent number of users; comparing the current concurrent number of users with the user concurrent number threshold to determine whether the current concurrent number of users exceeds the user concurrent number threshold.

[0011] Optionally, multiple flow limiting rules include business direction flow limiting rules, and user access traffic parameters include user's total daily traffic and user's current number of visits per second; using a time window algorithm and flow limiting data to determine whether the user access traffic parameters exceed the management threshold includes: in response to determining that the business direction flow limiting rule is in an enabled state based on the enable data, using a time window algorithm and flow limiting data to determine the user's total daily traffic and user's current number of visits per second; comparing the user's total daily traffic with the user's daily total traffic threshold to determine whether the user's total daily traffic exceeds the user's daily total traffic threshold; comparing the user's current number of visits per second with the user interface's number of visits per second threshold to determine whether the user's current number of visits per second exceeds the user interface's number of visits per second threshold.

[0012] Optionally, the user's daily total traffic threshold includes a first total threshold, a second total threshold and a third total threshold; the traffic control method also includes: step A, when the current number of concurrent users exceeds the user concurrent number threshold, determining that the access request message response fails; when the current number of concurrent users does not exceed the user concurrent number threshold, executing step B; step B, when it is determined according to the enabling data that the business direction flow limiting rule is not in an enabled state, determining that the access request message response is successful; when it is determined according to the enabling data that the business direction flow limiting rule is in an enabled state, executing step C; step C, when the user's total daily traffic does not exceed the first total threshold, determining that the access request message response is successful; when the user's total daily traffic exceeds the first total threshold, displaying in the graphical user interface Indicate the prompt mark corresponding to the total daily traffic of the user, and execute step D; in step D, when the total daily traffic of the user does not exceed the second total threshold, determine that the access request message response is successful; when the total daily traffic of the user exceeds the second total threshold, execute step E; in step E, when the current number of visits per second of the user exceeds the user interface access number threshold per second, determine that the access request message response fails; when the current number of visits per second of the user does not exceed the user interface access number threshold per second, trigger the alarm mechanism, reduce the user concurrent number threshold according to the preset ratio, and execute step F; in step F, when the total daily traffic of the user does not exceed the third total threshold, determine that the access request message response is successful; when the total daily traffic of the user exceeds the third total threshold, determine that the access request message response fails.

[0013] Optionally, the alarm mechanism includes: generating and sending an alarm message according to a management threshold, enabling data, user information and current limiting data.

[0014] Optionally, the traffic control method also includes: managing thresholds, enabling data, user information and flow limiting data, generating a monitoring log, wherein the monitoring log includes at least user access traffic parameters; and displaying the monitoring log in real time in a graphical user interface.

[0015] According to another aspect of the embodiment of the present application, a traffic management system is also provided, including: a rule management module, used to dynamically set management thresholds and activation data corresponding to multiple flow limiting rules; a request receiving module, used to extract information from received access request messages to obtain user information; a traffic control module, used to monitor in real time whether user access traffic parameters exceed the management threshold based on a time window algorithm, activation data and user information; an alarm module, used to trigger an alarm mechanism when the user access traffic parameters exceed the management threshold.

[0016] According to another aspect of an embodiment of the present application, a computer program product is also provided, including a computer program, which implements any of the above-mentioned traffic control methods when executed by a processor.

[0017] In the embodiment of the present application, the management threshold and activation data corresponding to the various current limiting rules are obtained; information is extracted from the access request message sent by the user to obtain user information; based on the time window algorithm, the activation data and the user information, the user access traffic parameter is monitored in real time to see whether it exceeds the management threshold; in response to the user access traffic parameter exceeding the management threshold, the alarm mechanism is triggered. As a result, the present application achieves the purpose of more flexible and accurate flow control based on various current limiting rules, time window algorithms and user information, thereby achieving the technical effect of improving the flexibility and accuracy of the flow control method, and further solving the technical problem of low flexibility and low accuracy of the flow control method in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 It is a hardware structure block diagram of a terminal device for a flow management method according to an optional embodiment of the present application;

[0020] Figure 2 is a flow chart of a traffic management method according to an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of an optional flow control method according to an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of an optional flow control system according to an embodiment of the present application;

[0023] Figure 5 It is a structural block diagram of a traffic management system according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] According to an embodiment of the present application, an embodiment of a traffic management method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0027] Figure 1 is a hardware structure block diagram of a terminal device for a traffic management method according to an optional embodiment of the present application, such as Figure 1 As shown, the terminal device may include one or more processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor (Microcontroller Unit, referred to as MCU) or a programmable logic device (Field Programmable Gate Array, referred to as FPGA)), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display device 110, an input / output device 108 (i.e., an I / O device), a Universal Serial Bus (USB) port (which may be included as one of the ports of a computer bus, not shown in the figure), a network interface (not shown in the figure), a power supply (not shown in the figure) and / or a camera (not shown in the figure). It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the above terminal device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0028] It should be noted that the one or more processors 102 and / or other data processing circuits may be embodied in whole or in part as software, hardware, firmware or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be fully or partially integrated into any of the other components in the terminal device (or mobile device).

[0029] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the traffic management method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the above-mentioned traffic management method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0030] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the terminal device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0031] In the above operating environment, the embodiment of the present application provides a traffic management method. The traffic management method can be used in application scenarios of refined traffic control, and the above application scenarios may include but are not limited to: Application Programming Interface (API) gateway access traffic control scenario, financial transaction traffic control scenario, game server traffic control scenario, and data communication traffic control scenario.

[0032] Under the above operating environment, the embodiment of the present application provides the following Figure 2 The traffic management method shown, Figure 2 is a flow chart of a traffic management method according to an embodiment of the present application. Figure 2 As shown, the method includes the following implementation steps S201 to S204.

[0033] Step S201, obtaining management thresholds and activation data corresponding to multiple current limiting rules.

[0034] The above current limiting rules can be used to control and manage the access traffic of the server. By using multiple current limiting rules, the server can allocate resources more reasonably, prevent resources from being over-consumed or abused, and improve the performance of the server.

[0035] The above-mentioned management threshold can be determined based on historical traffic control data. The management threshold can also be determined using a traffic control machine learning model. The management threshold can be used to assist in the implementation of various flow limiting rules.

[0036] The above-mentioned enabling data can be used to determine whether multiple current limiting rules are effective. The enabling data may include one or more data, each data corresponding to a current limiting rule.

[0037] The specific implementation steps for obtaining the management thresholds and activation data corresponding to multiple flow limiting rules may be: when a user sends an access request to the server, the server access traffic management system determines multiple restriction rules related to the access request, and obtains the management thresholds and activation data corresponding to the multiple flow limiting rules.

[0038] It should be noted that, according to the actual operation of the server, the above-mentioned various flow limiting rules can be added, deleted, and modified to improve the flexibility of the traffic management method.

[0039] It is easy to understand that in the embodiments of the present application, obtaining management thresholds and enabling data corresponding to multiple flow limiting rules related to access requests can more accurately determine the corresponding multiple flow limiting rules for access requests, thereby improving the accuracy and flexibility of the traffic management method.

[0040] Step S202: extract information from the access request message sent by the user to obtain user information.

[0041] The access request message may be a request message sent by a user to a server using a client, and the access request message may include a request method, a Uniform Resource Locator (URL) of the access request, Hypertext Transfer Protocol (HTTP) header information, and request body data. The request body data may be actual data sent in the access request message, such as form information.

[0042] The above user information can be used to identify the user, and the user information may include but is not limited to the user name, the interface information corresponding to the access request message, the Internet Protocol (IP) address information corresponding to the client, etc.

[0043] The specific implementation steps of extracting information from the access request message sent by the user to obtain the user information may be: based on the user sending the access request message to the server, using the information extraction algorithm model in the server access traffic management system to extract information from the access request message to obtain the user information. The above information extraction algorithm model may include but is not limited to: language processing algorithm model, cluster analysis algorithm model, rule-based information extraction algorithm, etc.

[0044] It is easy to understand that in the embodiment of the present application, information is extracted from the access request message sent by the user to obtain user information, so that server traffic management can be performed from the user dimension, and the access traffic of each user to the server can be controlled more accurately, which can effectively prevent individual users from abusing server resources.

[0045] Step S203, based on the time window algorithm, activation data and user information, real-time monitoring is performed to determine whether the user access traffic parameters exceed the management threshold.

[0046] The above-mentioned time window algorithm may be an algorithm for flow control, and the time window algorithm may include but is not limited to a fixed window algorithm and a sliding window algorithm.

[0047] The above-mentioned user access traffic parameter may be a data indicator of user access to the server, and the user access traffic parameter may include but is not limited to user concurrent request parameters, user interface access parameters per second, and user daily total traffic parameters.

[0048] The user concurrent request parameter may be a parameter for the number of multiple transactions performed by the user at the same time point. The user interface access per second parameter may be a parameter for the number of times the user interface accesses the server per second. The user daily total traffic parameter may be a parameter for the number of times the user accesses the server per day.

[0049] The specific implementation steps of real-time monitoring of whether user access traffic parameters exceed the management threshold based on the time window algorithm, activation data and user information can be: determining the user access traffic parameters that need to be monitored in real time based on the user information and activation data, setting a time window based on the time window algorithm, counting the user access traffic parameters of users within the time window, comparing the user access traffic parameters with the management threshold, and judging in real time whether the user access traffic parameters exceed the management threshold.

[0050] It is easy to understand that in the embodiments of the present application, based on the time window algorithm, enabling data and user information, it is possible to accurately track server traffic changes in real time, manage server traffic in real time, and manage server resources in a timely manner, thereby improving the accuracy and real-time performance of the traffic management method.

[0051] Step S204: in response to the user access traffic parameter exceeding the management threshold, triggering an alarm mechanism.

[0052] The above alarm mechanism can be implemented through a series of programs, and the alarm mechanism can be used to send alarm information. Through the above alarm mechanism, when the user access traffic parameter exceeds the management threshold, an alarm message can be sent to the user and / or server administrator to timely discover and handle the abnormal traffic situation.

[0053] It is easy to understand that in the embodiment of the present application, the triggering alarm mechanism can promptly notify relevant personnel of abnormal server traffic, so that processing measures can be taken quickly to prevent business abnormalities caused by server overload, thereby improving the stability and security of the server.

[0054] Through the above steps S201 to S204, in the embodiment of the present application, by utilizing a variety of flow limiting rules and time window algorithms, multi-dimensional real-time and accurate monitoring of access traffic is achieved, which not only improves the accuracy of the traffic management method, but also can flexibly adjust the flow limiting rules according to actual conditions, thereby improving the flexibility of the traffic management method. In addition, when the user access traffic parameters exceed the preset threshold, the alarm mechanism can be triggered in time, which effectively prevents the problem of server overload and improves the stability and security of the system.

[0055] Optionally, the acquisition of management thresholds and enabling data corresponding to a plurality of current limiting rules in the above step S201 may further include the following execution steps:

[0056] Step S211, determining management thresholds and enabling data according to management events triggered for multiple flow limiting rules, wherein the management event is triggered by at least one of the following actions: adding action, deleting action, modifying action and querying action, the management threshold includes a user concurrent number threshold, a user interface access number per second threshold and a user daily total traffic threshold, and the enabling data is used to characterize multiple enabling states corresponding to the multiple flow limiting rules;

[0057] Step S212: Synchronously store the management threshold and the enabling data in a key-value storage database.

[0058] The management event may be an event corresponding to executing management operations on a plurality of current limiting rules. The management operations may include adding actions, deleting actions, modifying actions, and querying actions.

[0059] The above-mentioned user concurrent number threshold may be the maximum number of multiple transactions that a user is allowed to perform at the same time point. The above-mentioned user interface access number threshold per second may be the maximum number of times the user interface is allowed to access the server per second. The above-mentioned user daily total traffic threshold may include multiple levels of thresholds. The user daily total traffic threshold may be used to determine the degree to which a user occupies server resources every day. The user daily total traffic threshold may be used to assist in determining a message processing method. The above-mentioned message processing method may be used to process access request messages sent by users. The message processing method may include but is not limited to passing access request messages, rejecting access request messages, delaying the processing of access request messages, and limiting the frequency of receiving access request messages.

[0060] It should be noted that the above-mentioned user daily total traffic threshold can be set according to a variety of rules, for example, a setting method based on a start date and an end date, a setting method based on working days and holidays, and a default setting method.

[0061] The key-value storage database may be a high-performance non-relational database, and the key-value storage database may be used to store key-value pair data.

[0062] The specific implementation steps of determining the management threshold and enabling data according to the management events triggered for the multiple flow limiting rules may be: triggering the management events according to the management operations performed for the multiple flow limiting rules, adjusting the management thresholds and enabling states corresponding to the multiple flow limiting rules based on the management events, updating the management thresholds and enabling data corresponding to the multiple flow limiting rules, and determining the management thresholds and enabling data. By using the management operations, the management thresholds and enabling data of the multiple flow limiting rules can be adjusted according to the actual situation, thereby improving the flexibility of the traffic management method.

[0063] In an exemplary application scenario, the management operation may be a modification action, and the key-value storage database may be a Redis database. According to the modification actions performed on the various current limiting rules, a management event is triggered, and according to the management events triggered for the various current limiting rules, the user concurrent number threshold, the user interface access number threshold per second, the user daily total traffic threshold, and the various enabled states corresponding to the various current limiting rules are modified, and the updated management threshold and enabled data are determined, and the updated management threshold and enabled data are synchronized to the Redis database to ensure that the modification actions performed on the various current limiting rules can take effect in real time.

[0064] Through the above steps S211 to S212, in an embodiment of the present application, management thresholds and enabling data are determined based on management events triggered for multiple flow limiting rules, and the management thresholds and enabling data of multiple flow limiting rules can be adjusted according to actual conditions, thereby improving the flexibility of the traffic management method; the management thresholds and enabling data are synchronously stored in a key-value storage database to ensure that the updated management thresholds and enabling data can take effect in real time, thereby improving the real-time and accuracy of the traffic management method.

[0065] Optionally, in the above step S202, extracting information from the access request message sent by the user to obtain user information may also include the following execution steps:

[0066] Step S221, receiving an access request message;

[0067] Step S222: parse the access request message to obtain user information.

[0068] In an exemplary application scenario, the specific implementation steps of parsing the message body of an access request message to obtain user information may be: the server access traffic management system receives the access request message, and uses the information extraction algorithm model to parse the message body of the access request message to obtain user information, such as the user name, the interface name corresponding to the request, and the Internet Protocol (IP) address corresponding to the client.

[0069] It is easy to understand that in the embodiment of the present application, the server access traffic management system parses the message body of the access request message sent by the user to obtain user information, and can perform access traffic management for each user, which can effectively avoid the situation where individual users abuse server resources and improve the accuracy of the traffic management method.

[0070] Optionally, in the above step S203, based on the time window algorithm, the activation data and the user information, real-time monitoring of whether the user access traffic parameter exceeds the management threshold may also include the following execution steps:

[0071] Step S231, in response to determining that the user current limiting function is in an on state according to the activation data, generating current limiting data corresponding to a plurality of current limiting rules using the activation data and the user information;

[0072] Step S232, storing the current limiting data in a key-value storage database;

[0073] Step S233, using the time window algorithm and the flow limiting data, determine whether the user access flow parameter exceeds the management threshold, wherein the time window algorithm is implemented using the LUA script.

[0074] The above-mentioned user flow limiting function may include a technical direction flow limiting function and a business direction flow limiting function.

[0075] The above-mentioned flow limiting data may be flow control data in the form of database entries. The above-mentioned flow limiting data may be used to determine the user access flow parameters. By generating the flow limiting data, it is possible to associate each user's information with the corresponding activation data, so as to accurately manage the flow for each user; in addition, by generating the flow limiting data, a large amount of data may be stored in the form of database entries in a key-value storage database, so as to utilize the key-value storage database to more efficiently access the flow for management.

[0076] In an exemplary application scenario, the key-value storage database may be a Redis database, and the time window algorithm may be a sliding window algorithm. Based on the activation data, the server access traffic management system determines whether the user current limiting function is in the on state. If the user current limiting function is in the on state, the activation data is used to determine the effective current limiting rules from a variety of current limiting rules, and the current limiting data corresponding to the effective current limiting rules is generated according to the user information; the generated current limiting data is stored in the Redis database; a time window is set, and the sliding window algorithm and current limiting data implemented by the LUA script are used to determine the user access traffic parameters within the time window, and the user access traffic parameters are compared and analyzed with the management threshold to determine whether the user access traffic parameters exceed the management threshold to obtain a judgment result. The above judgment result can be used to determine the message processing method for the access request message.

[0077] Through the above steps S231 to S233, in the embodiment of the present application, by utilizing a key-value storage database and a time window algorithm implemented by a LUA script, the efficiency of determining whether access traffic needs to be restricted can be improved, thereby improving the efficiency of the traffic management method; through the combination of a time window algorithm and a variety of current limiting rules, the access traffic of the server can be finely controlled to ensure the reasonable allocation of server resources, thereby improving the accuracy of the traffic management method.

[0078] Optionally, the multiple flow limiting rules include technical direction flow limiting rules, and the user access flow parameter includes the current concurrent number of users; in the above step S233, using the time window algorithm and the flow limiting data to determine whether the user access flow parameter exceeds the management threshold may also include the following execution steps:

[0079] Step S2331, in response to determining that the technical direction current limiting rule is in an enabled state according to the enabling data, the current concurrent number of users is determined using a time window algorithm and the current limiting data;

[0080] Step S2332, compare the current concurrent number of users with the concurrent number threshold of users to determine whether the current concurrent number of users exceeds the concurrent number threshold of users.

[0081] The above-mentioned technical direction flow limiting rules (Transactions Per Second, referred to as TPS) may be flow limiting rules that are only related to flow control technology and have nothing to do with business usage scenarios. The above-mentioned current concurrent number of users may be the number of transactions executed by the user at the current time point.

[0082] In an exemplary application scenario, the server access traffic management system determines whether the technical direction current limiting rule is in the on state. If the technical direction current limiting rule is in the on state, the current limiting data and time window algorithm are used to determine the current concurrency of users within the set time window, and the current concurrency of users is compared and analyzed with the user concurrency threshold to determine whether the current concurrency of users exceeds the user concurrency threshold. As a result, the server access traffic management system can control the number of transactions executed by users at the current time point in the user dimension, so as to more accurately control the traffic, avoid the situation where individual users occupy too many server resources at the same time point due to high concurrency requests of individual users to the server, and can more reasonably allocate server resources, avoid malicious high concurrency requests causing server overload, and improve the stability and security of the server.

[0083] Through the above steps S2331 to S2332, in the embodiment of the present application, starting from the user dimension, the current concurrent number of users is limited, which can more reasonably allocate server resources at the same time point, more accurately control the access traffic, and improve the accuracy and security of the traffic control method.

[0084] Optionally, the multiple flow limiting rules include business direction flow limiting rules, and the user access flow parameters include the user's total flow of the day and the number of current visits per second of the user; in the above step S233, using the time window algorithm and the flow limiting data to determine whether the user access flow parameter exceeds the management threshold may also include the following execution steps:

[0085] Step S2333, in response to determining that the business direction flow limiting rule is in an enabled state according to the enabling data, using the time window algorithm and the flow limiting data, determining the total flow of the user on that day and the current number of visits per second of the user;

[0086] Step S2334, comparing the user's total daily traffic with the user's daily total traffic threshold to determine whether the user's total daily traffic exceeds the user's daily total traffic threshold;

[0087] Step S2335: compare the current number of user visits per second with the user interface visit number per second threshold to determine whether the current number of user visits per second exceeds the user interface visit number per second threshold.

[0088] The above-mentioned business direction current limiting rule may be a current limiting rule associated with a business usage scenario, and the business direction current limiting rule may be adjusted according to the actual business usage scenario.

[0089] The total daily traffic of the user may be the total number of times the user accesses the server on that day. The current number of visits per second of the user may be the number of times the user interface currently accesses the server per second.

[0090] In an exemplary application scenario, the server access traffic management system determines whether the business direction flow limiting rules are in the on state. If the business direction flow limiting rules are in the on state, the flow limiting data and time window algorithm are used to determine the total daily traffic of users and the current number of visits per second of users within the set time window.

[0091] Still in the above application scenario, the user's total daily traffic is compared and analyzed with the user's daily total traffic threshold to determine whether the user's total daily traffic exceeds the user's daily total traffic threshold; the user's current number of visits per second is compared and analyzed with the user interface's number of visits per second threshold to determine whether the user's current number of visits per second exceeds the user interface's number of visits per second threshold. As a result, the server access traffic management system can control the number of times a user visits the server on the same day from the user dimension, avoiding the situation where individual users excessively occupy server resources on the same day due to high-frequency requests to the server by individual users, and can more reasonably allocate server resources to all users, improving the accuracy of server resource management; the server access traffic management system can control the number of times the user interface currently accesses the server per second from the interface dimension, preventing attacks on the server by frequently sending requests to the same interface, and improving the security and stability of the server.

[0092] Through the above steps S2333 to S2335, in the embodiment of the present application, starting from the user dimension, the total daily traffic of the user is limited, which can more reasonably allocate server resources to all users and more accurately control the access traffic. Starting from the interface dimension, the current number of visits per second of the user is limited, which can not only improve the security and stability of the server and the security of the traffic control method, but also increase the control dimension of the traffic control method and improve the accuracy of the traffic control method.

[0093] Optionally, the user's daily total traffic threshold includes a first total threshold, a second total threshold and a third total threshold; the above traffic control method may also include the following execution steps:

[0094] Step A: when the current number of concurrent users exceeds the concurrent user threshold, determine that the access request message response fails; when the current number of concurrent users does not exceed the concurrent user threshold, execute step B;

[0095] Step B, when it is determined according to the enabling data that the business direction current limiting rule is not in an enabled state, determining that the access request message is responded successfully; when it is determined according to the enabling data that the business direction current limiting rule is in an enabled state, executing step C;

[0096] Step C, when the total flow of the user on that day does not exceed the first total flow threshold, determine that the access request message is successfully responded to; when the total flow of the user on that day exceeds the first total flow threshold, display a prompt icon corresponding to the total flow of the user on that day in the graphical user interface, and execute step D;

[0097] Step D, when the total flow of the user on that day does not exceed the second total flow threshold, determine that the access request message response is successful; when the total flow of the user on that day exceeds the second total flow threshold, execute step E;

[0098] Step E: when the current number of user accesses per second exceeds the user interface access number threshold per second, determine that the access request message response fails; when the current number of user accesses per second does not exceed the user interface access number threshold per second, trigger an alarm mechanism, reduce the user concurrent number threshold according to a preset ratio, and execute step F;

[0099] Step F: When the total traffic of the user on that day does not exceed the third total threshold, it is determined that the access request message response is successful; when the total traffic of the user on that day exceeds the third total threshold, it is determined that the access request message response fails.

[0100] The above-mentioned user daily total traffic threshold can be configured with different values ​​according to the user volume, historical traffic data, etc. The user daily total traffic threshold can include three thresholds, such as a total first threshold, a total second threshold, and a total third threshold. According to the user's total traffic on that day reaching the corresponding threshold in the user's daily total traffic threshold, the server traffic control system can adopt different access request processing methods. The above-mentioned user volume can be used to indicate the number of users used by the server, and the above-mentioned historical traffic data can be used to indicate the historical access traffic data information of the server.

[0101] The third total threshold may be a maximum number of times a user is allowed to access the server each day.

[0102] It should be noted that the third total amount threshold is greater than the second total amount threshold, and the second total amount threshold is greater than the first total amount threshold.

[0103] The above-mentioned reminder mark can be used to remind the user of the traffic usage of the day. The above-mentioned preset ratio can be used to adjust the user concurrent number threshold.

[0104] In an exemplary application scenario, Figure 3 is a schematic diagram of an optional flow control method according to an embodiment of the present application, such as Figure 3As shown, the above alarm mechanism can be to send an alarm email prompt to the user, the server access traffic management system receives the access request message sent by the user, extracts information from the access request message, and obtains user information (such as user identity, user name, user password, interface information corresponding to the access request message, IP address information); determines whether the current concurrent number of users exceeds the user concurrent number threshold (that is, determines whether the TPS limit is exceeded), if the current concurrent number of users exceeds the user concurrent number threshold, it is determined that the access request message response fails; if the current concurrent number of users does not exceed the user concurrent number threshold, it is further determined whether to enable the business direction flow limiting rule according to the activation data (that is, determines whether to enable the business flow limiting);

[0105] If the business direction flow limiting rule is not in the enabled state, it is determined that the access request message response is successful. If the business direction flow limiting rule is in the enabled state, it is further determined whether the total flow of the user on that day exceeds the first total flow threshold (that is, it is determined whether it exceeds the first total flow threshold);

[0106] If the total flow of the user on that day does not exceed the first total flow threshold, it is determined that the access request message response is successful. If the total flow of the user on that day exceeds the first total flow threshold, a red prompt mark is set for displaying the total flow of the user on that day in the front-end graphical user interface (i.e., the front-end real-time flow is marked in red), and it is further determined whether the total flow of the user on that day exceeds the second total flow threshold (i.e., it is determined whether it exceeds the second total flow threshold);

[0107] If the total traffic of the user on that day does not exceed the second total threshold, it is determined that the access request message response is successful. If the total traffic of the user on that day exceeds the second total threshold, it is further determined whether the current number of accesses per second of the user exceeds the threshold of the number of accesses per second of the user interface (i.e., whether it exceeds the interface limit);

[0108] If the user's current number of visits per second exceeds the user interface's number of visits per second threshold, it is determined that the access request message response has failed. If the user's current number of visits per second does not exceed the user interface's number of visits per second threshold, the alarm mechanism is triggered (i.e., an alarm email prompt is triggered), an alarm email prompt is sent to the user, the alarm email is displayed in the graphical user interface, the user concurrent number threshold is reduced according to a preset ratio (i.e., the TPS maximum value is reduced proportionally), and further judgment is made as to whether the user's total traffic on that day exceeds the third total threshold (i.e., judgment is made as to whether the third total threshold is exceeded);

[0109] If the user's total daily traffic does not exceed the third total threshold, it is determined that the access request message response is successful; if the user's total daily traffic exceeds the third total threshold, it is determined that the access request message response fails.

[0110] Through the above-mentioned traffic control method, in the embodiment of the present application, by setting the first total threshold, the second total threshold and the third total threshold, multi-level control of the user's total daily traffic can be achieved, which not only can control the traffic more accurately, but also can provide graded prompts to users according to the multiple levels corresponding to the total traffic used by the user on that day, which helps users to reasonably plan and use system resources and improves the accuracy of the traffic control method.

[0111] Optionally, in the above-mentioned traffic control method, the alarm mechanism includes: generating and sending an alarm message based on the management threshold, activation data, user information and flow limiting data.

[0112] The above-mentioned alarm information services include but are not limited to alarm emails, alarm text messages, etc.

[0113] Specifically, the server access traffic management system determines whether it is necessary to send an alarm message based on the management threshold, activation data, user information and flow limiting data. If an alarm message needs to be sent, an alarm message is generated based on the management threshold, activation data, user information and flow limiting data and sent to the user / manager's client.

[0114] Through the above-mentioned traffic control method, in the embodiment of the present application, by generating and sending alarm information, not only can the user be promptly reminded of the traffic usage and the user experience be improved, but it can also help managers to promptly discover and handle traffic anomalies, avoid business termination due to server overload, ensure the stability of the server, and improve the real-time performance of the traffic control method.

[0115] Optionally, the above traffic control method may further include the following execution steps:

[0116] Step S205, generating a monitoring log according to the management threshold, the enabling data, the user information and the flow limiting data, wherein the monitoring log at least includes the user access flow parameter;

[0117] Step S206: Display the monitoring log in real time in the graphical user interface.

[0118] The above monitoring logs can be used to display user access traffic parameters in a graphical user interface.

[0119] In an exemplary application scenario, the server access traffic management system collects and monitors user information and flow limiting data in real time, generates a monitoring log based on the management threshold, activation data, user information and flow limiting data, and displays it in real time in a graphical user interface; further, the server access traffic management system determines whether it is necessary to send an alarm message based on the management threshold, activation data, user information and flow limiting data. If an alarm message needs to be sent, an alarm message is generated based on the management threshold, activation data, user information and flow limiting data and sent to the user / manager's client.

[0120] In another exemplary application scenario, the server accesses the traffic management system to collect and monitor user information and flow limiting data in real time, and generates a monitoring log based on the management threshold, activation data, user information and flow limiting data, and displays it in real time in a graphical user interface; further, based on the management threshold, activation data, user information and flow limiting data in the monitoring log, an alarm analysis is performed to obtain an alarm analysis result; if there is an alarm keyword in the alarm analysis result, an alarm message is generated and sent to the user / manager's client.

[0121] Through the above-mentioned traffic control method, in the embodiment of the present application, by displaying the monitoring log in real time in the graphical user interface, the user's access to the traffic parameters can be visually monitored in real time, and the user's access to the traffic parameters can be promptly prompted, thereby improving the visibility and real-time performance of the traffic control method.

[0122] In an exemplary application scenario, Figure 4 is a schematic diagram of an optional flow control system according to an embodiment of the present application, such as Figure 4 As shown, the traffic control system includes a rule management module, a request receiving module, a multi-strategy traffic control module, and an alarm module. The above-mentioned user key-value storage database is a Redis database. In the steps of the above-mentioned rule management module, the flow limiting rule setting can be to store the management thresholds and enabled data corresponding to the various flow limiting rules in the Redis database. The data stored in the Redis database is shown in Table 1 (enabled data table), Table 2 (user current concurrent number control data table), Table 3 (user total daily traffic control data table) and Table 4 (user current access per second numerical control data table).

[0123] Table 1

[0124] ID username Enable Data 1 test Y

[0125] Table 2

[0126] ID username Concurrent user threshold Preset ratio 1 test 20 0.1

[0127] Table 3

[0128]

[0129] Table 4

[0130] ID username User Interface User interface limit per second 1 test A 500 2 test B 600

[0131] Still taking the above application scenario as an example, the steps in the above request receiving module to obtain user information can be to extract information from the access request message issued by the user to obtain user information. The above user information may include: the current time is 2024.07.01 10:00:00, the user name is test, the current number of concurrent users is 15, the total traffic of the user on that day is 25,000, the user interface is interface K, and the current number of user visits per second is 150.

[0132] Still taking the above application scenario as an example, the steps in the multi-strategy traffic control module to cache the flow limiting data can be to store "LIMIT_CONFIG_username" (i.e., "LIMIT_CONFIG_test") as the cache key (i.e., the unique identifier for obtaining cached data) in the Redis cache, and store the multiple flow limiting rules stored in the Redis database in the form of JSON serialized strings as cache values ​​(i.e., cached data) in the Redis cache;

[0133] Furthermore, use the cache key and, based on the user name, obtain the technical direction current limiting rule {"LIMIT_CONCURRENCY_CONFIG_test":{"User concurrency threshold":20,"Preset ratio":0.1}} in the cache value.

[0134] Still taking the above application scenario as an example, the steps in the multi-strategy traffic control module, the technical direction of current limiting can be to use the time window algorithm implemented by the LUA script to determine whether the current number of concurrent users exceeds the user concurrency threshold. The specific judgment logic is as follows: Determine whether the current number of concurrent users exceeds the user concurrency threshold. If the current number of concurrent users exceeds the user concurrency threshold, determine that the first return value of LUV is the current number of concurrent users; if the current number of concurrent users does not exceed the user concurrency threshold, use the INCR instruction in Redis to add 1 to the current number of concurrent users, and the first return value of LUV is the current number of concurrent users. The concurrency number + 1, according to the first return value of LUA, it is determined whether to execute the access request message. If the first return value of LUA exceeds the user concurrency threshold, it is determined that the access request message response failed; if the first return value of LUA does not exceed the user concurrency threshold, it is determined that the access request message response is successful, and the user's current concurrency number, user concurrency threshold, access request message response, user name, user's current concurrency number and the percentage of the user's concurrency threshold are recorded in the monitoring log; in addition, when the access request is completed, the LUA script is used to reduce the user's current concurrency number by 1 and update it to the Redis cache. For example, the user's current concurrency number is 15. At this time, the user sends an access request message, and the first return value of LUA is 16, which is less than the user's concurrency threshold of 20, then it is determined that the access request message response is successful. When the access request is completed, the LUA script is used to reduce the user's current concurrency number by 1, and the user's current concurrency number becomes 15, and the user's current concurrency number is updated to the Redis cache.

[0135] Still taking the above application scenario as an example, the steps in the multi-strategy traffic control module to determine whether to enable the business flow limiting rule can be to use the cache key, and according to the user name, determine from the Redis cache that the enabling data corresponding to the user name is {LIMIT_CONFIG_test":"Y"}, indicating that the enabling data is that the business flow limiting rule is in an enabled state.

[0136] Still taking the above application scenario as an example, the steps in the multi-strategy traffic control module, the business direction flow limiting and the steps in the alarm module, the alarm mechanism can be triggered by using the cache key to obtain the user daily total flow limiting rule in the business direction flow limiting rule in the cache value {"LIMIT_DAILY_DISCHARGE_CONFIG_test":{"Total first threshold":10000,"Total second threshold":20000,"Total third threshold":45000}}.

[0137] Furthermore, the time window algorithm implemented by the LUA script is used to determine whether the user's total daily traffic exceeds the user's daily total traffic threshold. The specific judgment logic is as follows: determine whether the user's total daily traffic exceeds the first threshold of the total amount. If the user's total daily traffic does not exceed the first threshold of the total amount, use the INCR instruction in Redis to add 1 to the user's total daily traffic, and determine that the second return value of LUV is the user's total daily traffic + 1.

[0138] Furthermore, if the total flow of the user on that day exceeds the first total flow threshold, a red prompt mark corresponding to the total flow of the user on that day is displayed in the graphical user interface, and it is determined whether the total flow of the user on that day exceeds the second total flow threshold;

[0139] Furthermore, if the user's total daily traffic does not exceed the second total threshold, the INCR instruction in Redis is used to add 1 to the user's total daily traffic, and the second LUV return value is determined to be the user's total daily traffic + 1.

[0140] Furthermore, if the user's total traffic on that day exceeds the second threshold of the total amount, the cache key is further used to obtain the user interface access number limiting rule {"LIMIT_QPS_CONFIG_test_A":"500"} in the business direction current limiting rule in the cache value, and it is determined whether the user's current number of accesses per second exceeds the user interface access number threshold per second. If the user's current number of accesses per second exceeds the user interface access number threshold per second, the LUV third return value is determined to be the user's current number of accesses per second.

[0141] Furthermore, if the user's current number of visits per second does not exceed the user interface's threshold number of visits per second, the INCR instruction in Redis is used to increase the user's current number of visits per second by 1, and the third return value of LUV is determined to be the user's current number of visits per second + 1.

[0142] Furthermore, whether to execute the access request message is determined according to the third return value of LUA. If the third return value of LUA exceeds the threshold of the number of accesses per second of the user interface, it is determined that the access request message response has failed; if the third return value of LUA does not exceed the threshold of the number of accesses per second of the user interface, the alarm mechanism is triggered, an alarm email is sent, the user concurrency threshold is lowered according to a preset ratio, and it is determined whether the user's total daily traffic exceeds the third total threshold. If the user's total daily traffic exceeds the third total threshold, the user's total daily traffic is returned; if the user's total daily traffic does not exceed the third total threshold, it is determined whether to execute the access request message according to the second return value. If the second return value of LUA does not exceed the user's daily total traffic threshold, it is determined that the access request message response is successful; if the second return value of LUA exceeds the user's daily total traffic threshold, it is determined that the access request message response has failed.

[0143] Still in the above application scenario, the user's total daily traffic is 25,000, and the user's current number of visits per second is 150. At this time, the user sends an access request message, and the LUA second return value is 25001. The second return value exceeds the first threshold of the total amount of 10,000. The red prompt icon corresponding to the user's total daily traffic is displayed in the graphical user interface. The second return value exceeds the second threshold of the total amount of 20,000. Then, it is determined whether the user's current number of visits per second exceeds the user interface access number threshold per second. The third return value is 151, and the third return value does not exceed the user interface access number threshold per second of 500. The alarm mechanism is triggered, an alarm email is sent, and the user concurrency threshold is lowered by the preset ratio of 0.1 in the Redis cache LIMIT_CONCURRENCY_CONFIG_test. The adjusted user concurrency threshold is 20-20*0.1=18, and the adjusted user concurrency threshold is updated to the Redis cache. Further, it is determined whether the second return value exceeds the third threshold of the total amount of 45,000. At this time, the second return value does not exceed the third threshold of the total amount, and it is determined that the access request message response is successful.

[0144] In the embodiment of the present application, the management threshold and activation data corresponding to the various current limiting rules are obtained; information is extracted from the access request message sent by the user to obtain user information; based on the time window algorithm, the activation data and the user information, the user access traffic parameter is monitored in real time to see whether it exceeds the management threshold; in response to the user access traffic parameter exceeding the management threshold, the alarm mechanism is triggered. As a result, the present application achieves the purpose of more flexible and accurate flow control based on various current limiting rules, time window algorithms and user information, thereby achieving the technical effect of improving the flexibility and accuracy of the flow control method, and further solving the technical problem of low flexibility and low accuracy of the flow control method in the related technology.

[0145] In this embodiment, a traffic management system is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, a "module" is a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0146] Figure 5 is a structural block diagram of a traffic management system according to an embodiment of the present application, such as Figure 5As shown, the system includes: a rule management module 501, which is used to dynamically set the management thresholds and activation data corresponding to various flow limiting rules; a request receiving module 502, which is used to extract information from the received access request message to obtain user information; a traffic control module 503, which is used to monitor in real time whether the user access traffic parameters exceed the management threshold based on the time window algorithm, activation data and user information; an alarm module 504, which is used to trigger the alarm mechanism when the user access traffic parameters exceed the management threshold.

[0147] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0148] According to another aspect of an embodiment of the present application, a computer program product is also provided, including a computer program, which implements any of the above-mentioned traffic control methods when executed by a processor.

[0149] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiment and its optional implementation manners, which will not be described in detail here.

[0150] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0151] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0152] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0153] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0154] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0155] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words contribute to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), mobile hard disk, disk or optical disk and other media that can store program codes.

[0156] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A flow control method, characterized in that: include: Obtain management thresholds and activation data corresponding to various current limiting rules; Extract information from the access request message sent by the user to obtain user information; Based on the time window algorithm, the activation data and the user information, real-time monitoring is performed to determine whether the user access traffic parameter exceeds the management threshold; In response to the user access traffic parameter exceeding the management threshold, an alarm mechanism is triggered.

2. The flow control method according to claim 1, characterized in that: Acquiring the management thresholds and the enabling data corresponding to the multiple current limiting rules further includes: Determine the management threshold and the activation data according to the management events triggered for the multiple flow limiting rules, wherein the management event is triggered by at least one of the following actions: adding action, deleting action, modifying action and querying action, the management threshold includes a user concurrent number threshold, a user interface access number per second threshold and a user daily total traffic threshold, and the activation data is used to characterize the multiple activation states corresponding to the multiple flow limiting rules respectively; The management threshold and the enabling data are synchronously stored in a key-value storage database.

3. The flow control method according to claim 2, characterized in that: Based on the time window algorithm, the activation data and the user information, real-time monitoring of whether the user access traffic parameter exceeds the management threshold includes: In response to determining that the user current limiting function is in an on state according to the activation data, generating current limiting data corresponding to the multiple current limiting rules by using the activation data and the user information; Storing the current limiting data in the key-value storage database; The time window algorithm and the flow limiting data are used to determine whether the user access traffic parameter exceeds the management threshold, wherein the time window algorithm is implemented using a LUA script.

4. The flow control method according to claim 3, characterized in that: The multiple flow limiting rules include technical direction flow limiting rules, and the user access traffic parameters include the current concurrent number of users; Determining whether the user access traffic parameter exceeds the management threshold by using the time window algorithm and the flow limiting data includes: In response to determining that the technical direction current limiting rule is in an enabled state according to the enabling data, determining the current concurrent number of users by using the time window algorithm and the current limiting data; The current concurrent number of users is compared with the concurrent number threshold of users to determine whether the current concurrent number of users exceeds the concurrent number threshold of users.

5. The flow control method according to claim 4, characterized in that: The multiple flow limiting rules include business direction flow limiting rules, the user access flow parameters include the user's total flow of the day and the user's current number of visits per second; using the time window algorithm and the flow limiting data to determine whether the user access flow parameter exceeds the management threshold includes: In response to determining that the business direction flow limiting rule is in an enabled state according to the enabling data, using the time window algorithm and the flow limiting data, determining the total flow of the user on that day and the current number of visits per second of the user; Compare the total traffic of the user on that day with the total traffic threshold of the user on that day to determine whether the total traffic of the user on that day exceeds the total traffic threshold of the user on that day; The current number of visits per second of the user is compared with the threshold number of visits per second of the user interface to determine whether the current number of visits per second of the user exceeds the threshold number of visits per second of the user interface.

6. The flow control method according to claim 5, characterized in that: The user's daily total traffic threshold includes a first total threshold, a second total threshold and a third total threshold; the traffic control method also includes: Step A, when the current concurrent number of users exceeds the concurrent number threshold of users, determining that the access request message response fails; when the current concurrent number of users does not exceed the concurrent number threshold of users, executing step B; Step B, when it is determined according to the enabling data that the business direction current limiting rule is not in the enabling state, determining that the access request message is responded successfully; when it is determined according to the enabling data that the business direction current limiting rule is in the enabling state, executing step C; Step C, when the total traffic of the user on that day does not exceed the first total volume threshold, determine that the access request message is successfully responded to; when the total traffic of the user on that day exceeds the first total volume threshold, display a prompt icon corresponding to the total traffic of the user on that day in the graphical user interface, and execute step D; Step D, when the total traffic of the user on that day does not exceed the second total threshold, determine that the access request message is successfully responded to; when the total traffic of the user on that day exceeds the second total threshold, execute step E; Step E, when the current number of accesses per second by the user exceeds the threshold number of accesses per second by the user interface, it is determined that the access request message response fails; when the current number of accesses per second by the user does not exceed the threshold number of accesses per second by the user interface, the alarm mechanism is triggered, the user concurrent number threshold is reduced according to a preset ratio, and step F is executed; Step F, when the total traffic of the user on that day does not exceed the third threshold of the total amount, determine that the access request message response is successful; when the total traffic of the user on that day exceeds the third threshold of the total amount, determine that the access request message response fails.

7. The flow control method according to claim 3, characterized in that: The alarm mechanism includes: generating and sending an alarm message according to the management threshold, the enabling data, the user information and the current limiting data.

8. The flow control method according to any one of claims 3 to 7, characterized in that: The flow control method further includes: The management threshold, the enabling data, the user information and the flow limiting data generate a monitoring log, wherein the monitoring log at least includes the user access flow parameter; The monitoring log is displayed in real time in a graphical user interface.

9. A flow control system, characterized in that: include: The rule management module is used to dynamically set the management thresholds and activation data corresponding to various current limiting rules; A request receiving module is used to extract information from the received access request message to obtain user information; A traffic control module, used to monitor in real time whether the user access traffic parameter exceeds the management threshold based on a time window algorithm, the activation data and the user information; The alarm module is used to trigger an alarm mechanism when the user access traffic parameter exceeds the management threshold.

10. A computer program product, characterized in that It comprises a computer program, which implements the traffic control method of any one of claims 1 to 8 when executed by a processor.