Data flow limiting method, computer readable storage medium and electronic equipment
By analyzing current limiting requirements and building current limiting logic and filtering links, the problem of low current limiting accuracy of financial servers is solved, precise data flow limiting of financial servers is achieved, and the smooth operation of the server and user experience is improved.
Patent Information
- Application Number
- CN202510095425.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-05-09
AI Technical Summary
In the prior art, the accuracy of data limiting objects of financial servers is low, resulting in the server being prone to crash during peak periods.
By analyzing the current limiting requirements, the current limiting logic and current limiting screening link of the current limiting object are constructed, and the current limiting object and its current limiting types and conditions are accurately determined, thereby achieving accurate data current limiting of the financial server.
It improves the smooth operation of financial servers, reduces server load, solves the problem of low current limit accuracy, and improves user experience.
Smart Images

Figure CN119966905A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of Internet technology and financial technology, and more specifically, to a data flow limiting method, a computer-readable storage medium, and an electronic device. Background Art
[0002] With the rapid development of the Internet, the financial industry has also improved the efficiency of serving users through the Internet. However, due to the limitation of the data traffic carried by the server, the server may crash during the peak period of business handling. Therefore, it is necessary to limit the flow of data accessed by the server to ensure the smooth operation of the server. However, the accuracy of data flow limiting for the flow limiting objects of the financial service server in the related technology is low.
[0003] With regard to the technical problem that the data flow limiting accuracy of the flow limiting objects of the financial service server in the related technology is low, no effective solution has been proposed yet. Summary of the invention
[0004] The main purpose of the present application is to provide a data flow limiting method to solve the technical problem of low accuracy in data flow limiting on the flow limiting object of the financial service server in the related art.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a data flow limiting method is provided. The method includes: in response to receiving a flow limiting demand, parsing the flow limiting demand, obtaining the flow limiting object involved in the flow limiting demand, and the flow limiting type and flow limiting condition of the flow limiting object, wherein the flow limiting type is used to indicate the different dimensions of flow limiting for the flow limiting object, and the flow limiting condition is used to indicate the conditions that need to be met for flow limiting for the flow limiting object; based on the flow limiting type and the flow limiting condition, constructing the flow limiting logic of the flow limiting object, wherein the flow limiting logic is used to describe the flow limiting behavior of the flow limiting object; based on the flow limiting logic and the flow limiting type, constructing the flow limiting screening link of the flow limiting object, wherein the flow limiting screening link is applied to the flow limiting scenario of the flow limiting object.
[0006] Furthermore, based on the current limiting logic and the current limiting type, a current limiting filtering link of the current limiting object is constructed, including: based on the current limiting logic and the current limiting type, a current limiting rule of the current limiting logic is constructed, wherein the current limiting rule is used to describe the implementation method of the current limiting behavior; based on the current limiting logic and the current limiting rule, a current limiting filtering link is generated.
[0007] Furthermore, based on the current limiting logic and the current limiting type, current limiting rules of the current limiting logic are constructed, including: parsing the active current limiting trigger conditions and passive current limiting trigger conditions in the current limiting logic, wherein the active current limiting trigger conditions are used to describe the current limiting trigger conditions automatically detected in the current limiting logic, and the passive current limiting trigger conditions are used to describe the current limiting trigger conditions implemented according to the current limiting instructions; based on the current limiting type, the active current limiting trigger conditions and the passive current limiting trigger conditions, current limiting rules are constructed.
[0008] Furthermore, based on the current limiting type, active current limiting trigger conditions and passive current limiting trigger conditions, current limiting rules are constructed, including: constructing a first current limiting rule based on the current limiting type and the active current limiting trigger conditions, wherein the first current limiting rule is used to guide the active current limiting of the current limiting object; constructing a second current limiting rule based on the current limiting type and the passive current limiting trigger conditions, wherein the second current limiting rule is used to guide the passive current limiting of the current limiting object; constructing current limiting rules based on the first current limiting rule and the second current limiting rule.
[0009] Furthermore, a first current limiting rule is constructed based on the current limiting type and the active current limiting trigger condition, including: determining a preset current limiting threshold and a current limiting operation mode corresponding to the active current limiting trigger condition based on the current limiting type; and constructing the first current limiting rule based on the preset current limiting threshold and the current limiting operation mode.
[0010] Furthermore, constructing a second current limiting rule based on the current limiting type and the passive current limiting trigger condition includes: determining a trigger instruction corresponding to the passive current limiting trigger condition based on the current limiting type; and constructing the second current limiting rule based on the trigger instruction.
[0011] Furthermore, based on the current limiting logic and the current limiting rules, a current limiting screening link is generated, including: in response to the current limiting logic containing multiple sub-current limiting logics, and the current limiting rules containing multiple sub-current limiting rules, based on the association relationship between the multiple sub-current limiting logics, the multiple sub-current limiting rules are sorted to obtain multiple sub-current limiting triggering sequences; and the current limiting screening link is determined based on the triggering sequence.
[0012] Further, determining the current limiting screening link based on the trigger sequence includes: in response to the existence of a parallel trigger relationship in the trigger sequence, constructing multiple screening links based on the parallel trigger relationship; and determining the current limiting screening link based on the multiple screening links.
[0013] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the method in each embodiment of the present invention is executed when the program is running.
[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present invention.
[0015] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the method in each embodiment of the present invention is implemented.
[0016] According to another aspect of the embodiments of the present invention, a computer program is further provided. When the computer program is executed by a processor, the methods in the embodiments of the present invention are implemented.
[0017] In an embodiment of the present application, in response to receiving a current limiting demand, the current limiting demand is parsed to obtain the current limiting object involved in the current limiting demand, as well as the current limiting type and current limiting conditions of the current limiting object; based on the current limiting type and current limiting conditions, the current limiting logic of the current limiting object is constructed; based on the current limiting logic and current limiting type, a current limiting screening link of the current limiting object is constructed. In the present application, the current limiting demand is parsed to accurately determine the current limiting object in the current limiting demand, and the current limiting logic of the current limiting object of the financial service server is accurately constructed according to the current limiting type and current limiting conditions of the current limiting object, and the current limiting screening link of the current limiting object of the financial service server is accurately constructed in combination with the current limiting type, so as to accurately perform data current limiting on the current limiting object of the financial service server, effectively improving the smoothness of the operation of the financial server, thereby solving the technical problem of low accuracy of data current limiting on the current limiting object of the financial service server in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 A hardware structure block diagram of a computer terminal for implementing a data flow limiting method is shown;
[0020] Figure 2 is a flow chart of an optional data flow limiting method provided according to an embodiment of the present application;
[0021] Figure 3 is a schematic structural diagram of an optional data current limiting device provided according to an embodiment of the present application;
[0022] Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] 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.
[0024] 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.
[0025] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0026] It should be noted that the collected information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with relevant laws, regulations and standards, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or institutions to provide users with corresponding operation entrances for users to choose to agree or refuse the results of automated decision-making; if the user chooses to refuse, the expert decision-making process will be entered.
[0027] Example 1
[0028] According to an embodiment of the present application, an embodiment of a data flow limiting 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.
[0029] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a data flow limiting method. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0030] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The 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 incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0031] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the data current limiting 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, the above-mentioned data current limiting method is realized. 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 computer terminal 10 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.
[0032] 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 computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, 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 (RF) module, which is used to communicate with the Internet wirelessly.
[0033] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0034] Under the above operating environment, this application provides Figure 2 The data flow limiting method shown. Figure 2 is a flow chart of an optional data flow limiting method provided according to an embodiment of the present application, such as Figure 2 As shown, the method includes:
[0035] Step S202, in response to receiving a current limiting demand, the current limiting demand is parsed to obtain the current limiting object involved in the current limiting demand, as well as the current limiting type and current limiting conditions of the current limiting object, wherein the current limiting type is used to indicate different dimensions of current limiting for the current limiting object, and the current limiting condition is used to indicate the conditions that need to be met for current limiting the current limiting object.
[0036] The above-mentioned flow limiting demand refers to the need to limit the flow limiting objects in the financial server, such as login operations or stay operations, which occupy traffic, due to the impact of the amount of data carried by the financial server, so as to prevent the above-mentioned financial server from freezing or even crashing. In this application, the staff needs to determine the above-mentioned flow limiting demand, wherein the above-mentioned flow limiting demand can be set according to the server status, the above-mentioned flow limiting demand can also be set manually according to experience and demand, and the above-mentioned flow limiting demand can also be set according to the actual application scenario.
[0037] The above-mentioned flow limiting objects refer to operations in the field of financial technology that need to be restricted in order to ensure the smooth operation of the servers corresponding to the financial business. Among them, the above-mentioned flow limiting objects include but are not limited to: staying on the interface for a long time without performing any operations, operations that still need to log in to the financial server when the server load is heavy, or operations that have not been logged out after handling the business.
[0038] The above-mentioned current limiting type refers to the type of current limiting of the above-mentioned current limiting object in the financial server. Due to different reasons, the current limiting type may not be the same. Among them, the above-mentioned current limiting type includes but is not limited to: restricting the use of some functions of the financial server, restricting the operation of logging into the financial server, or restricting the operation of staying in the financial server for a long time and not using the financial server functions, etc.
[0039] The above-mentioned flow limiting conditions refer to the conditions for limiting the flow of the above-mentioned flow limiting objects. In the present application, the above-mentioned flow limiting conditions can be used to determine whether it is necessary to restrict some operations that are being used or waiting to be used on the financial platform in order to achieve the purpose of limiting the flow of some operations. The flow limiting conditions can also be used to determine whether to restrict some operations that are using the financial platform functions or queuing to use the financial platform functions in order to achieve the purpose of improving the smoothness of the use of the financial server. When the above-mentioned object meets the flow limiting conditions, the object is determined to be the above-mentioned flow limiting object.
[0040] The above dimensions refer to different angles when limiting the flow of operation data in the financial server. The above dimensions correspond one-to-one to the flow limiting types of the above flow limiting objects, and different dimensions correspond to different flow limiting types.
[0041] In an optional embodiment, the staff can determine the above-mentioned current limiting requirements according to the actual needs of the platform. After determining the above-mentioned current limiting requirements, the staff can send the above-mentioned current limiting requirements to the controller. After the controller detects that the current limiting requirements have been received, the staff can parse the current limiting requirements manually to obtain the current limiting objects involved in the current limiting requirements, determine the current limiting types of different dimensions for the current limiting objects, and determine the current limiting conditions for judging whether the object meets the requirements of the current limiting objects.
[0042] In another optional embodiment, the staff can determine the above-mentioned current limiting requirement based on the actual needs of the staff. After determining the above-mentioned current limiting requirement, the staff can send the above-mentioned current limiting requirement to the controller. After the controller detects that the current limiting requirement has been received, the staff can parse the current limiting requirement by manual parsing to obtain the current limiting object involved in the current limiting requirement, determine the current limiting types of different dimensions for the current limiting object, and determine the current limiting conditions for judging whether the object meets the requirements of the current limiting object.
[0043] In another optional embodiment, the staff can also retrieve multiple current limiting requirements from the cloud, and filter out the target current limiting requirement from the multiple current limiting requirements obtained from the cloud, and determine that the target current limiting requirement is the above-mentioned current limiting requirement. After determining the current limiting requirement, the staff can send the above-mentioned current limiting requirement to the controller. After the controller detects that the current limiting requirement has been received, the current limiting requirement can be parsed by manual parsing by the staff to obtain the current limiting object involved in the current limiting requirement, and determine the current limiting types of different dimensions for the current limiting object to perform current limiting, and determine the current limiting conditions used to judge whether the object meets the requirements of the current limiting object.
[0044] In another optional embodiment, a server can be pre-set, and multiple flow limiting requirements for data flow limiting are stored in the server, wherein the multiple flow limiting requirements are a collection of historical flow limiting requirements set by the staff, and the staff can retrieve the required flow limiting requirements from the pre-set server. After determining the flow limiting requirements, the staff can send the above flow limiting requirements to the controller. After the controller detects that the flow limiting requirements have been received, the controller can parse the flow limiting requirements through manual parsing by the staff to obtain the flow limiting objects involved in the flow limiting requirements, determine the flow limiting types of different dimensions for the flow limiting objects, and determine the flow limiting conditions for judging whether the object meets the requirements of the flow limiting objects.
[0045] In another optional embodiment, a local area network can be pre-set, and multiple current limiting requirements for data current limiting are stored in the local area network, wherein the multiple current limiting requirements are a collection of historical current limiting requirements set by the staff, and the staff can retrieve the required current limiting requirements from the pre-set local area network. After determining the current limiting requirements, the staff can send the above current limiting requirements to the controller. After the controller detects that the current limiting requirements have been received, the current limiting requirements can be manually parsed by the staff to obtain the current limiting objects involved in the current limiting requirements, and determine the current limiting types of different dimensions for the current limiting objects, and determine the current limiting conditions for judging whether the current limiting objects meet the current limiting object requirements.
[0046] In another optional embodiment, a gateway can be pre-set, and multiple flow limiting requirements for data flow limiting are stored in the above-mentioned gateway, wherein the above-mentioned multiple flow limiting requirements are a collection of historical flow limiting requirements set by the staff. The staff can retrieve the required flow limiting requirements from the pre-set gateway. After determining the flow limiting requirements, the staff can send the above-mentioned flow limiting requirements to the controller. After the controller detects that the flow limiting requirements have been received, the flow limiting requirements can be parsed by manual parsing by the staff to obtain the flow limiting objects involved in the flow limiting requirements, and determine the flow limiting types of different dimensions for the flow limiting objects to be flow limited, and determine the flow limiting conditions for judging whether the object meets the requirements of the flow limiting objects.
[0047] In another optional embodiment, an analytical model can be established in advance, and after the current limiting requirement is obtained, the above-mentioned current limiting requirement is used as the input of the above-mentioned analytical model, and is input into the above-mentioned analytical model to output the current limiting object involved in the current limiting requirement, and the current limiting types of different dimensions for the current limiting object to perform current limiting are determined, and the current limiting conditions used to judge whether the object meets the requirements of the current limiting object are determined.
[0048] Exemplarily, when the server load corresponding to the financial business is large, the controller can send a current limiting demand to the above-mentioned analysis model. After obtaining the current limiting demand, the above-mentioned current limiting demand is used as the input of the above-mentioned analysis model, and is input into the above-mentioned analysis model. The output current limiting object is the operation of the server with a large load and still logged in to the financial platform at the current moment, and the current limiting types of different dimensions of the operation of the server with a large load and still logged in to the financial platform at the current moment are determined, and it is determined whether the operation of the server with a large load and still logged in to the financial platform at the current moment meets the current limiting conditions required by the current limiting object.
[0049] In this application, by setting the flow limiting requirements and parsing the flow limiting requirements to obtain a more accurate flow limiting object, and by obtaining the flow limiting type and flow limiting conditions of the flow limiting object, the comprehensiveness of data flow limiting is effectively improved, thereby effectively improving the accuracy of data flow limiting, effectively reducing the load on the financial service server, and effectively improving the smoothness of the operation of the financial server.
[0050] Step S204: construct a current limiting logic of the current limiting object based on the current limiting type and the current limiting condition, wherein the current limiting logic is used to describe the current limiting behavior of the current limiting object.
[0051] The above-mentioned current limiting logic refers to the specific logic for limiting the current of the above-mentioned current limiting object, wherein the above-mentioned current limiting logic can characterize the current limiting behavior of the above-mentioned current limiting object, wherein the above-mentioned current limiting logic includes but is not limited to: fixed window current limiting logic, sliding window current limiting logic, token bucket current limiting logic, leaky bucket current limiting logic, distributed current limiting logic or adaptive current limiting logic, etc.
[0052] In an optional embodiment, after obtaining the current limiting type and current limiting conditions corresponding to the current limiting object, the specific current limiting behavior for limiting the current limiting object can be determined according to the current limiting type and current limiting conditions of the current limiting object, and the current limiting logic for limiting the current limiting object can be constructed.
[0053] In another optional embodiment, after obtaining the current limiting type and current limiting conditions corresponding to the current limiting object, the operation and maintenance personnel of the financial service server can use a computer program to determine the specific current limiting behavior for limiting the current limiting object based on the current limiting type and current limiting conditions of the current limiting object. After determining the specific current limiting behavior for limiting the current limiting object, the logic for limiting the current limiting object can be constructed.
[0054] In another optional embodiment, a current limiting logic acquisition model can be established in advance. After obtaining the current limiting type and current limiting conditions corresponding to the current limiting object, the current limiting object, the current limiting type and the current limiting conditions can be used as inputs to the above-mentioned current limiting logic acquisition model, and input into the above-mentioned current limiting logic acquisition model to output the specific current limiting behavior for the current limiting object, that is, output the current limiting logic for limiting the current of the current limiting object.
[0055] Exemplarily, when the current limiting object is the operation that has a large server load and is still logged in to the financial platform at the current moment, after obtaining the current limiting type and current limiting conditions, the current limiting logic for the operation that has a large server load and is still logged in to the financial server at the current moment is constructed. The token bucket current limiting logic can be used to limit the operation that has a large server load and is still logged in to the financial server at the current moment. When there is no token in the token bucket, the operation of logging in to the financial server is prohibited. When there is a token in the token bucket, the queuing order can be determined according to the login order when logging in to the financial server, and whether the login operation is authorized can be determined according to the queuing order, so as to stop limiting the login operation and continue to limit the other operations of logging in to the financial server.
[0056] In this application, the flow limiting type and flow limiting conditions are used to quickly and accurately obtain the flow limiting logic of the flow limiting object to determine the specific flow limiting behavior of the flow limiting object, thereby effectively improving the rate and accuracy of data flow limiting and effectively improving the smoothness of financial server operation.
[0057] Step S206: construct a current limiting screening link of the current limiting object based on the current limiting logic and the current limiting type, wherein the current limiting screening link is applied to the current limiting scenario of the current limiting object.
[0058] The above-mentioned current limiting screening link refers to a link used to screen objects in the platform, screen out current limiting objects and perform current limiting operations on the current limiting objects, wherein the above-mentioned current limiting screening link can filter traffic for operations using financial servers or logging into financial servers, that is, filter traffic for current limiting objects to perform current limiting operations on the current limiting objects.
[0059] In an optional embodiment, after obtaining the current limiting logic and the current limiting type, the operation and maintenance personnel of the financial service server can manually construct a current limiting filtering link for the current limiting object according to the current limiting logic and the current limiting type, and apply the current limiting filtering link to the current limiting scenario of the current limiting object to filter out the current limiting objects from the objects in the platform, and filter the traffic of the current limiting objects to filter the current limiting objects.
[0060] In another optional embodiment, a current limiting filtering link model can be established in advance. After obtaining the current limiting logic and the current limiting type, the current limiting logic and the current limiting type can be used as input and input into the above-mentioned current limiting filtering link model to output the current limiting filtering link of the current limiting object, and the current limiting filtering link can be applied to the current limiting scenario of the current limiting object to filter out the current limiting objects from the objects in the platform, and filter the traffic of the current limiting objects to filter the current limiting objects.
[0061] In another optional embodiment, after obtaining the current limiting logic and the current limiting type, the operation and maintenance personnel of the financial service server can construct the current limiting rules of the current limiting logic based on the above current limiting logic and the above current limiting type to describe the implementation method of the current limiting behavior; after obtaining the current limiting logic and the current limiting rules, generate a current limiting filtering link based on the current limiting logic and the current limiting rules.
[0062] In another optional embodiment, after obtaining the current limiting logic and the current limiting type, the operation and maintenance personnel of the financial service server can parse the active current limiting trigger conditions and the passive current limiting trigger conditions in the current limiting logic to characterize and describe the current limiting trigger conditions that are automatically detected in the current limiting logic, and the passive current limiting trigger conditions are used to describe the current limiting trigger conditions implemented according to the current limiting instructions; after parsing the active current limiting trigger conditions and the passive current limiting trigger conditions in the current limiting logic, the operation and maintenance personnel of the financial service server can construct the current limiting rules based on the current limiting type, the active current limiting trigger conditions and the passive current limiting trigger conditions. After obtaining the current limiting logic and the current limiting rules, a current limiting screening link is generated based on the current limiting logic and the current limiting rules.
[0063] In another optional embodiment, after obtaining the current limiting logic and the current limiting type, the operation and maintenance personnel of the financial service server can parse the active current limiting trigger conditions and the passive current limiting trigger conditions in the current limiting logic to characterize and describe the current limiting trigger conditions automatically detected in the current limiting logic, and the passive current limiting trigger conditions are used to describe the current limiting trigger conditions implemented according to the current limiting instructions; after parsing the active current limiting trigger conditions and the passive current limiting trigger conditions in the current limiting logic, the operation and maintenance personnel of the financial service server can construct a first current limiting rule based on the current limiting type and the active current limiting trigger condition, wherein the first current limiting rule is used to guide the active current limiting of the current limiting object; construct a second current limiting rule based on the current limiting type and the passive current limiting trigger condition, wherein the second current limiting rule is used to guide the passive current limiting of the current limiting object; construct the current limiting rule based on the first current limiting rule and the second current limiting rule. After obtaining the current limiting logic and the current limiting rule, the operation and maintenance personnel of the financial service server can generate a current limiting screening link based on the current limiting logic and the current limiting rule.
[0064] In another optional embodiment, after obtaining the current limiting logic and the current limiting type, when the current limiting logic contains multiple sub-current limiting logics and the current limiting rules contain multiple sub-current limiting rules, the operation and maintenance personnel of the financial service server can sort the multiple sub-current limiting rules according to the association relationship between the multiple sub-current limiting logics to obtain multiple sub-current limiting triggering sequences. After obtaining the multiple sub-current limiting triggering sequences, the operation and maintenance personnel of the financial service server can determine the current limiting screening link according to the triggering sequence.
[0065] Exemplarily, when the flow limiting object is the operation of the server with a large load and the operation of still logging into the financial platform at the current moment, a flow limiting filtering link for the operation of the server with a large load and the operation of still logging into the financial platform at the current moment is constructed to filter the traffic of the operation of the server with a large load and the operation of still logging into the financial platform at the current moment, so as to limit the flow of the operation of the server with a large load and the operation of still logging into the financial platform at the current moment.
[0066] In this application, a more accurate current limiting screening link is obtained according to the current limiting logic and current limiting type, which effectively improves the accuracy of the current limiting screening link, thereby improving the accuracy of data current limiting and effectively improving the smoothness of the operation of the financial server.
[0067] Through the above steps, in response to receiving the current limiting demand, the current limiting demand is parsed to obtain the current limiting object involved in the current limiting demand, as well as the current limiting type and current limiting conditions of the current limiting object; based on the current limiting type and current limiting conditions, the current limiting logic of the current limiting object is constructed; based on the current limiting logic and current limiting type, a current limiting screening link of the current limiting object is constructed. In the present application, the current limiting demand is parsed to accurately determine the current limiting object in the current limiting demand, and the current limiting logic of the current limiting object of the financial service server is accurately constructed according to the current limiting type and current limiting conditions of the current limiting object, and the current limiting screening link of the current limiting object of the financial service server is accurately constructed in combination with the current limiting type, so as to accurately perform data current limiting on the current limiting object of the financial service server, effectively improving the smoothness of the operation of the financial server, thereby solving the technical problem of low accuracy of data current limiting on the current limiting object of the financial service server in the related technology.
[0068] Optionally, based on the current limiting logic and the current limiting type, a current limiting filtering link of the current limiting object is constructed, including: based on the current limiting logic and the current limiting type, constructing current limiting rules of the current limiting logic, wherein the current limiting rules are used to describe the implementation method of the current limiting behavior; based on the current limiting logic and the current limiting rules, a current limiting filtering link is generated.
[0069] The above-mentioned current limiting rules refer to the specific implementation method of data current limiting on the above-mentioned current limiting objects, and the above-mentioned current limiting rules refer to the rules for current limiting on the above-mentioned current limiting objects, wherein the above-mentioned current limiting rules correspond one-to-one to the above-mentioned current limiting logic.
[0070] In an optional embodiment, after obtaining the current limiting logic and the current limiting type, the staff can manually determine the current limiting rules of the current limiting logic based on the above current limiting logic and the above current limiting type to characterize the specific implementation method of the current limiting behavior corresponding to the above current limiting object, and generate the above current limiting filtering link based on the current limiting logic and the current limiting rules.
[0071] In another optional embodiment, a current limiting rule determination model can be established in advance. After obtaining the current limiting logic and the current limiting type, the above-mentioned current limiting logic and the current limiting type are used as the input of the above-mentioned current limiting rule determination model, input into the above-mentioned current limiting rule determination model, and output the current limiting rules of the current limiting logic to characterize the specific implementation method of the current limiting behavior corresponding to the above-mentioned current limiting object, and generate the above-mentioned current limiting filtering link according to the current limiting logic and the current limiting rules.
[0072] In this application, the current limiting rules of the current limiting logic are accurately determined through the current limiting logic and the current limiting type, and then a more accurate current limiting screening link is generated, which effectively improves the accuracy of data current limiting and effectively improves the smoothness of financial server operation.
[0073] Optionally, based on the current limiting logic and the current limiting type, current limiting rules of the current limiting logic are constructed, including: parsing the active current limiting trigger conditions and passive current limiting trigger conditions in the current limiting logic, wherein the active current limiting trigger conditions are used to describe the current limiting trigger conditions automatically detected in the current limiting logic, and the passive current limiting trigger conditions are used to describe the current limiting trigger conditions implemented according to the current limiting instructions; based on the current limiting type, the active current limiting trigger conditions and the passive current limiting trigger conditions, current limiting rules are constructed.
[0074] The above-mentioned active flow limiting triggering conditions refer to the conditions for actively triggering the flow limiting of the flow limiting object. In the present application, after the flow limiting triggering conditions are automatically monitored in the flow limiting logic, the active triggering conditions of the above-mentioned flow limiting object are triggered, and then the flow of the above-mentioned flow limiting object is limited. Among them, the above-mentioned active flow limiting triggering conditions include but are not limited to: the financial server load is heavy, some sections of the financial platform are under maintenance, or there are too many people logging into the financial platform, etc.
[0075] The above-mentioned passive flow limiting trigger condition refers to the condition that the staff issues a flow limiting instruction to limit the flow of the above-mentioned flow limiting object. In the present application, after the controller detects the flow limiting instruction issued by the operation and maintenance personnel of the financial service server, it triggers the passive trigger condition of the above-mentioned flow limiting object, and then limits the flow of the above-mentioned flow limiting object.
[0076] The above-mentioned current limiting instructions refer to instructions used to passively limit the current of the current limiting object. The operation and maintenance personnel of the financial service server can control the controller to limit the current of the current limiting object through the above-mentioned current limiting instructions, wherein the above-mentioned current limiting instructions include but are not limited to: touch instructions, voice instructions or action instructions.
[0077] In an optional embodiment, the staff can manually parse the active current limiting trigger conditions and passive current limiting trigger conditions in the current limiting logic. The active current limiting trigger conditions can be automatically detected by the controller for the above-mentioned object. When it is detected that the above-mentioned object meets the active current limiting trigger conditions, the object is determined to be a current limiting object; the operation and maintenance personnel of the financial service server can trigger the passive trigger conditions to the controller through the current limiting instruction. When the above-mentioned current limiting instruction is detected, the object is determined to be a current limiting object, and the current limiting rules are constructed according to the current limiting type, the active current limiting trigger conditions and the passive current limiting trigger conditions.
[0078] When the current limiting instruction is a touch instruction, the staff can send the current limiting instruction to the controller by touching the interactive screen to limit the current of the current limiting object.
[0079] When the current limiting instruction is a voice instruction, a specific sentence can be determined in advance, and the controller detects the staff's voice and recognizes it. When the controller detects the presence of a specific sentence in the staff's voice, it determines that the staff issues a current limiting instruction to limit the current of the current limiting object.
[0080] In the case where the current limiting instruction is an action instruction, a specific action can be determined in advance, and the camera device connected to the controller obtains the image information of the staff and identifies the image of the staff. When it is determined that there is a specific action in the image, the staff is determined to issue a current limiting instruction to limit the current of the current limiting object.
[0081] In this application, the applicability of data flow limiting is effectively improved through passive flow limiting trigger conditions and active flow limiting trigger conditions. The flow limiting rules are accurately obtained according to the flow limiting type, active flow limiting trigger conditions and passive flow limiting trigger conditions, which effectively improves the accuracy of flow limiting on the flow limiting object and improves the smoothness of the operation of the financial server.
[0082] Optionally, based on the current limiting type, active current limiting trigger conditions and passive current limiting trigger conditions, current limiting rules are constructed, including: constructing a first current limiting rule based on the current limiting type and the active current limiting trigger conditions, wherein the first current limiting rule is used to guide active current limiting of the current limiting object; constructing a second current limiting rule based on the current limiting type and the passive current limiting trigger conditions, wherein the second current limiting rule is used to guide passive current limiting of the current limiting object; constructing current limiting rules based on the first current limiting rule and the second current limiting rule.
[0083] The above-mentioned first current limiting rule refers to a rule for actively limiting the current of the current limiting object, wherein the above-mentioned first current limiting rule is used to stipulate the requirements for actively limiting the current of the current limiting object to guide the active current limiting of the above-mentioned current limiting object.
[0084] The second current limiting rule refers to a rule for performing passive current limiting on a current limiting object, wherein the second current limiting rule is used to specify requirements for performing passive current limiting on a current limiting object, so as to guide the passive current limiting on the current limiting object.
[0085] In an optional embodiment, after obtaining the current limiting type, active current limiting trigger conditions and passive current limiting trigger conditions, the staff can manually determine the first current limiting rule according to the current limiting type and the active current limiting trigger conditions, and the staff can manually determine the second current limiting rule according to the current limiting type and the passive current limiting trigger conditions. After obtaining the first current limiting rule and the second current limiting rule, the current limiting rule is obtained according to the first current limiting rule and the second current limiting rule.
[0086] In another optional embodiment, a current limiting rule model can be established in advance. After obtaining the current limiting type, active current limiting trigger conditions and passive current limiting trigger conditions, the current limiting type and active current limiting trigger conditions can be used as inputs of the above-mentioned current limiting rule model, input into the above-mentioned current limiting rule model, and output a first current limiting rule; the current limiting type and passive current limiting trigger conditions can be used as inputs of the above-mentioned current limiting rule model, input into the above-mentioned current limiting rule model, and output a second current limiting rule. After obtaining the first current limiting rule and the second current limiting rule, the current limiting rule is obtained according to the first current limiting rule and the second current limiting rule.
[0087] In the present application, by determining the first current limiting rule and the second current limiting rule, the accuracy of obtaining the current limiting rule is effectively improved, thereby effectively improving the accuracy of limiting the data, thereby effectively improving the smoothness of the operation of the financial server.
[0088] Optionally, constructing a first current limiting rule based on the current limiting type and the active current limiting trigger condition includes: determining a preset current limiting threshold and a current limiting operation mode corresponding to the active current limiting trigger condition based on the current limiting type; and constructing the first current limiting rule based on the preset current limiting threshold and the current limiting operation mode.
[0089] The above-mentioned preset current limiting threshold refers to the threshold condition used to determine whether the above-mentioned object is a current limiting object, wherein the above-mentioned preset current limiting threshold can be set according to the state of the current limiting object, the above-mentioned preset current limiting threshold can also be set manually according to experience and needs, and the above-mentioned preset current limiting threshold can also be set according to the actual application scenario.
[0090] In an optional embodiment, after obtaining the current limiting type, the staff can manually determine the preset current limiting threshold and current limiting operation mode corresponding to the active current limiting trigger condition based on the above-mentioned current limiting type. After obtaining the preset current limiting threshold and current limiting operation mode, the first current limiting rule is determined based on the preset current limiting threshold and current limiting operation mode.
[0091] In another optional embodiment, a first determination model can be established in advance. After obtaining the current limiting type, the above current limiting type can be used as the input of the above first determination model and input into the above first determination model to output the preset current limiting threshold and current limiting operation mode corresponding to the active current limiting trigger condition. After obtaining the preset current limiting threshold and current limiting operation mode, the first current limiting rule is determined according to the preset current limiting threshold and current limiting operation mode.
[0092] In the present application, the current limiting type is used to accurately determine the preset current limiting threshold and the current limiting operation mode, and the first current limiting rule is accurately constructed, thereby effectively improving the accuracy of the current limiting rule, thereby improving the accuracy of data current limiting, and improving the smoothness of the operation of the financial server.
[0093] Optionally, constructing a second current limiting rule based on the current limiting type and the passive current limiting trigger condition includes: determining a trigger instruction corresponding to the passive current limiting trigger condition based on the current limiting type; and constructing the second current limiting rule based on the trigger instruction.
[0094] In an optional embodiment, after obtaining the current limiting type, the staff can manually determine the trigger instruction corresponding to the passive current limiting trigger condition according to the above current limiting type, and after obtaining the trigger instruction, construct a second current limiting rule according to the above trigger instruction.
[0095] In another optional embodiment, a second determination model can be established in advance. After obtaining the current limiting type, the above current limiting type can be used as the input of the above second determination model, input into the above second determination model, and output the trigger instruction corresponding to the passive current limiting trigger condition. After obtaining the trigger instruction, the second current limiting rule is constructed according to the above trigger instruction.
[0096] In the present application, the current limiting type is used to accurately determine the current limiting instruction, and the second current limiting rule is accurately constructed, thereby effectively improving the accuracy of the current limiting rule, thereby improving the accuracy of data current limiting, and improving the smoothness of financial server operation.
[0097] Optionally, based on the current limiting logic and the current limiting rules, a current limiting filtering link is generated, including: in response to the current limiting logic containing multiple sub-current limiting logics, and the current limiting rules containing multiple sub-current limiting rules, based on the association relationship between the multiple sub-current limiting logics, the multiple sub-current limiting rules are sorted to obtain multiple sub-current limiting triggering orders; and the current limiting filtering link is determined based on the triggering order.
[0098] In an optional embodiment, the current limiting logic includes multiple sub-current limiting logics, and the current limiting rules include multiple sub-current limiting rules. The multiple sub-current limiting rules are sorted according to the association relationship between the multiple sub-current limiting logics to obtain the triggering order of the multiple sub-current limiting. After obtaining the triggering order, the current limiting filtering link is determined according to the triggering order.
[0099] In another optional embodiment, a sorting model can be established in advance, the current limiting logic includes multiple sub-current limiting logics, and the current limiting rules include multiple sub-current limiting rules. After the above-mentioned multiple sub-current limiting logics and multiple sub-current limiting rules are taken as input, they are input into the above-mentioned sorting model, and the trigger order is output. After obtaining the trigger order, the current limiting filtering link is determined according to the trigger order.
[0100] In the present application, by sorting the above-mentioned multiple sub-current limiting rules to determine the multiple sub-current limiting triggering orders, and accurately determining the above-mentioned screening link according to the above-mentioned triggering order, the accuracy of data current limiting is effectively improved, and the smoothness of the operation of the financial server is improved.
[0101] Optionally, determining the current limiting screening link based on the trigger sequence includes: in response to the existence of a parallel trigger relationship in the trigger sequence, constructing multiple screening links based on the parallel trigger relationship; and determining the current limiting screening link based on the multiple screening links.
[0102] In an optional embodiment, when there are parallel triggering relationships in the triggering sequence, multiple screening links are constructed according to the parallel triggering relationships, and the staff can determine the current limiting screening link among the multiple screening links.
[0103] In this application, by establishing multiple screening links, when determining the current limiting screening link, the current limiting screening link can be selected according to the needs of the staff, which effectively improves the accuracy of the current limiting screening link, improves the accuracy of data current limiting, and improves the smoothness of the operation of the financial server.
[0104] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0105] Example 2
[0106] The embodiment of the present application also provides a data flow limiting device. It should be noted that the data flow limiting device of the embodiment of the present application can be used to execute the data flow limiting method provided by the embodiment of the present application. The data flow limiting device provided by the embodiment of the present application is introduced below.
[0107] According to an embodiment of the present application, a device for implementing the above data flow limiting method is also provided. Figure 3 is a schematic diagram of the structure of an optional data current limiting device provided according to an embodiment of the present application, such as Figure 3As shown, the device includes: a parsing module 30, which is used to parse the current limiting demand in response to receiving a current limiting demand, and obtain the current limiting object involved in the current limiting demand, as well as the current limiting type and current limiting condition of the current limiting object, wherein the current limiting type is used to represent different dimensions of current limiting for the current limiting object, and the current limiting condition is used to represent the conditions that need to be met for current limiting for the current limiting object; a first construction module 32, which is used to construct the current limiting logic of the current limiting object based on the current limiting type and the current limiting condition, wherein the current limiting logic is used to describe the current limiting behavior of the current limiting object; a second construction module 34, which is used to construct the current limiting filtering link of the current limiting object based on the current limiting logic and the current limiting type, wherein the current limiting filtering link is applied to the current limiting scenario of the current limiting object.
[0108] Optionally, the second construction module includes: a construction unit, used to construct a current limiting rule of the current limiting logic based on the current limiting logic and the current limiting type, wherein the current limiting rule is used to describe the implementation method of the current limiting behavior; and a generation unit, used to generate a current limiting filtering link based on the current limiting logic and the current limiting rule.
[0109] Optionally, the construction unit includes: a parsing subunit, used to parse the active current limiting trigger conditions and passive current limiting trigger conditions in the current limiting logic, wherein the active current limiting trigger conditions are used to describe the current limiting trigger conditions automatically detected in the current limiting logic, and the passive current limiting trigger conditions are used to describe the current limiting trigger conditions implemented according to the current limiting instructions; a construction subunit, used to construct current limiting rules based on the current limiting type, active current limiting trigger conditions and passive current limiting trigger conditions.
[0110] Optionally, the construction subunit is also used to: construct a first current limiting rule based on the current limiting type and the active current limiting trigger condition, wherein the first current limiting rule is used to guide the active current limiting of the current limiting object; construct a second current limiting rule based on the current limiting type and the passive current limiting trigger condition, wherein the second current limiting rule is used to guide the passive current limiting of the current limiting object; construct the current limiting rule based on the first current limiting rule and the second current limiting rule.
[0111] Optionally, the construction subunit is further used to: determine a preset current limiting threshold and a current limiting operation mode corresponding to the active current limiting trigger condition based on the current limiting type; and construct a first current limiting rule based on the preset current limiting threshold and the current limiting operation mode.
[0112] Optionally, the construction subunit is further used to: determine a trigger instruction corresponding to the passive current limiting trigger condition based on the current limiting type; and construct a second current limiting rule based on the trigger instruction.
[0113] Optionally, the generating unit includes: a sorting sub-unit, used to respond to the current limiting logic containing multiple sub-current limiting logics, and the current limiting rules containing multiple sub-current limiting rules, and sort the multiple sub-current limiting rules based on the association relationship between the multiple sub-current limiting logics to obtain multiple sub-current limiting triggering orders; a determining sub-unit, used to determine the current limiting filtering link based on the triggering order.
[0114] Optionally, the determination subunit is further configured to construct a plurality of screening links based on the parallel triggering relationship in response to the existence of a parallel triggering relationship in the triggering sequence; and determine a current limiting screening link based on the plurality of screening links.
[0115] In the present application, by setting up a parsing module, a first building module and a second building module, the current limiting demand is parsed to accurately determine the current limiting object in the current limiting demand, and the current limiting logic of the current limiting object is accurately constructed according to the current limiting type and current limiting conditions of the current limiting object, and the current limiting filtering link of the current limiting object is accurately constructed in combination with the current limiting type to accurately perform data limiting on the current limiting object, thereby solving the technical problem of poor user experience due to the low accuracy of data limiting on the current limiting object in the related technology.
[0116] Example 3
[0117] An embodiment of the present application may provide an electronic device, Figure 4 is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 4 As shown, the electronic device may include: one or more ( Figure 4 (only one is shown) processor 402, memory 404, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.
[0118] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method. The memory 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 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal 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.
[0119] It can be understood by those skilled in the art that Figure 4The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 4 The structure of the electronic device is not limited. Figure 4 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 4 Different configurations are shown.
[0120] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0121] In the present application, by setting up the electronic device, the current limiting demand is parsed to accurately determine the current limiting object in the current limiting demand, and the current limiting logic of the current limiting object is accurately constructed according to the current limiting type and current limiting conditions of the current limiting object, and the current limiting filtering link of the current limiting object is accurately constructed in combination with the current limiting type to accurately perform data limiting on the current limiting object, thereby solving the technical problem of poor user experience due to the low accuracy of data limiting on the current limiting object in the related technology.
[0122] Example 4
[0123] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the data flow limiting method provided in the first embodiment.
[0124] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0125] Example 5
[0126] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the steps of the data flow limiting method.
[0127] Example 6
[0128] The embodiments of the present application further provide a computer program, which implements the methods in the above-mentioned embodiments of the present invention when executed by a processor.
[0129] 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.
[0130] 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.
[0131] 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 is only 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.
[0132] 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 network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0133] 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.
[0134] 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, in essence, or the part that contributes 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 (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0135] The above is only a preferred embodiment 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 data flow limiting method, characterized in that: include: In response to receiving a current limiting demand, parsing the current limiting demand to obtain a current limiting object involved in the current limiting demand, and a current limiting type and a current limiting condition of the current limiting object, wherein the current limiting type is used to indicate different dimensions of current limiting for the current limiting object, and the current limiting condition is used to indicate a condition that needs to be met for current limiting for the current limiting object; Based on the current limiting type and the current limiting condition, construct a current limiting logic of the current limiting object, wherein the current limiting logic is used to describe the current limiting behavior of the current limiting object; Based on the current limiting logic and the current limiting type, a current limiting screening link of the current limiting object is constructed, wherein the current limiting screening link is applied to the current limiting scenario of the current limiting object.
2. The data flow limiting method according to claim 1, characterized in that: Based on the current limiting logic and the current limiting type, a current limiting screening link of the current limiting object is constructed, including: Based on the current limiting logic and the current limiting type, construct a current limiting rule of the current limiting logic, wherein the current limiting rule is used to describe an implementation method of the current limiting behavior; Based on the current limiting logic and the current limiting rule, the current limiting screening link is generated.
3. The data flow limiting method according to claim 2, characterized in that: Based on the current limiting logic and the current limiting type, a current limiting rule of the current limiting logic is constructed, including: Parsing the active current limiting trigger condition and the passive current limiting trigger condition in the current limiting logic, wherein the active current limiting trigger condition is used to describe the current limiting trigger condition automatically detected in the current limiting logic, and the passive current limiting trigger condition is used to describe the current limiting trigger condition implemented according to the current limiting instruction; The current limiting rule is constructed based on the current limiting type, the active current limiting triggering condition and the passive current limiting triggering condition.
4. The data flow limiting method according to claim 3, characterized in that: Based on the current limiting type, the active current limiting triggering condition and the passive current limiting triggering condition, constructing the current limiting rule includes: Constructing a first current limiting rule based on the current limiting type and the active current limiting triggering condition, wherein the first current limiting rule is used to guide active current limiting of the current limiting object; Constructing a second current limiting rule based on the current limiting type and the passive current limiting triggering condition, wherein the second current limiting rule is used to guide the passive current limiting of the current limiting object; The current limiting rule is constructed based on the first current limiting rule and the second current limiting rule.
5. The data flow limiting method according to claim 4, characterized in that: Constructing a first current limiting rule based on the current limiting type and the active current limiting triggering condition includes: Determine a preset current limiting threshold and a current limiting operation mode corresponding to the active current limiting trigger condition based on the current limiting type; The first current limiting rule is constructed based on the preset current limiting threshold and the current limiting operation mode.
6. The data flow limiting method according to claim 4, characterized in that: Constructing a second current limiting rule based on the current limiting type and the passive current limiting triggering condition includes: Determine a trigger instruction corresponding to the passive current limiting trigger condition based on the current limiting type; The second current limiting rule is constructed based on the trigger instruction.
7. The data flow limiting method according to claim 2, characterized in that: Based on the current limiting logic and the current limiting rule, generating the current limiting screening link includes: In response to the current limiting logic including a plurality of sub-current limiting logics, and the current limiting rule including a plurality of sub-current limiting rules, the plurality of sub-current limiting rules are sorted based on the association relationship of the plurality of sub-current limiting logics to obtain the plurality of sub-current limiting triggering sequences; The current limiting screening link is determined based on the triggering sequence.
8. The data flow limiting method according to claim 7, characterized in that: Determining the current limiting screening link based on the triggering sequence includes: In response to the existence of a parallel triggering relationship in the triggering sequence, constructing a plurality of screening links based on the parallel triggering relationship; The current limiting screening link is determined based on the multiple screening links.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 8.
10. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 8 when running.
11. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.