Transaction traffic limiting method and related device

Through the transaction and flow restriction method that updates the current limit ratio in real time, the server downtime caused by high access traffic in Internet application systems is solved, and efficient resource utilization and user experience are achieved.

CN119449731APending Publication Date: 2025-02-14AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411645867.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In Internet application systems, malicious attacks or high access traffic may cause server downtime, affect user experience and cause operational losses.

Method used

Provide a transaction current limiting method, by judging whether the target transaction triggers the current limiting process, determine the estimated traffic value based on the current transaction flow value and the current limiting ratio value after the current limiting process, if the estimated traffic value is not less than the preset current limiting. The threshold value is updated and the current limiting ratio value is determined based on the updated current limiting ratio value.

Benefits of technology

It realizes real-time update of the current limit ratio during the current limit control process, ensures that the transaction traffic is within the set range, avoids server downtime, makes full use of service resources, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449731A_ABST
    Figure CN119449731A_ABST
Patent Text Reader

Abstract

The invention discloses a transaction flow limiting method and a related device, relates to the field of flow control, and can determine an estimated flow value after flow limiting recovery according to a current transaction flow value and a current flow limiting proportion value after flow limiting processing when judging that a target transaction has triggered flow limiting processing at present. Wherein the current traffic limiting proportion value is a traffic limiting proportion value preset by the target transaction. If the estimated flow value is not smaller than a preset flow limiting threshold value, an updated flow limiting proportion value is determined according to the estimated flow value and a target transaction flow value, and the target transaction flow value is a preset maximum transaction flow value allowed after flow limiting processing is conducted on the target transaction. And finally, determining the current-limiting transaction according to the updated current-limiting proportion value, and further carrying out current-limiting processing on the real-time transaction. According to the transaction flow limiting method, the flow limiting proportion is updated in real time, so that the flow-limited transaction flow value is ensured to be within the range, the service resource utilization rate is improved, and meanwhile, the service system is prevented from being crashed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of flow control, and in particular to a transaction flow limiting method and related devices. Background Art

[0002] With the rapid development of the Internet, various application systems have been integrated into our daily lives and become an indispensable part of our daily lives. However, in some cases, such as malicious attacks, certain activities will cause excessive system access traffic, resulting in jams, or even downtime, making it impossible to use normally, which not only affects the user experience, but also causes immeasurable losses to the operating unit. Summary of the invention

[0003] In view of the above problems, this application provides a transaction flow limiting method and related devices to achieve the purpose of improving resource utilization and avoiding server downtime. The specific solution is as follows:

[0004] The first aspect of the present application provides a transaction flow limiting method, comprising:

[0005] Determine whether the target transaction has triggered the current limit process;

[0006] If yes, then determine the estimated traffic value after the flow restriction is restored according to the current transaction flow value after the flow restriction process and the current flow restriction ratio value, wherein the current flow restriction ratio value is the flow restriction ratio value preset for the target transaction;

[0007] If the estimated traffic value is not less than the preset traffic limiting threshold, an updated traffic limiting ratio value is determined according to the estimated traffic value and the target transaction traffic value, wherein the target transaction traffic value is a preset maximum transaction traffic value allowed after the target transaction is subjected to traffic limiting processing;

[0008] The current limiting transaction is determined according to the updated current limiting ratio value.

[0009] In a possible implementation, determining the current limiting transaction according to the updated current limiting ratio value includes:

[0010] Determine the received code of the current transaction according to the updated current limiting ratio value and the preset current limiting ratio accuracy value;

[0011] If the code is within the updated current limiting ratio value range of the target transaction, the current transaction is stopped and a corresponding current limiting prompt is returned.

[0012] In a possible implementation, the transaction flow limiting method further includes:

[0013] If the estimated flow value is less than the preset flow limiting threshold, it is determined whether to cancel the flow limiting process for the target transaction according to the estimated flow value and the preset recovery threshold.

[0014] In a possible implementation, the determining whether to cancel the flow limiting process for the target transaction according to the estimated flow value and the preset recovery threshold value includes:

[0015] If the estimated traffic value is less than the preset recovery threshold, the flow limiting process for the target transaction is canceled.

[0016] In a possible implementation, determining the estimated traffic value after the flow limiting is restored according to the current transaction flow value after the flow limiting process and the current flow limiting ratio value includes:

[0017] The current transaction flow value is divided by the current flow limiting ratio value to obtain the estimated flow value.

[0018] In a possible implementation, determining an updated flow limiting ratio value according to the estimated flow value and the target transaction flow value includes:

[0019] The target transaction flow value is divided by the estimated flow value to obtain the updated flow limiting ratio value.

[0020] A second aspect of the present application provides a transaction flow limiting device, comprising:

[0021] The current limiting judgment module is used to determine whether the target transaction has triggered the current limiting process;

[0022] A flow estimation module is used to determine an estimated flow value after flow limitation is restored based on the current transaction flow value after flow limitation and the current flow limitation ratio value when the flow limitation judgment module determines that the target transaction has currently triggered flow limitation processing, wherein the current flow limitation ratio value is a flow limitation ratio value preset for the target transaction;

[0023] a ratio updating module, configured to determine an updated flow limiting ratio value according to the estimated flow value and a target transaction flow value if the estimated flow value is not less than a preset flow limiting threshold value, wherein the target transaction flow value is a preset maximum transaction flow value allowed after flow limiting processing is performed on the target transaction; and

[0024] The transaction flow limiting module is used to determine the flow limiting transaction according to the updated flow limiting ratio value.

[0025] The third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the transaction flow limiting method of the first aspect or any implementation of the first aspect.

[0026] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0027] The memory is used to store computer programs;

[0028] The processor is used to execute the computer program so that the electronic device can implement the transaction flow limiting method of the above-mentioned first aspect or any implementation method of the first aspect.

[0029] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the transaction flow limiting method of the above-mentioned first aspect or any implementation of the first aspect.

[0030] By means of the above technical scheme, the transaction flow limiting method provided by the present application, when it is determined that the target transaction has currently triggered the flow limiting process, can determine the estimated flow value after the flow limiting is restored according to the current transaction flow value after the flow limiting process and the current flow limiting ratio value, wherein the current flow limiting ratio value is the flow limiting ratio value preset for the target transaction. If the estimated flow value is not less than the preset flow limiting threshold, the updated flow limiting ratio value is determined according to the estimated flow value and the target transaction flow value, wherein the target transaction flow value is the maximum transaction flow value allowed after the flow limiting process is performed on the target transaction in advance. Finally, the flow limiting transaction is determined according to the updated flow limiting ratio value, and then the real-time transaction is flow limited. The transaction flow limiting method updates the flow limiting ratio in real time by comprehensively estimating the flow and the maximum transaction flow value allowed after the flow limiting process is performed on the target transaction during the flow limiting control process, so as to ensure that the flow limiting transaction flow value is within the set range, while making full use of service resources to provide services to users, and avoiding service system downtime. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0032] Figure 1 A structural diagram of a transaction current limiting system provided for this application;

[0033] Figure 2 A structural diagram of a terminal provided for this application;

[0034] Figure 3 A structural diagram of a server provided for this application;

[0035] Figure 4 A flow chart of a transaction flow limiting method provided for this application;

[0036] Figure 5 A diagram of the interaction process of the processing units in the server provided by this application;

[0037] Figure 6 A processing flow chart of the monitoring unit and the intelligent processing unit provided in this application;

[0038] Figure 7 A control flow chart of the current limiting unit provided in this application;

[0039] Figure 8 A structural diagram of a transaction current limiting device provided in this application;

[0040] Fig. 9 This is a structural diagram of the electronic device provided for this application. DETAILED DESCRIPTION

[0041] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0042] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0043] 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 need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0044] See also Figure 1 , Figure 1 A schematic diagram of a transaction current limiting system architecture is shown. The system may include a terminal 100 and a server 200. The server 200 may include one or more servers ( Figure 1 In the example, a server is included, and the server 200 can provide the method provided in the embodiment of the present application for one or more terminals.

[0045] Among them, an application for setting transaction flow limiting parameters can be installed on the terminal 100. The above application and web page can provide an interface. The terminal 100 can receive relevant parameters entered by the user on the transaction flow limiting parameter setting interface, and send the above parameters to the server 200. The server 200 can obtain processing results based on the received parameters and return the processing results to the terminal 100.

[0046] It should be understood that in some optional implementations, the terminal 100 can also complete the action of obtaining the processing result based on the received parameters by itself without the cooperation of the server, and the embodiments of the present application are not limited to this.

[0047] Next describe Figure 1 The product form of the mid-terminal 100;

[0048] The terminal 100 in the embodiment of the present application can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., and the embodiment of the present application does not impose any limitation on this.

[0049] Figure 2 An optional hardware structure diagram of the terminal 100 is shown.

[0050] refer to Figure 2 As shown, the terminal 100 may include a radio frequency unit 110, a memory 120, an input unit 130, a display unit 140, a camera 150 (optional), an audio circuit 160 (optional), a speaker 161 (optional), a microphone 162 (optional), an earphone jack 163 (optional), a processor 170, an external interface 180, a power supply 190 and other components. Those skilled in the art will appreciate that Figure 2 These are merely examples of terminals or multi-function devices and do not constitute limitations on the terminals or multi-function devices, which may include more or fewer components than those shown in the figures, or combinations of certain components, or different components.

[0051] The input unit 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the portable multifunctional device. Specifically, the input unit 130 may include a touch screen 131 (optional) and / or other input devices 132. The touch screen 131 can collect the user's touch operations on or near it (such as the user's operation on or near the touch screen using any suitable object such as fingers, joints, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch screen can detect the user's touch action on the touch screen, convert the touch action into a touch signal and send it to the processor 170, and can receive and execute the command sent by the processor 170; the touch signal at least includes the touch point coordinate information. The touch screen 131 can provide an input interface and an output interface between the terminal 100 and the user. In addition, the touch screen can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch screen 131, the input unit 130 can also include other input devices. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.

[0052] Among them, the input device 132 can receive input data and the like.

[0053] The display unit 140 may be used to display information input by the user or provided to the user, various menus of the terminal 100, interactive interfaces, file display and / or playback of any multimedia file. In an embodiment of the present application, the display unit 140 may be used to display an interface of a current limiting result, etc.

[0054] The memory 120 can be used to store instructions and data. The memory 120 can mainly include an instruction storage area and a data storage area. The data storage area can store various data, such as multimedia files, texts, etc.; the instruction storage area can store software units such as operating systems, applications, instructions required for at least one function, or their subsets and extensions. It can also include a non-volatile random access memory; provide the processor 170 with hardware, software and data resources including management of computing and processing equipment, and support control software and applications. It is also used for the storage of multimedia files, and the storage of running programs and applications.

[0055] The processor 170 is the control center of the terminal 100. It uses various interfaces and lines to connect various parts of the entire terminal 100. By running or executing instructions stored in the memory 120 and calling data stored in the memory 120, it executes various functions of the terminal 100 and processes data, thereby controlling the terminal device as a whole. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 170. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips. The processor 170 may also be used to generate corresponding operation control signals, send them to corresponding components of the computing and processing device, read and process data in the software, especially read and process data and programs in the memory 120, so that each functional module therein performs corresponding functions, thereby controlling the corresponding components to act according to the requirements of the instructions.

[0056] The radio frequency unit 110 (optional) can be used for receiving and sending information or receiving and sending signals during a call, for example, after receiving the downlink information of the base station, it is sent to the processor 170 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the radio frequency unit 110 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.

[0057] In this embodiment of the present application, the radio frequency unit 110 can send transaction current limiting parameter data to the server 200 and receive the current limiting processing result sent by the server 200.

[0058] It should be understood that the radio frequency unit 110 is optional and can be replaced by other communication interfaces, such as a network port.

[0059] The terminal 100 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 170 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.

[0060] The terminal 100 further includes an external interface 180 , which may be a standard Micro USB interface or a multi-pin connector, and may be used to connect the terminal 100 to communicate with other devices, or to connect a charger to charge the terminal 100 .

[0061] Although not shown, the terminal 100 may also include a flashlight, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which are not described in detail here. Some or all of the methods described below may be applied in the following embodiments. Figure 2 In the terminal 100 shown.

[0062] Next describe Figure 1 The product form of the server 200;

[0063] Figure 3 A structural diagram of a server 200 is provided, such as Figure 3 As shown, the server 200 includes a bus 201, a processor 202, a communication interface 203, and a memory 204. The processor 202, the memory 204, and the communication interface 203 communicate with each other via the bus 201.

[0064] The bus 201 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0065] The processor 202 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0066] The memory 204 may include a volatile memory, such as a random access memory (RAM). The memory 204 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0067] Among them, the memory 204 can be used to store software codes related to the transaction flow limiting method, the processor 202 can execute the steps of the transaction flow limiting method of the chip, and can also schedule other units to implement corresponding functions.

[0068] It should be understood that the above-mentioned terminal 100 and server 200 can be centralized or distributed devices, and the processors in the above-mentioned terminal 100 and server 200 (such as processor 170 and processor 202) can be hardware circuits (such as application specific integrated circuit (ASIC), field-programmable gate array (FPGA), general-purpose processor, digital signal processor (DSP), microprocessor or microcontroller, etc.), or a combination of these hardware circuits. For example, the processor can be a hardware system with an instruction execution function, such as a CPU, DSP, etc., or a hardware system without an instruction execution function, such as an ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without an instruction execution function and hardware systems with an instruction execution function.

[0069] At present, most application systems will set a flow limit threshold. When the system access traffic reaches the threshold, the predetermined flow limit rules will be triggered to limit the system traffic at a fixed ratio. However, canceling the flow limit or adjusting the flow limit ratio requires human intervention. This one-size-fits-all flow limit method will not only waste resources, but also affect user experience.

[0070] In order to solve the above problems, the present application embodiment provides a transaction flow limiting method. The transaction flow limiting method of the present application embodiment is described in detail below with reference to the accompanying drawings.

[0071] Reference Figure 4 , Figure 4 A flow chart of a transaction flow limiting method provided in an embodiment of the present application is shown as follows: Figure 4 As shown, a transaction flow limiting method provided in an embodiment of the present application may include steps 401 to 404, and these steps are described in detail below.

[0072] 401. Determine whether the target transaction has currently triggered the current limiting process.

[0073] Specifically, the target transaction here can be a transaction that needs to be processed in the daily operation of the bank, such as a transfer, remittance, etc. The transaction flow (unit: transaction) of the target transaction in a unit time can be counted, and the statistical result can be compared with the preset flow limit threshold to determine whether the flow limit processing of the target transaction is triggered.

[0074] For example, for remittance transactions, if it is detected that the transaction volume of the remittance transactions in a certain application is 55,000 transactions per minute, which exceeds the flow limit threshold of 50,000 transactions / minute, flow limit processing can be triggered.

[0075] It is understandable that those skilled in the art may also use other methods to determine whether to trigger the current limiting process, which is not limited here.

[0076] 402. If yes, determine the estimated traffic value after the flow limiting is restored according to the current transaction flow value after the flow limiting process and the current flow limiting ratio value, where the current flow limiting ratio value is the flow limiting ratio value preset for the target transaction.

[0077] Specifically, after determining to start the flow limiting process, the estimated flow value after the actual flow is restored is calculated based on the current transaction flow value and the current flow limiting ratio value obtained in real time. Specifically, the current transaction flow value can be divided by the current flow limiting ratio value to obtain the estimated flow value.

[0078] 403. If the estimated traffic value is not less than the preset flow limiting threshold, an updated flow limiting ratio value is determined based on the estimated traffic value and the target transaction traffic value. The target transaction traffic value is a preset maximum transaction traffic value allowed after flow limiting processing is performed on the target transaction.

[0079] Specifically, when the estimated flow is not less than the preset flow limiting threshold, that is, when it is determined that the estimated flow still triggers flow limiting processing, the flow limiting ratio value of the estimated flow is re-determined. Specifically, the target transaction flow value is divided by the estimated flow value to obtain the updated flow limiting ratio value. Therefore, when the updated flow limiting ratio value is used to limit the real-time transaction flow, the number of transactions to be limited can be maintained at the flow limiting ratio value before the update, and the determined flow limiting remains consistent.

[0080] 404. Determine the current limiting transaction according to the updated current limiting ratio value.

[0081] Specifically, the received code of the current transaction can be determined according to the updated current limiting ratio value and the preset current limiting ratio precision value. If the code is within the updated current limiting ratio value range of the target transaction, the current transaction is stopped and the corresponding current limiting prompt is returned.

[0082] The preset current limiting ratio precision value may include: none, one decimal place, two decimal places and other precision values. When actually limiting the current, the updated current limiting ratio value and current limiting ratio precision can be combined to generate a code of corresponding precision for each received transaction. If the code is within the current limiting ratio range, the transaction is limited and the corresponding current limiting prompt is returned. If the code is not within the current limiting ratio range, the transaction can be executed normally in the application system.

[0083] This transaction flow limiting method adjusts the flow limiting ratio used in the flow limiting control process in real time according to the current real-time transaction flow. Compared with the traditional one-size-fits-all flow control mode, it can provide better protection for the application system, while making full use of the existing resources of the system and avoiding the waste of service resources.

[0084] In a possible implementation, when the estimated flow value is less than the preset flow limit threshold, it can be determined whether to cancel the flow limit processing of the target transaction according to the estimated flow value and the preset recovery threshold. If the estimated flow value is less than the preset recovery threshold, the flow limit processing of the target transaction can be canceled.

[0085] The preset recovery threshold may be the same as the current limiting threshold or may be smaller than the current limiting threshold. The specific value may be set as required and will not be described in detail here.

[0086] As a specific application of the above embodiment, when setting the transaction flow limiting method in the server, refer to Figure 5 The system may specifically include: a current limiting configuration unit, an intelligent processing unit, a monitoring unit and a current limiting unit.

[0087] Current limiting configuration unit: mainly includes current limiting transaction configurator, current limiting rule configurator, monitoring time configurator, and warning information configurator. The current limiting transaction configurator is used to configure the transactions that need to be limited and the corresponding current limiting threshold (in units) and recovery threshold (in units); the current limiting rule configurator is used to configure the target number of transactions that can access the system normally after current limiting (in units) and the current limiting ratio accuracy (none, one decimal place, two decimal places); the monitoring time is used to configure the monitoring frequency (in units) which will affect the update frequency of the current limiting ratio; the warning information configurator is used to configure the warning information content and the information of the person who receives the warning.

[0088] Monitoring unit: mainly performs real-time statistics on the traffic involved in the transaction based on the flow-limiting transaction information and monitoring time configured by the user, and sends the statistical results to the intelligent processing unit.

[0089] Intelligent processing unit: mainly includes real-time traffic restorer, flow limiting ratio calculator, flow limiting restorer, and alarm. The real-time traffic restorer will receive the statistical results provided by the monitoring and alarm unit, and determine whether the corresponding transaction has been processed by flow limiting. If it has been processed by flow limiting, it will restore the actual traffic based on the current transaction traffic combined with the flow limiting ratio to obtain the estimated traffic (current transaction traffic / flow limiting ratio = estimated traffic); the flow limiting ratio calculator will calculate the flow limiting ratio based on the estimated traffic combined with the configured flow limiting rules (target number of transactions / estimated traffic = flow limiting ratio), and after obtaining the flow limiting ratio, it will start the flow limiting or update the current flow limiting ratio. If the flow limiting is newly started, it will trigger the alarm to send an alarm message to the corresponding receiving personnel; the flow limiting restorer will determine whether to cancel the flow limiting based on the estimated traffic combined with the recovery threshold. If the flow limiting is cancelled, it will trigger the alarm to send a recovery message to the corresponding receiving personnel.

[0090] Current limiting unit: Combined with the current current limiting ratio and current limiting ratio accuracy, it generates a code of corresponding accuracy for each transaction received by the system. If the code is within the current limiting ratio range, the transaction is limited and a current limiting prompt is returned. If the code exceeds the current limiting ratio range, the transaction can access the application system normally.

[0091] Specifically, the processing flow of the monitoring unit and the intelligent processing unit can refer to Figure 6 As shown in the figure, after the flow limiting is started, the real-time flow statistics are performed by reading the flow-limited transactions and monitoring the timeliness. When the transaction flow limiting is determined, the estimated flow is calculated. When the estimated flow is still greater than the flow limiting threshold, the flow limiting ratio is calculated. When the flow limiting monitoring of the current transaction is not started for the first time, the flow limiting ratio is updated. When the flow limiting monitoring of the current transaction is started for the first time, the flow limiting process can be directly triggered and an early warning message can be sent.

[0092] When the estimated flow rate is less than the recovery threshold, the flow limit can be cancelled and the corresponding recovery information can be sent.

[0093] The processing flow in the current limiting unit refers to Figure 7 As shown, when it is determined that the transaction is limited, the limiting ratio and the limiting ratio accuracy are obtained, and the corresponding accuracy code is generated according to the order of the current transaction. By judging whether the accuracy code is within the range of the limiting ratio, it is determined whether to limit the flow.

[0094] The above-mentioned current limiting method realizes automatic triggering of flow control, real-time adjustment of flow control ratio, automatic recovery of flow control, and early warning message reminder. It can provide strong protection when the application system traffic is too large, effectively improve the stability and robustness of the application system, and greatly reduce the operation and maintenance workload of system maintenance personnel.

[0095] A transaction flow limiting method provided in an embodiment of the present application is introduced above, and a device for executing the transaction flow limiting method is introduced below.

[0096] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of a transaction current limiting device provided in an embodiment of the present application. Figure 8 As shown, the transaction current limiting device includes:

[0097] The current limiting judgment module is used to determine whether the target transaction has triggered the current limiting process;

[0098] A flow estimation module is used to determine an estimated flow value after flow limitation is restored based on the current transaction flow value after flow limitation and the current flow limitation ratio value when the flow limitation judgment module determines that the target transaction has currently triggered flow limitation processing, wherein the current flow limitation ratio value is a flow limitation ratio value preset for the target transaction;

[0099] a ratio updating module, configured to determine an updated flow limiting ratio value according to the estimated flow value and a target transaction flow value if the estimated flow value is not less than a preset flow limiting threshold value, wherein the target transaction flow value is a preset maximum transaction flow value allowed after flow limiting processing is performed on the target transaction; and

[0100] The transaction flow limiting module is used to determine the flow limiting transaction according to the updated flow limiting ratio value.

[0101] In a possible implementation, the process of determining the flow-limited transaction according to the updated flow-limited ratio value by the transaction flow-limiting module includes:

[0102] Determine the received code of the current transaction according to the updated current limiting ratio value and the preset current limiting ratio accuracy value;

[0103] If the code is within the updated current limiting ratio value range of the target transaction, the current transaction is stopped and a corresponding current limiting prompt is returned.

[0104] In a possible implementation, the traffic estimation module is further used to determine whether to cancel the flow limiting processing of the target transaction according to the estimated traffic value and the preset recovery threshold if the estimated traffic value is less than the preset flow limiting threshold.

[0105] In a possible implementation, the traffic estimation module is further configured to determine whether to cancel the flow limiting process for the target transaction according to the estimated traffic value and a preset recovery threshold, including:

[0106] If the estimated traffic value is less than the preset recovery threshold, the flow limiting process for the target transaction is canceled.

[0107] In a possible implementation, the process of the traffic estimation module determining the estimated traffic value after the flow limiting is restored according to the current transaction flow value after the flow limiting process and the current flow limiting ratio value includes:

[0108] The current transaction flow value is divided by the current flow limiting ratio value to obtain the estimated flow value.

[0109] In a possible implementation, the process of the ratio updating module determining the updated flow limiting ratio value according to the estimated flow value and the target transaction flow value includes:

[0110] The target transaction flow value is divided by the estimated flow value to obtain the updated flow limiting ratio value.

[0111] The present application also provides an electronic device in an embodiment. Fig. 9 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Fig. 9 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0112] like Fig. 9As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0113] Typically, the following devices may be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a memory card, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0114] Also provided in an embodiment of the present application is a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any transaction flow limiting method provided in an embodiment of the present application.

[0115] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any transaction flow limiting method provided in the embodiment of the present application.

[0116] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0117] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0118] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0119] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. A transaction flow limiting method, characterized in that: include: Determine whether the target transaction has triggered the current limit process; If yes, then determine the estimated traffic value after the flow restriction is restored according to the current transaction flow value after the flow restriction process and the current flow restriction ratio value, wherein the current flow restriction ratio value is the flow restriction ratio value preset for the target transaction; If the estimated traffic value is not less than the preset traffic limiting threshold, an updated traffic limiting ratio value is determined according to the estimated traffic value and the target transaction traffic value, wherein the target transaction traffic value is a preset maximum transaction traffic value allowed after the target transaction is subjected to traffic limiting processing; The current limiting transaction is determined according to the updated current limiting ratio value.

2. The transaction flow limiting method according to claim 1, characterized in that: The determining of the current limiting transaction according to the updated current limiting ratio value includes: Determine the received code of the current transaction according to the updated current limiting ratio value and the preset current limiting ratio accuracy value; If the code is within the updated current limiting ratio value range of the target transaction, the current transaction is stopped and a corresponding current limiting prompt is returned.

3. The transaction flow limiting method according to claim 1, characterized in that: Also includes: If the estimated flow value is less than the preset flow limiting threshold, it is determined whether to cancel the flow limiting process for the target transaction according to the estimated flow value and the preset recovery threshold.

4. The transaction flow limiting method according to claim 3 is characterized in that: The determining whether to cancel the flow limiting process for the target transaction according to the estimated flow value and the preset recovery threshold value includes: If the estimated traffic value is less than the preset recovery threshold, the flow limiting process for the target transaction is canceled.

5. The transaction flow limiting method according to claim 1, characterized in that: The step of determining the estimated flow value after flow restriction recovery based on the current transaction flow value after flow restriction processing and the current flow restriction ratio value comprises: The current transaction flow value is divided by the current flow limiting ratio value to obtain the estimated flow value.

6. The transaction flow limiting method according to claim 1, characterized in that: The step of determining an updated flow limiting ratio value according to the estimated flow value and the target transaction flow value includes: The target transaction flow value is divided by the estimated flow value to obtain the updated flow limiting ratio value.

7. A transaction current limiting device, characterized in that: include: The current limiting judgment module is used to determine whether the target transaction has triggered the current limiting process; A flow estimation module is used to determine an estimated flow value after flow limitation is restored based on the current transaction flow value after flow limitation and the current flow limitation ratio value when the flow limitation judgment module determines that the target transaction has currently triggered flow limitation processing, wherein the current flow limitation ratio value is a flow limitation ratio value preset for the target transaction; A ratio updating module, configured to determine an updated flow limiting ratio value according to the estimated flow value and a target transaction flow value if the estimated flow value is not less than a preset flow limiting threshold value, wherein the target transaction flow value is a preset maximum transaction flow value allowed after flow limiting processing is performed on the target transaction; as well as The transaction flow limiting module is used to determine the flow limiting transaction according to the updated flow limiting ratio value.

8. A computer program product, characterized in that It includes computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the transaction flow limiting method as described in any one of claims 1 to 6.

9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the transaction flow limiting method as described in any one of claims 1 to 6.

10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the transaction flow limiting method as described in any one of claims 1 to 6.