CN113568604B - Method and device for updating wind control strategy and computer readable storage medium - Google Patents

Method and device for updating wind control strategy and computer readable storage medium Download PDF

Info

Publication number
CN113568604B
CN113568604B CN202111126226.2A CN202111126226A CN113568604B CN 113568604 B CN113568604 B CN 113568604B CN 202111126226 A CN202111126226 A CN 202111126226A CN 113568604 B CN113568604 B CN 113568604B
Authority
CN
China
Prior art keywords
wind control
control strategy
rule
model set
strategy model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111126226.2A
Other languages
Chinese (zh)
Other versions
CN113568604A (en
Inventor
曹会
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Wanshun Car Information Technology Co ltd
Original Assignee
Shenzhen Wanshun Car Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Wanshun Car Information Technology Co ltd filed Critical Shenzhen Wanshun Car Information Technology Co ltd
Priority to CN202111126226.2A priority Critical patent/CN113568604B/en
Publication of CN113568604A publication Critical patent/CN113568604A/en
Application granted granted Critical
Publication of CN113568604B publication Critical patent/CN113568604B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Abstract

The invention discloses a method and a device for updating a wind control strategy and a computer readable storage medium, wherein the method comprises the following steps: when receiving a wind control rule to be updated, generating a wind control strategy model according to the wind control rule to be updated; storing the wind control strategy model into a first wind control strategy model set in a database; when the update time point is reached, acquiring a first wind control strategy model set, wherein service codes corresponding to all wind control strategy models in the first wind control strategy model set are coupled with service rules; generating a second wind control strategy model set according to the first wind control strategy model set; and storing the second wind control strategy model set into a cache, wherein the service codes and the service rules corresponding to the wind control strategy models in the second wind control strategy model set are decoupled. The invention improves the updating efficiency of the wind control strategy.

Description

Method and device for updating wind control strategy and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for updating a wind control policy, and a computer-readable storage medium.
Background
Firstly, the wind control strategy is only one end code or one function of the updating device of the wind control strategy, and when the wind control strategy needs to be updated, research and development personnel need to develop, test and deploy service codes again, which wastes time and labor.
Disclosure of Invention
The embodiment of the invention provides a method and a device for updating a wind control strategy and a computer readable storage medium, and aims to solve the technical problem of how to improve the updating efficiency of the wind control strategy.
The embodiment of the invention provides an updating method of a wind control strategy, which comprises the following steps:
when a wind control rule to be updated is received, generating a wind control strategy model according to the wind control rule to be updated;
storing the wind control strategy model into a first wind control strategy model set in a database;
when the update time point is reached, acquiring the first wind control strategy model set, wherein the business codes corresponding to the wind control strategy models in the first wind control strategy model set are coupled with the business rules;
generating a second wind control strategy model set according to the first wind control strategy model set;
and storing the second wind control strategy model set into a cache, wherein the service codes and the service rules corresponding to the wind control strategy models in the second wind control strategy model set are decoupled.
In an embodiment, after the step of storing the wind control policy model in the first set of wind control policy models in the database, the method further includes:
detecting whether a historical wind control strategy model set is stored in the cache;
and if the historical wind control strategy model set is stored in the cache, deleting the historical wind control strategy model set in the cache.
In an embodiment, after the step of storing the second set of wind control policy models in a cache, the method further includes:
and when a service request is received, responding to the service request according to the second wind control strategy model set.
In an embodiment, the step of responding to the service request according to the second set of wind control policy models comprises:
analyzing the service request to obtain the type of the rule to be inquired;
determining a strategy type corresponding to the rule type to be inquired;
if the strategy type is the same, traversing the rule type parameters of all the wind control strategy models in the second wind control strategy model set according to the rule type to be inquired to find the rule type matched with the rule type to be inquired, wherein if the second wind control strategy model set is detected to have missed wind control strategy models in the traversing process, stopping traversing, and outputting prompt information of the missed wind control strategy models, wherein the prompt information comprises rule names.
In an embodiment, after the step of determining the policy type corresponding to the rule type to be queried, the method further includes:
if the type of the rule to be queried is yes, traversing the rule type parameters of all the wind control strategy models in the second wind control strategy model set according to the type of the rule to be queried to find the rule type matched with the type of the rule to be queried, wherein prompt information corresponding to the hit wind control strategy model is output, and the prompt information comprises a rule name.
In an embodiment, after the step of determining the policy type corresponding to the rule type to be queried, the method further includes:
and if the type of the rule to be queried is ordered or the rule type parameters of the wind control strategy models in the second wind control strategy model set are traversed according to the type of the rule to be queried and a preset sequence to find the rule type matched with the type of the rule to be queried, wherein if the condition that the first wind control strategy model in the second wind control strategy model set is hit is detected, the traversal is stopped, and prompt information corresponding to the hit wind control strategy model is output, wherein the prompt information comprises the rule name.
In an embodiment, after the step of storing the wind control policy model in the first set of wind control policy models in the database, the method further includes:
and when a parameter modification request is received, modifying the parameters of the wind control strategy models in the first wind control strategy model set according to the parameter modification request.
In an embodiment, after the step of detecting whether the cache stores the historical wind control policy model, the method further includes:
and if the historical wind control strategy model set is not stored in the cache, executing the step of obtaining the first wind control strategy model set in the database when the update time point is reached.
The embodiment of the present invention further provides an updating apparatus for a wind control policy, where the updating apparatus for a wind control policy includes: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for updating a wind control strategy as described above when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the method for updating a wind control policy as described above.
In the technical scheme of the embodiment, when a wind control rule to be updated is received, a wind control strategy model is generated according to the wind control rule to be updated; storing the wind control strategy model into a first wind control strategy model set in a database; when the update time point is reached, acquiring the first wind control strategy model set, wherein the business codes corresponding to the wind control strategy models in the first wind control strategy model set are coupled with the business rules; generating a second wind control strategy model set according to the first wind control strategy model set; and storing the second wind control strategy model set into a cache, wherein the service codes and the service rules corresponding to the wind control strategy models in the second wind control strategy model set are decoupled. The wind control codes in the first wind control strategy set are coupled with the wind control strategies, so that a second wind control strategy model set with the wind control codes decoupled from the wind control strategies is generated on the basis of the first wind control strategy set, and then the second wind control strategy is updated to the cache for subsequent service.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a hardware architecture diagram of an updating apparatus for a wind control policy according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for updating a wind control policy according to the present invention;
fig. 2A is a wind control policy model in a first wind control policy model set according to a first embodiment of the method for updating a wind control policy of the present invention;
fig. 2B is a wind control policy model in a second wind control policy model set according to the first embodiment of the updating method of the wind control policy of the present invention;
fig. 2C is a service flow chart of a method for updating a wind control policy according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for updating a wind control policy according to the present invention;
fig. 4 is a flowchart illustrating a method for updating a wind control policy according to a third embodiment of the present invention.
Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The main solution of the invention is: when a wind control rule to be updated is received, generating a wind control strategy model according to the wind control rule to be updated; storing the wind control strategy model into a first wind control strategy model set in a database; when the update time point is reached, acquiring the first wind control strategy model set, wherein the business codes corresponding to the wind control strategy models in the first wind control strategy model set are coupled with the business rules; generating a second wind control strategy model set according to the first wind control strategy model set; and storing the second wind control strategy model set into a cache, wherein the service codes and the service rules corresponding to the wind control strategy models in the second wind control strategy model set are decoupled.
The wind control codes in the first wind control strategy set are coupled with the wind control strategies, so that a second wind control strategy model set with the wind control codes decoupled from the wind control strategies is generated on the basis of the first wind control strategy set, and then the second wind control strategy is updated to the cache for subsequent service.
As an implementation, the updating device of the wind control strategy can be as shown in fig. 1.
The embodiment of the invention relates to a device for updating a wind control strategy, which comprises: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein a communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As in fig. 1, a detection program may be included in the memory 103 as a computer-readable storage medium; and the processor 101 may be configured to call the detection program stored in the memory 102 and perform the following operations:
when a wind control rule to be updated is received, generating a wind control strategy model according to the wind control rule to be updated;
storing the wind control strategy model into a first wind control strategy model set in a database;
when the update time point is reached, acquiring the first wind control strategy model set, wherein the business codes corresponding to the wind control strategy models in the first wind control strategy model set are coupled with the business rules;
generating a second wind control strategy model set according to the first wind control strategy model set;
and storing the second wind control strategy model set into a cache, wherein the service codes and the service rules corresponding to the wind control strategy models in the second wind control strategy model set are decoupled.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
detecting whether a historical wind control strategy model set is stored in the cache;
and if the historical wind control strategy model set is stored in the cache, deleting the historical wind control strategy model set in the cache.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and when a service request is received, responding to the service request according to the second wind control strategy model set.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
analyzing the service request to obtain the type of the rule to be inquired;
determining a strategy type corresponding to the rule type to be inquired;
if the strategy type is the same, traversing the rule type parameters of all the wind control strategy models in the second wind control strategy model set according to the rule type to be inquired to find the rule type matched with the rule type to be inquired, wherein if the second wind control strategy model set is detected to have missed wind control strategy models in the traversing process, stopping traversing, and outputting prompt information of the missed wind control strategy models, wherein the prompt information comprises rule names.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
if the type of the rule to be queried is yes, traversing the rule type parameters of all the wind control strategy models in the second wind control strategy model set according to the type of the rule to be queried to find the rule type matched with the type of the rule to be queried, wherein prompt information corresponding to the hit wind control strategy model is output, and the prompt information comprises a rule name.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and if the type of the rule to be queried is ordered or the rule type parameters of the wind control strategy models in the second wind control strategy model set are traversed according to the type of the rule to be queried and a preset sequence to find the rule type matched with the type of the rule to be queried, wherein if the condition that the first wind control strategy model in the second wind control strategy model set is hit is detected, the traversal is stopped, and prompt information corresponding to the hit wind control strategy model is output, wherein the prompt information comprises the rule name.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and when a parameter modification request is received, modifying the parameters of the wind control strategy models in the first wind control strategy model set according to the parameter modification request.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and if the historical wind control strategy model set is not stored in the cache, executing the step of obtaining the first wind control strategy model set in the database when the update time point is reached.
In the technical scheme of the embodiment, when a wind control rule to be updated is received, a wind control strategy model is generated according to the wind control rule to be updated; storing the wind control strategy model into a first wind control strategy model set in a database; when the update time point is reached, acquiring the first wind control strategy model set, wherein the business codes corresponding to the wind control strategy models in the first wind control strategy model set are coupled with the business rules; generating a second wind control strategy model set according to the first wind control strategy model set; and storing the second wind control strategy model set into a cache, wherein the service codes and the service rules corresponding to the wind control strategy models in the second wind control strategy model set are decoupled. The wind control codes in the first wind control strategy set are coupled with the wind control strategies, so that a second wind control strategy model set with the wind control codes decoupled from the wind control strategies is generated on the basis of the first wind control strategy set, and then the second wind control strategy is updated to the cache for subsequent service.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 2, fig. 2 is a first embodiment of the method for updating the wind control strategy of the present invention, and the method includes the following steps:
and step S10, when the wind control rule to be updated is received, generating a wind control strategy model according to the wind control rule to be updated.
In this embodiment, the wind control rule to be updated is a requirement rule of a user, and can be obtained by analyzing an update request input by the user; and after the wind control rule to be updated is obtained, splitting an expression, an expressStart, an expressEnd and an operator based on an Aviator expression to obtain a wind control strategy model, and recording the wind control strategy model into a database in an updating device of the wind control strategy.
Specifically, based on an Aviator expression, an express start, an express end and an operator are split in a to-be-updated wind control rule, a wind control policy model as shown in fig. 2A is obtained, then a database is recorded to serve as a wind control policy model in a first wind control policy model set, wherein the Aviator expression is designed based on lightweight and high-performance targets, 450K is added to a dependent package, only 70K is used without the dependent package, the expression is directly compiled into Java bytecode and is handed to a JVM to be executed, most operational operators are supported, functions are called and customized, regular expressions are matched, and incoming variables are supported to support access to nested variables like a.b.c. Based on an Aviator expression, the system performance and throughput can be improved by using Aviator optimization; and the development rule can be more flexible, and the developed rule is convenient to expand.
And step S20, storing the wind control strategy model into a first wind control strategy model set in a database.
In this embodiment, the generated wind control policy model is stored in the database, which is equivalent to updating the wind control rule to be updated.
Optionally, the administrator may modify the parameters of the wind control policy model entered into the database through a web page provided by the updating apparatus of the wind control policy. Specifically, when a parameter modification request is received, modifying the parameters of the wind control strategy models in the first wind control strategy model set according to the parameter modification request. Compared with the prior art that a rule file is required to be regenerated and issued when the wind control parameters change, the modification method has the advantages that a developer can directly edit and modify the wind control parameters through a graphical interface provided by an updating device of the wind control strategy, and when the wind control rules change, the developer can adjust the rules, the expressions, the expressStart, the expressEnd and the operator parameters in the model in response. If the wind control parameters change, operators only need to edit the wind control parameters directly through the general strategy editing page, and therefore the time effectiveness of the updating device of the wind control strategy for responding to wind control events is improved, and the updating device can be modified and take effect immediately.
Step S30, when the update time point is reached, obtaining the first wind control policy model set, where the service codes and the service rules corresponding to each wind control policy model in the first wind control policy model set are coupled.
In this embodiment, the update time point is a preset time point, and when the time point arrives, the first wind control policy set stored in the database is acquired, and then the second wind control policy set is generated based on the set.
And step S40, generating a second wind control strategy model set according to the first wind control strategy model set.
In this embodiment, after the first wind control policy set is obtained, the first wind control policy set may be continuously abstracted based on an Aviator expression, so as to obtain a second wind control policy set, where a wind control policy model in the second wind control policy set may refer to fig. 2B.
And step S50, storing the second wind control strategy model set into a cache, wherein the service codes and the service rules corresponding to the wind control strategy models in the second wind control strategy model set are decoupled.
In this embodiment, after the second wind control policy set is obtained, the second wind control policy set is stored in a cache (redis), where a wind control policy model in the second wind control policy set includes a rule type parameter (rule), where a specific business process may refer to fig. 2C, a developer enters a database according to a to-be-updated wind control rule based on an avertor expression split rule, specifically, the developer and a business worker analyze the wind control policy rule, split the to-be-updated wind control rule, then split the expression, expressStart, expressEnd, and operator in fig. 2A based on the avertor expression according to the to-be-updated wind control rule, and enter the model into the database through a web interface. The method comprises the steps of converting a first wind control strategy model stored in a database into a second wind control strategy model at regular time and then storing the second wind control strategy model into a cache, specifically, converting the rule lower multExpress of the first wind control strategy model into the rule expression of the rule under the cache model, wherein the rule expression is an initiator expression which returns a Boolean type. The key point is to convert the rules in the model into an Aviator expression: when operator = "express", express = express start + (value/value str) + express end; when operator | = "express", express = express + operator + (value/value str).
Furthermore, codes are decoupled, and if the interface design of each layer is good, the change in each layer is completely transparent to other layers or other modules, so that the division of labor is facilitated; after code decoupling, an additional benefit is obtained: the reusability of the code module can be greatly enhanced, and a plurality of modules can be extracted and then can be called by more upper-layer modules.
The wind control strategy model of the embodiment can also expand strategy types such as evaluation diversity and decision tree so as to be used in more scenes.
In the technical scheme of this embodiment, because the wind control codes in the first wind control policy set are coupled with the wind control policies, the second wind control policy model set with the wind control codes decoupled from the wind control policies is generated on the basis of the first wind control policy set, and then the second wind control policy is updated to the cache for subsequent service.
Referring to fig. 3, fig. 3 is a second embodiment of the updating method of the wind control policy according to the present invention, and based on the first embodiment, after step S20, the method further includes:
and step S60, detecting whether a historical wind control strategy model set is stored in the cache.
In this embodiment, the wind control policy module in the cache is used for service, and the historical wind control policy model set is a second wind control policy set that is generated according to the first wind control policy set in the database and stored in the cache before being updated.
And step S70, if the historical wind control strategy model set is stored in the cache, deleting the historical wind control strategy model set in the cache.
In this embodiment, if it is detected that the historical wind control policy set exists, the historical wind control policy set is deleted, then an update time point is waited, and the updated second wind control policy set is stored in the cache.
Optionally, if the historical wind control policy model set is not stored in the cache, the step of obtaining the first wind control policy model set in the database when the update time point is reached is executed.
In the technical scheme of the embodiment, the historical wind control strategy model set in the cache is detected and deleted during updating, so that the condition that service is not performed according to the latest wind control strategy model set can be effectively avoided, and the real-time performance of service data is improved.
Referring to fig. 4, fig. 4 is a third embodiment of the method for updating a wind control policy according to the present invention, and based on any one of the first to second embodiments, after step S50, the method further includes:
step S80, when a service request is received, the service request is analyzed to obtain the rule type to be inquired.
In this embodiment, when a service request is received, the service request is analyzed, and the rule type to be queried can be obtained.
Optionally, when a service request is received, detecting whether a second wind control policy model set is stored in the cache, and if not, executing to obtain the first wind control policy model set; generating a second wind control strategy model set according to the first wind control strategy model set; and storing the second wind control strategy model set into a cache.
Step S90, determining the strategy type corresponding to the rule type to be queried;
in this embodiment, upon receiving a service request, the service request is parsed, thereby determining a policy type of the service request.
And step S100, if the strategy type is a combination, traversing the rule type parameters of all the wind control strategy models in the second wind control strategy model set according to the rule type to be queried to find the rule type matched with the rule type to be queried, wherein if the second wind control strategy model set is detected to have a missed wind control strategy model in the traversing process, the traversing is stopped, and prompt information of the missed wind control strategy model is output, wherein the prompt information comprises a rule name.
In this embodiment, the policy type is a "yes", which means that a plurality of rule type parameters corresponding to the rule type to be queried may be used as the traversal result, and equivalently, the rule names corresponding to the plurality of rule type parameters may be output as the response result of the service request.
Optionally, the type of the rule to be queried is or, the rule type parameters of all the wind control policy models in the second set of wind control policy models are traversed according to the type of the rule to be queried to find a rule type matching the type of the rule to be queried, where prompt information corresponding to a hit wind control policy model is output, and the prompt information includes a rule name.
Optionally, if the types of the rules to be queried are ordered or the rule type parameters of the wind control policy models in the second wind control policy model set are traversed according to a preset sequence according to the types of the rules to be queried to find the rule type matched with the type of the rules to be queried, if it is detected that the first wind control policy model in the second wind control policy model set is hit, the traversal is stopped, and prompt information corresponding to the hit wind control policy model is output, where the prompt information includes a rule name.
Further, the updating device of the wind control strategy provides a standard checking strategy function:
public RpcStrategyResultVo queryStrategyResult(Map<String, Object> param, String strategyCode)。
wherein, param is the parameter of the strategy to be checked, and strategyCode is the coding of the strategy to be checked. The updating device of the wind control strategy provides an rpc interface to call the querystretyResult method through the updating device of the wind control strategy. It is determined whether the strategyCode is present in the cache redis. If the data does not exist, finding the data mode data corresponding to the strategyCode in the database, converting the data mode data into the data of the cache model, putting the data of the cache model into a cache, and returning the data of the cache model. Specifically, the cache model type data is read, the rules are traversed according to the policy type (type), and then the response result rpcrstrategyresultvo is returned.
In the technical scheme of the embodiment, the response is performed based on the policy type of the service request, so that the situation that the response result is not accurate due to multiple or few traversals can be effectively avoided, and the generation accuracy of the response result is improved.
In order to achieve the above object, an embodiment of the present invention further provides an updating apparatus for a wind control policy, where the updating apparatus for a wind control policy includes: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for updating a wind control strategy as described above when executing the computer program.
To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for updating a wind control policy as described above.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a network configuration product program embodied on one or more computer-usable computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for updating a wind control strategy is characterized by comprising the following steps:
when a wind control rule to be updated is received, splitting a wind control strategy model in the wind control rule to be updated based on an Aviator expression;
storing the wind control strategy model into a first wind control strategy model set in a database;
when the update time point is reached, acquiring the first wind control strategy model set, wherein the business codes corresponding to the wind control strategy models in the first wind control strategy model set are coupled with the business rules;
generating a second wind control strategy model set according to the first wind control strategy model set;
and storing the second wind control strategy model set into a cache based on the Aviator expression so as to respond to a service request, wherein service codes and service rules corresponding to the wind control strategy models in the second wind control strategy model set are decoupled.
2. The method for updating a wind control policy according to claim 1, wherein after the step of storing the wind control policy model in a first set of wind control policy models in a database, the method further comprises:
detecting whether a historical wind control strategy model set is stored in the cache;
and if the historical wind control strategy model set is stored in the cache, deleting the historical wind control strategy model set in the cache.
3. The method for updating a wind control policy according to claim 1, wherein after the step of storing the second set of wind control policy models in a cache, the method further comprises:
and when a service request is received, responding to the service request according to the second wind control strategy model set.
4. The method for updating the wind control policy according to claim 3, wherein the step of responding to the service request according to the second set of wind control policy models upon receiving the service request comprises:
when a service request is received, analyzing the service request to obtain a rule type to be inquired;
determining a strategy type corresponding to the rule type to be inquired;
if the strategy type is the same, traversing the rule type parameters of all the wind control strategy models in the second wind control strategy model set according to the rule type to be inquired to find the rule type matched with the rule type to be inquired, wherein if the second wind control strategy model set is detected to have missed wind control strategy models in the traversing process, stopping traversing, and outputting prompt information of the missed wind control strategy models, wherein the prompt information comprises rule names.
5. The method for updating a wind control policy according to claim 4, wherein after the step of determining the policy type corresponding to the rule type to be queried, the method further comprises:
if the type of the rule to be queried is yes, traversing the rule type parameters of all the wind control strategy models in the second wind control strategy model set according to the type of the rule to be queried to find the rule type matched with the type of the rule to be queried, wherein prompt information corresponding to the hit wind control strategy model is output, and the prompt information comprises a rule name.
6. The method for updating a wind control policy according to claim 4, wherein after the step of determining the policy type corresponding to the rule type to be queried, the method further comprises:
and if the type of the rule to be queried is ordered or the rule type parameters of the wind control strategy models in the second wind control strategy model set are traversed according to the type of the rule to be queried and a preset sequence to find the rule type matched with the type of the rule to be queried, wherein if the condition that the first wind control strategy model in the second wind control strategy model set is hit is detected, the traversal is stopped, and prompt information corresponding to the hit wind control strategy model is output, wherein the prompt information comprises the rule name.
7. The method for updating a wind control policy according to claim 1, wherein after the step of storing the wind control policy model in a first set of wind control policy models in a database, the method further comprises:
and when a parameter modification request is received, modifying the parameters of the wind control strategy models in the first wind control strategy model set according to the parameter modification request.
8. The method for updating the wind control policy according to claim 2, wherein after the step of detecting whether the cache stores the historical wind control policy model, the method further comprises:
and if the historical wind control strategy model set is not stored in the cache, executing the step of obtaining the first wind control strategy model set in the database when the update time point is reached.
9. An updating device of a wind control strategy is characterized in that the updating device of the wind control strategy comprises: memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of updating a wind control strategy according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of updating a wind control policy according to any one of claims 1 to 8.
CN202111126226.2A 2021-09-26 2021-09-26 Method and device for updating wind control strategy and computer readable storage medium Active CN113568604B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111126226.2A CN113568604B (en) 2021-09-26 2021-09-26 Method and device for updating wind control strategy and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111126226.2A CN113568604B (en) 2021-09-26 2021-09-26 Method and device for updating wind control strategy and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113568604A CN113568604A (en) 2021-10-29
CN113568604B true CN113568604B (en) 2022-01-07

Family

ID=78174596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111126226.2A Active CN113568604B (en) 2021-09-26 2021-09-26 Method and device for updating wind control strategy and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113568604B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114625747B (en) * 2022-05-13 2022-08-12 杭银消费金融股份有限公司 Wind control updating method and system based on information security
CN114884964A (en) * 2022-07-11 2022-08-09 上海富友支付服务股份有限公司 Service wind control method and system based on Tuxedo architecture

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522031A (en) * 2018-08-29 2019-03-26 上海你我贷互联网金融信息服务有限公司 The deployment and upgrade method of air control strategy
CN110717661A (en) * 2019-09-27 2020-01-21 武汉极意网络科技有限公司 Method and device for updating wind control rule
CN110766289A (en) * 2019-09-26 2020-02-07 北京淇瑀信息科技有限公司 Dynamic wind control rule adjusting method and device and electronic equipment
CN111125682A (en) * 2019-12-17 2020-05-08 支付宝(杭州)信息技术有限公司 Wind control strategy adjusting method and device and electronic equipment
CN111722863A (en) * 2020-06-23 2020-09-29 上海冰鉴信息科技有限公司 Method and device for updating wind control model
WO2021169212A1 (en) * 2020-02-26 2021-09-02 平安科技(深圳)有限公司 Risk control model construction method and apparatus, risk control checking method and apparatus, and computer device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200106793A1 (en) * 2018-10-02 2020-04-02 Olympus Infotech, LLC Methods, systems, and computer program products for continuous cyber risk monitoring
US10691428B2 (en) * 2018-10-24 2020-06-23 Sap Se Digital compliance platform
US10678522B1 (en) * 2018-12-14 2020-06-09 Mouri Tech Llc Compiler and method for compiling business rules for a serverless runtime environment
CN110389752A (en) * 2019-07-26 2019-10-29 上海量锐信息科技有限公司 A kind of financial business logical code implementation method separated with mathematical logic
US11354140B2 (en) * 2019-11-05 2022-06-07 Nb Ventures, Inc. Real time restructuring of enterprise or supply chain application
CN111324357B (en) * 2020-02-11 2022-06-28 支付宝(杭州)信息技术有限公司 Method for accessing application program to wind control platform and related equipment
CN111813406B (en) * 2020-07-14 2022-03-11 深圳前海移联科技有限公司 Dynamic event-driven model
CN113434173B (en) * 2021-06-24 2023-06-09 青岛海尔科技有限公司 Data processing method, device, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522031A (en) * 2018-08-29 2019-03-26 上海你我贷互联网金融信息服务有限公司 The deployment and upgrade method of air control strategy
CN110766289A (en) * 2019-09-26 2020-02-07 北京淇瑀信息科技有限公司 Dynamic wind control rule adjusting method and device and electronic equipment
CN110717661A (en) * 2019-09-27 2020-01-21 武汉极意网络科技有限公司 Method and device for updating wind control rule
CN111125682A (en) * 2019-12-17 2020-05-08 支付宝(杭州)信息技术有限公司 Wind control strategy adjusting method and device and electronic equipment
WO2021169212A1 (en) * 2020-02-26 2021-09-02 平安科技(深圳)有限公司 Risk control model construction method and apparatus, risk control checking method and apparatus, and computer device
CN111722863A (en) * 2020-06-23 2020-09-29 上海冰鉴信息科技有限公司 Method and device for updating wind control model

Also Published As

Publication number Publication date
CN113568604A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
US10095499B2 (en) Optimization for multi-project package manager
CN106559438B (en) Program uploading method and device based on target network platform
US9465608B2 (en) Code separation with semantic guarantees
CN113568604B (en) Method and device for updating wind control strategy and computer readable storage medium
KR20170081239A (en) Impact analysis
EP1873706A1 (en) Systems and methods for integrating services
CN106469049B (en) File scanning method and device
CN106873952B (en) Data processing system and method for mobile terminal webpage development and application device
US8676627B2 (en) Vertical process merging by reconstruction of equivalent models and hierarchical process merging
EP2674859A2 (en) Computing system, method for controlling thereof, and computer-readable recording medium having computer program for controlling thereof
EP2447898A2 (en) Technique for coordinating the distributed, parallel crawling of interactive client-server applications
CN110543427B (en) Test case storage method and device, electronic equipment and storage medium
CN113961332A (en) Method and device for realizing workflow engine, electronic equipment and storage medium
US9411618B2 (en) Metadata-based class loading using a content repository
CN109063040B (en) Client program data acquisition method and system
CN110633120A (en) Configuration software control processing method, device, server, user terminal and system
US10656922B2 (en) Systems and methods for providing an application transformation tool
EP1646940A2 (en) Designing computer programs
CN110990001A (en) IVR (Interactive Voice response) process execution method and device
US20150212799A1 (en) Migration between model elements of different types in a modeling environment
CN111151008B (en) Verification method and device for game operation data, configuration background and medium
CN114090514A (en) Log retrieval method and device for distributed system
CN113687852A (en) Automatic generation method and device for log collection configuration file
CN113515303A (en) Project transformation method, device and equipment
JP6011790B2 (en) File management apparatus and computer program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant