CN114222004B - Service data distribution execution method, device, computer equipment and storage medium - Google Patents
Service data distribution execution method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN114222004B CN114222004B CN202111527511.5A CN202111527511A CN114222004B CN 114222004 B CN114222004 B CN 114222004B CN 202111527511 A CN202111527511 A CN 202111527511A CN 114222004 B CN114222004 B CN 114222004B
- Authority
- CN
- China
- Prior art keywords
- service data
- rule
- data
- preset
- execution
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000013507 mapping Methods 0.000 claims abstract description 46
- 238000012986 modification Methods 0.000 claims description 25
- 230000004048 modification Effects 0.000 claims description 25
- 230000006870 function Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 17
- 238000001514 detection method Methods 0.000 claims description 6
- 238000012216 screening Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 abstract description 9
- 238000013473 artificial intelligence Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 238000004900 laundering Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application discloses a service data distribution execution method, a device, computer equipment and a storage medium. The application relates to the technical field of artificial intelligence, which comprises the following steps: acquiring service data and detecting whether the data type of the service data is a preconfigured data type; if the data type is the preset data type, taking the service data as the entry of the rule function, and executing the rule function to screen out a target rule set from the preset rule set; acquiring a plurality of rule factors corresponding to a plurality of target rules in a target rule set, and forwarding service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table so that the plurality of target node servers execute the service data to obtain a plurality of execution results; and if a preset execution completion instruction is received, comparing a plurality of execution results returned by the plurality of target node servers to obtain a decision result. The embodiment of the application can improve the processing efficiency of the service data.
Description
Technical Field
The present invention relates to the field of artificial intelligence technologies, and in particular, to a method and apparatus for performing service data distribution, a computer device, and a storage medium.
Background
The rule engine has wide application in numerous business scenes such as credit investigation, financial anti-fraud, bill swiping anti-cheating, anti-money laundering, credit card credit giving, marketing activities, commodity recommendation, insurance claims and the like, is embedded in an application program, separates business decision rules from application program codes, and expresses business decision logic by using a predefined script language so as to solve the complex problem. In the existing rule engine, the managed rule set is usually concentrated on a single node server, and the single node server processes service data according to the rule set, so that when the service data is more and the service rule is more complex, the service data processing efficiency is lower.
Disclosure of Invention
The embodiment of the invention provides a service data distribution execution method, a device, computer equipment and a storage medium, which aim to solve the problem of low processing efficiency of the existing service data.
In a first aspect, an embodiment of the present invention provides a service data distribution execution method, which includes:
acquiring service data and detecting whether the data type of the service data is a preconfigured data type;
If the data type of the service data is the preconfigured data type, taking the service data as a reference of a rule function, and executing the rule function to screen a target rule set from a preset rule set;
Acquiring a plurality of rule factors corresponding to a plurality of target rules in the target rule set, and forwarding the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table so as to enable the plurality of target node servers to execute the service data to obtain a plurality of execution results;
and if a preset execution completion instruction is received, comparing the execution results returned by the target node servers to obtain a decision result.
In a second aspect, an embodiment of the present invention further provides a service data distribution execution apparatus, which includes:
the detection unit is used for acquiring service data and detecting whether the data type of the service data is a preconfigured data type or not;
The screening unit is used for taking the service data as a parameter of a rule function if the data type of the service data is the preset data type, and executing the rule function to screen a target rule set from a preset rule set;
A forwarding unit, configured to obtain a plurality of rule factors corresponding to a plurality of target rules in the target rule set, and forward the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table, so that the plurality of target node servers execute the service data to obtain a plurality of execution results;
And the comparison unit is used for comparing the execution results returned by the target node servers to obtain a decision result if a preset execution completion instruction is received.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method when executing the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.
The embodiment of the invention provides a service data distribution execution method, a device, computer equipment and a storage medium. Wherein the method comprises the following steps: acquiring service data and detecting whether the data type of the service data is a preconfigured data type; if the data type of the service data is the preconfigured data type, taking the service data as a reference of a rule function, and executing the rule function to screen a target rule set from a preset rule set; acquiring a plurality of rule factors corresponding to a plurality of target rules in the target rule set, and forwarding the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table so as to enable the plurality of target node servers to execute the service data to obtain a plurality of execution results; and if a preset execution completion instruction is received, comparing the execution results returned by the target node servers to obtain a decision result. According to the technical scheme of the embodiment of the invention, the business data is forwarded to a plurality of target node servers to be executed in parallel according to a plurality of rule factors and the preconfigured rule mapping table, and is not executed on a single node service in sequence, so that the processing efficiency of the business data can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a service data distribution execution method according to an embodiment of the present invention;
fig. 2 is a schematic sub-flowchart of a service data distribution execution method according to an embodiment of the present invention;
fig. 3 is a flow chart of a service data distribution execution method according to another embodiment of the present invention;
Fig. 4 is a flow chart of a service data distribution execution method according to another embodiment of the present invention;
fig. 5 is a schematic block diagram of a service data distribution execution device according to an embodiment of the present invention; and
Fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Referring to fig. 1, fig. 1 is a flowchart of a service data distribution execution method according to an embodiment of the present invention. The business data distribution execution method provided by the embodiment of the invention can be applied to a server, and the business data distribution execution method is realized through an application program installed on the server, so that the business data processing efficiency is improved. As shown in fig. 1, the method includes the following steps S100 to S130.
S100, acquiring service data and detecting whether the data type of the service data is a preconfigured data type.
In the embodiment of the invention, after the service data is acquired, a decision service interface is firstly called to input the service data into a rule engine, and the rule engine firstly detects whether the data type of the service data is a preconfigured data type, wherein the preconfigured data type is any one of integer type, character type, boolean type and floating point type. The rules engine is understandably a component nested within the application program that enables the separation of business rules from application code.
S110, if the data type of the service data is the preset data type, taking the service data as the entry of a rule function, and executing the rule function to screen a target rule set from a preset rule set.
In the embodiment of the invention, if the data type of the service data is the preconfigured data type, which indicates that a rule engine can process the service data, taking the service data as a parameter of a rule function, and executing the rule function to screen a target rule set from a preset rule set, wherein the preset rule set comprises a plurality of preset rules which are preconfigured in the rule engine; the set of target rules includes a plurality of target rules associated with the business data. For example, if the service data is payment data, the payment data includes payment mode, payment time, amount, payee, payer, and the like, and the screening of the target rule set from the preset rule set according to the payment data may be payment mode rules, amount rules, and the like. It is understood that if the data type of the service data is not the preconfigured data type, it indicates that the rule engine cannot process the service data, and in practical application, either modifies the data type of the service data or modifies the preconfigured data type so that the data type of the service data matches the preconfigured data type, so a prompt of mismatch of the data type should be sent to the user to remind the user to modify the data type. For example, a prompt for a data type mismatch may be issued by way of a box.
S120, a plurality of rule factors corresponding to the multi-item target rule in the target rule set are obtained, and the service data is forwarded to a plurality of target node servers according to the rule factors and a preconfigured rule mapping table, so that the plurality of target node servers execute the service data to obtain a plurality of execution results.
In the embodiment of the present invention, after a target rule set is screened from a preset rule set, a rule engine may acquire a plurality of rule factors corresponding to a plurality of target rules in the target rule set, where the plurality of rule factors are a plurality of rule identifiers, for example, if the target rule set is a payment mode rule and an amount rule, the corresponding rule factors are LocateByAddres1 and LocateByAddres respectively, and understandably LocateByAddres1 represents rule factor 1 and locatedbyaddres2 represents rule factor 2; after the plurality of rule factors are obtained, forwarding the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table so that the plurality of target node servers acquire corresponding request data according to the service data, wherein the preconfigured rule mapping table records the mapping relation between the rule factors and the target node servers; the request data is data associated with the service data, for example, if the service data is payment data, the request data is a historical payment record; after the plurality of target node servers acquire the request data, executing the service data according to the request data and a preconfigured service rule to obtain a plurality of execution results, wherein the preconfigured service rule is a rule preconfigured on the target node servers, such as a payment mode rule, an amount rule and the like. Specifically, whether the service data accords with the service rule or not is detected according to the pre-configured service rule and the request data, if so, the execution result is passing, and if not, the execution result is not passing, i.e. if the service data is payment data, the execution result is whether payment is allowed or not.
And S130, if a preset execution completion instruction is received, comparing the execution results returned by the target node servers to obtain a decision result.
In the embodiment of the invention, after each target node server executes the service data according to the request data and the preset service rule to obtain the execution result, the execution result is sent to the server where the rule engine is located, and after all the target node servers process the service data, an execution completion instruction is sent to the server where the rule engine is located, that is, if the server where the rule engine is located receives the preset execution completion instruction, the execution results returned by the target node servers are compared to obtain a decision result. Understandably, if the execution result is payment or no payment, then the decision result is payment or no payment.
Referring to fig. 2, in an embodiment, for example, in an embodiment of the present invention, the step S130 includes the following steps S131-S132.
S131, if a preset execution completion instruction is received, comparing a plurality of scoring values corresponding to the execution results returned by the target node servers;
s132, selecting an execution result with the highest score value from the score values as a decision result.
In the embodiment of the present invention, if a server where a rule engine is located receives a preset execution completion instruction, which indicates that execution of the service data by all target node services is completed, a plurality of scoring values corresponding to the plurality of execution results returned by the plurality of target node servers are compared, and an execution result with the highest score value in the plurality of scoring values is selected as a decision result. For example, if the score paid by the execution result is 90 points, the score not paid by the execution result is 70 points, and the score paid is higher than the score not paid, so that the decision result is paid.
Fig. 3 is a flow chart of a service data distribution execution method according to another embodiment of the present invention, as shown in fig. 3, in this embodiment, the method includes steps S100-S140. That is, in the present embodiment, the method further includes step S140 after step S120 of the above embodiment.
S140, acquiring a plurality of time-consuming data corresponding to the execution results from the target node servers, and storing the time-consuming data to a database server, wherein each time-consuming data comprises a CPU memory consumption value and execution time.
In the embodiment of the invention, when each target node server executes the service data according to the request data and the pre-configured service rule, a monitoring thread is started to monitor time-consuming data for executing the service data, wherein the time-consuming data comprises a CPU memory consumption value and execution time consumption, and after execution is completed, the time-consuming data is acquired and stored in a database server through a message middleware. It should be noted that, in the embodiment of the present invention, the time-consuming data is saved to the database server, because the time-consuming data may be used as a basis for modifying the preconfigured rule mapping table later.
Fig. 4 is a flow chart of a service data distribution execution method according to another embodiment of the present invention, as shown in fig. 4, in this embodiment, the method includes steps S100-S170. That is, in the present embodiment, the method further includes step S150, step S160, and step S170 after step S130 of the above embodiment.
S150, if a preset checking instruction is received, acquiring a plurality of time-consuming data corresponding to the plurality of execution results from the database server according to the preset checking instruction, and displaying the time-consuming data;
s160, if a preset modification instruction is received, acquiring and displaying the preset rule mapping table according to the preset modification instruction;
S170, if a preset storage instruction is received, acquiring modification information in the preset rule mapping table according to the preset storage instruction, and updating mapping storage information corresponding to the preset rule mapping table according to the modification information.
In the embodiment of the invention, after comparing the execution results returned by the target node servers to obtain a decision result, a manager clicks a view button on a front-end page of a server where a rule engine is located to view time-consuming data on each target node server executing the service data at the time, that is, if a preset view instruction is received, a plurality of time-consuming data corresponding to the execution results are obtained from the database server according to the preset view instruction, and are displayed. After checking the time-consuming data corresponding to the execution results, a manager modifies the preset rule mapping table, that is, the manager clicks a modification button on a front-end page of a server where a rule engine is located, the manager can trigger the sending of a preset modification instruction, the server where the rule engine is located receives the preset modification instruction, acquires the preset rule mapping table according to the preset modification instruction and displays the preset rule mapping table, after modification is completed, the manager clicks a storage button, acquires modification information in the preset rule mapping table, and updates mapping storage information corresponding to the preset rule mapping table according to the modification information. In practical application, assume that rule factor 1 maps to target node server 1, CPU memory consumption value is 30%, and execution takes 3min; the rule factor 2 maps the target node server 2, the CPU memory consumption value is 40%, and the execution time is 4min; the rule factor 3 maps the target node server 3, the CPU memory consumption value is 20%, the execution time is 5min, and the rule factor 1 is considered to be mapped to the target node server 1, so that the mapping relation is not changed, only the mapping relation between the rule 2 and the rule factor 3 is modified, the modified mapping relation is that the rule factor 2 maps the target node server 3, and the rule factor 3 maps the target node server 2. It should be noted that, in the embodiment of the present invention, the preset rule mapping table is modified based on the CPU memory consumption value and the execution time consumption of the target node server, so as to achieve reasonable allocation, and further improve the processing efficiency of the service data.
Fig. 5 is a schematic block diagram of a service data distribution execution apparatus 200 according to an embodiment of the present invention. As shown in fig. 5, the present invention also provides a service data distribution execution apparatus 200 corresponding to the above service data distribution execution method. The service data distribution execution apparatus 200 includes a unit for executing the service data distribution execution method described above, and may be configured in a server. Specifically, referring to fig. 5, the service data distribution execution apparatus 200 includes a detection unit 201, a screening unit 202, a forwarding unit 203, and a comparison unit 204.
The detecting unit 201 is configured to obtain service data, and detect whether a data type of the service data is a preconfigured data type; the screening unit 202 is configured to take the service data as a parameter of a rule function if the data type of the service data is the preconfigured data type, and execute the rule function to screen a target rule set from a preset rule set; the forwarding unit 203 is configured to obtain a plurality of rule factors corresponding to a plurality of target rules in the target rule set, and forward the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table, so that the plurality of target node servers execute the service data to obtain a plurality of execution results; the comparing unit 204 is configured to compare the execution results returned by the target node servers to obtain a decision result if a preset execution completion instruction is received.
In some embodiments, for example, the forwarding unit 203 includes a forwarding subunit 2031.
The forwarding subunit 2031 is configured to forward the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table, so that the plurality of target node servers obtain corresponding request data according to the service data, and execute the service data according to the request data and the preconfigured rule to obtain a plurality of execution results.
In some embodiments, for example, the comparing unit 204 includes a comparing subunit 2041 and a selecting unit 2042.
The comparing subunit 2041 is configured to compare a plurality of score values corresponding to the plurality of execution results returned by the plurality of target node servers if a preset execution completion instruction is received; the selecting unit 2042 is configured to select, as a decision result, an execution result with a highest score among the plurality of scoring scores.
In some embodiments, for example, in this embodiment, the service data distribution execution apparatus 200 further includes a first acquiring unit 205, a second acquiring unit 206, a third acquiring unit 207, an updating unit 208, and a prompting unit 209.
The first obtaining unit 205 is configured to obtain, from the plurality of target node servers, a plurality of time-consuming data corresponding to the plurality of execution results, and store the plurality of time-consuming data to a database server, where each time-consuming data includes a CPU memory consumption value and an execution time consumption; the second obtaining unit 206 is configured to obtain, if a preset viewing instruction is received, a plurality of time-consuming data corresponding to the plurality of execution results from the database server according to the preset viewing instruction, and display the time-consuming data; the third obtaining unit 207 is configured to obtain and display the preconfigured rule mapping table according to the preset modification instruction if the preset modification instruction is received; the updating unit 208 is configured to obtain modification information in the preconfigured rule mapping table according to the preset save instruction if a preset save instruction is received, and update mapping save information corresponding to the preconfigured rule mapping table according to the modification information; the prompting unit 209 is configured to send a data type mismatch prompt to a user if the data type of the service data is not the preconfigured data type.
The specific implementation manner of the service data distribution execution device 200 in the embodiment of the present invention corresponds to the above service data distribution execution method, and is not described herein again.
The above-described service data distribution execution means may be implemented in the form of a computer program which can be run on a computer device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 300 is a server, and specifically, the server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, a content delivery network (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Referring to fig. 6, the computer device 300 includes a processor 302, a memory, and a network interface 305 connected by a system bus 301, wherein the memory may include a storage medium 303 and an internal memory 304.
The storage medium 303 may store an operating system 3031 and a computer program 3032. The computer program 3032, when executed, may cause the processor 302 to perform a business data distribution execution method.
The processor 302 is used to provide computing and control capabilities to support the operation of the overall computer device 300.
The internal memory 304 provides an environment for the execution of a computer program 3032 in the storage medium 303, which computer program 3032, when executed by the processor 302, causes the processor 302 to perform a method of service data distribution execution.
The network interface 305 is used for network communication with other devices. It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device 300 to which the present inventive arrangements may be applied, and that a particular computer device 300 may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Wherein the processor 302 is configured to execute a computer program 3032 stored in a memory to implement the following steps: acquiring service data and detecting whether the data type of the service data is a preconfigured data type; if the data type of the service data is the preconfigured data type, taking the service data as a reference of a rule function, and executing the rule function to screen a target rule set from a preset rule set; acquiring a plurality of rule factors corresponding to a plurality of target rules in the target rule set, and forwarding the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table so as to enable the plurality of target node servers to execute the service data to obtain a plurality of execution results; and if a preset execution completion instruction is received, comparing the execution results returned by the target node servers to obtain a decision result.
In some embodiments, for example, in this embodiment, when the processor 302 implements the step of forwarding the service data to a plurality of target node servers according to the plurality of rule factors and the preconfigured rule mapping table, so that the plurality of target node servers execute the service data to obtain a plurality of execution results, the following steps are specifically implemented: and forwarding the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table, so that the plurality of target node servers acquire corresponding request data according to the service data, and execute the service data according to the request data and the preconfigured service rules to obtain a plurality of execution results.
In some embodiments, for example, in this embodiment, when the processor 302 performs the step of comparing the execution results returned by the plurality of target node servers to obtain a decision result if a preset execution completion instruction is received, the following steps are specifically implemented: if a preset execution completion instruction is received, comparing a plurality of scoring values corresponding to the execution results returned by the target node servers; and selecting the execution result with the highest score value in the score values as a decision result.
In some embodiments, for example, in this embodiment, after implementing the step of obtaining a plurality of rule factors corresponding to a plurality of target rules in the target rule set, and forwarding the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table, so that the plurality of target node servers execute the service data to obtain a plurality of execution results, the specific implementation further includes the following steps: and acquiring a plurality of time-consuming data corresponding to the execution results from the target node servers, and storing the time-consuming data to a database server, wherein each time-consuming data comprises a CPU memory consumption value and execution time.
In some embodiments, for example, in this embodiment, after implementing the step of comparing the execution results returned by the plurality of target node servers to obtain the decision result if the preset execution completion instruction is received, the specific implementation further includes the following steps: if a preset checking instruction is received, acquiring a plurality of time-consuming data corresponding to the execution results from the database server according to the preset checking instruction, and displaying the time-consuming data; if a preset modification instruction is received, acquiring and displaying the preset rule mapping table according to the preset modification instruction; and if a preset storage instruction is received, acquiring modification information in the preset rule mapping table according to the preset storage instruction, and updating mapping storage information corresponding to the preset rule mapping table according to the modification information.
In some embodiments, for example, the embodiment, after implementing the step of acquiring service data and detecting whether the data type of the service data is a preconfigured data type, the specific implementation further includes the following steps: and if the data type of the service data is not the preconfigured data type, sending a data type mismatch prompt to a user.
It should be appreciated that in embodiments of the present application, the Processor 302 may be a central processing unit (Central Processing Unit, CPU), the Processor 302 may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), off-the-shelf Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program may be stored in a storage medium that is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform any of the embodiments of the business data distribution execution method described above.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.
Claims (8)
1. A service data distribution execution method, characterized by comprising:
acquiring service data and detecting whether the data type of the service data is a preconfigured data type;
If the data type of the service data is the preconfigured data type, taking the service data as a reference of a rule function, and executing the rule function to screen a target rule set from a preset rule set;
Acquiring a plurality of rule factors corresponding to a plurality of target rules in the target rule set, and forwarding the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table so as to enable the plurality of target node servers to execute the service data to obtain a plurality of execution results;
Acquiring a plurality of time-consuming data corresponding to the execution results from the target node servers, and storing the time-consuming data to a database server, wherein each time-consuming data comprises a CPU memory consumption value and execution time;
if a preset execution completion instruction is received, comparing the execution results returned by the target node servers to obtain a decision result;
And if a preset checking instruction is received, acquiring a plurality of time-consuming data corresponding to the plurality of execution results from the database server according to the preset checking instruction, and displaying the time-consuming data.
2. The method according to claim 1, wherein forwarding the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table to cause the plurality of target node servers to execute the service data to obtain a plurality of execution results, comprises:
And forwarding the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table, so that the plurality of target node servers acquire corresponding request data according to the service data, and execute the service data according to the request data and the preconfigured service rules to obtain a plurality of execution results.
3. The method of claim 1, wherein comparing the execution results returned by the target node servers to obtain a decision result if a preset execution completion instruction is received, comprises:
If a preset execution completion instruction is received, comparing a plurality of scoring values corresponding to the execution results returned by the target node servers;
and selecting the execution result with the highest score value in the score values as a decision result.
4. The method according to claim 1, wherein if the preset viewing instruction is received, obtaining, from the database server, a plurality of time-consuming data corresponding to the plurality of execution results according to the preset viewing instruction, and after displaying, further comprising:
If a preset modification instruction is received, acquiring and displaying the preset rule mapping table according to the preset modification instruction;
And if a preset storage instruction is received, acquiring modification information in the preset rule mapping table according to the preset storage instruction, and updating mapping storage information corresponding to the preset rule mapping table according to the modification information.
5. The method of claim 1, wherein after the acquiring the service data and detecting whether the data type of the service data is a preconfigured data type, further comprising:
And if the data type of the service data is not the preconfigured data type, sending a data type mismatch prompt to a user.
6. A service data distribution execution apparatus, characterized by comprising:
the detection unit is used for acquiring service data and detecting whether the data type of the service data is a preconfigured data type or not;
The screening unit is used for taking the service data as a parameter of a rule function if the data type of the service data is the preset data type, and executing the rule function to screen a target rule set from a preset rule set;
A forwarding unit, configured to obtain a plurality of rule factors corresponding to a plurality of target rules in the target rule set, and forward the service data to a plurality of target node servers according to the plurality of rule factors and a preconfigured rule mapping table, so that the plurality of target node servers execute the service data to obtain a plurality of execution results;
A first obtaining unit, configured to obtain, from the plurality of target node servers, a plurality of time-consuming data corresponding to the plurality of execution results, and store the plurality of time-consuming data to a database server, where each time-consuming data includes a CPU memory consumption value and execution time consumption;
The comparison unit is used for comparing the execution results returned by the target node servers to obtain a decision result if a preset execution completion instruction is received;
the second obtaining unit is used for obtaining a plurality of time-consuming data corresponding to the plurality of execution results from the database server according to the preset checking instruction and displaying the time-consuming data if the preset checking instruction is received.
7. A computer device, characterized in that it comprises a memory and a processor, on which a computer program is stored, which processor implements the method according to any of claims 1-5 when executing the computer program.
8. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111527511.5A CN114222004B (en) | 2021-12-14 | 2021-12-14 | Service data distribution execution method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111527511.5A CN114222004B (en) | 2021-12-14 | 2021-12-14 | Service data distribution execution method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114222004A CN114222004A (en) | 2022-03-22 |
CN114222004B true CN114222004B (en) | 2024-07-09 |
Family
ID=80701832
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111527511.5A Active CN114222004B (en) | 2021-12-14 | 2021-12-14 | Service data distribution execution method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114222004B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656688A (en) * | 2018-12-07 | 2019-04-19 | 北京京东金融科技控股有限公司 | A kind of method that realizing distributed service rule, system and server |
CN110297840A (en) * | 2019-05-22 | 2019-10-01 | 平安银行股份有限公司 | Data processing method, device, equipment and the storage medium of rule-based engine |
CN111858050A (en) * | 2020-07-17 | 2020-10-30 | 中国工商银行股份有限公司 | Server cluster mixed deployment method, cluster management node and related system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102694868B (en) * | 2012-06-07 | 2016-09-07 | 浪潮电子信息产业股份有限公司 | A kind of group system realizes and task dynamic allocation method |
CN106101090A (en) * | 2016-06-07 | 2016-11-09 | 中国建设银行股份有限公司 | Operational approach and rule engine system for regulation engine |
CN110764913B (en) * | 2019-10-28 | 2022-09-20 | 卫盈联信息技术(深圳)有限公司 | Data calculation method based on rule calling, client and readable storage medium |
-
2021
- 2021-12-14 CN CN202111527511.5A patent/CN114222004B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656688A (en) * | 2018-12-07 | 2019-04-19 | 北京京东金融科技控股有限公司 | A kind of method that realizing distributed service rule, system and server |
CN110297840A (en) * | 2019-05-22 | 2019-10-01 | 平安银行股份有限公司 | Data processing method, device, equipment and the storage medium of rule-based engine |
CN111858050A (en) * | 2020-07-17 | 2020-10-30 | 中国工商银行股份有限公司 | Server cluster mixed deployment method, cluster management node and related system |
Also Published As
Publication number | Publication date |
---|---|
CN114222004A (en) | 2022-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230275817A1 (en) | Parallel computational framework and application server for determining path connectivity | |
US20210232608A1 (en) | Trust scores and/or competence ratings of any entity | |
US10565570B2 (en) | Processing network architecture with companion database | |
US20200162350A1 (en) | Distributed storage / computation network for automatic transaction initiation | |
US20170024828A1 (en) | Systems and methods for identifying information related to payment card testing | |
US20120259753A1 (en) | System and method for managing collaborative financial fraud detection logic | |
US20080270303A1 (en) | Method and system for detecting fraud in financial transactions | |
US11567756B2 (en) | Causality determination of upgrade regressions via comparisons of telemetry data | |
US20080270171A1 (en) | Method and system for managing caselog fraud and chargeback | |
US20140289085A1 (en) | System and Method For Identifying Suspicious Financial Transactions | |
US8935621B1 (en) | Systems and methods for selecting components for inclusion in portions of a displayable file | |
CN112989763B (en) | Data acquisition method, device, computer equipment and storage medium | |
CN114222004B (en) | Service data distribution execution method, device, computer equipment and storage medium | |
CN112162762A (en) | Gray scale distribution method, gray scale distribution device and electronic equipment | |
CN112633619A (en) | Risk assessment method and device | |
US20230012460A1 (en) | Fraud Detection and Prevention System | |
US8832110B2 (en) | Management of class of service | |
CN109918620B (en) | Policy information display method, device, computer equipment and storage medium | |
CN109584087B (en) | Information processing method, device and storage medium | |
US10341210B2 (en) | Data registration system, data registration method, program and non-transitory recording medium | |
CN114841570B (en) | Data processing method, device, equipment and medium for customer relationship management system | |
TWM560616U (en) | An electronic device for providing an associated menu | |
CN111583037B (en) | Method and device for determining risk associated object and server | |
US20240184859A1 (en) | Auto-segmentation of non-fungible tokens using machine learning | |
CN108765172B (en) | Problem positioning method, device, storage medium and apparatus |
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 |