Main bypass switching method, device, equipment and storage medium for decision engine upgrade

By inputting transaction traffic data in parallel to the main path and bypass during the decision engine upgrade process, obtaining and comparing the decision results, ensuring that the switch is in line with expectations, the smooth switching and policy logic correctness of decision engine upgrade is solved, and a safe upgrade process is achieved.

CN115981744BActive Publication Date: 2025-07-25WEBANK (CHINA)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310009781.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-04
Publication Date
2025-07-25
Estimated Expiration
2043-01-04

AI Technical Summary

Technical Problem

In the prior art, it is difficult to switch smoothly when upgrading the decision engine and the correctness of the strategy logic cannot be guaranteed, resulting in complex operations and may affect actual transactions.

Method used

By inputting transaction traffic data to the main path of the decision engine and copying it to the decision engine bypass according to the preset percentage, the decision results of the main path and the bypass are obtained for comparison, and then switching is made to ensure that the results meet expectations.

Benefits of technology

It realizes smooth switching and upgrading of the decision engine while ensuring the correctness of the policy logic, reducing operational complexity and transaction impact.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115981744B_ABST
    Figure CN115981744B_ABST
Patent Text Reader

Abstract

The present application provides a main bypass switching method, device, equipment and storage medium for decision engine upgrade. The main bypass switching method for decision engine upgrade includes: inputting transaction traffic data into the main path of the decision engine, and copying the transaction traffic data to the bypass path of the decision engine according to a preset percentage, wherein the main path of the decision engine is a decision engine equipped with an old version of the policy package, and the bypass path of the decision engine is a decision engine equipped with the new version of the policy package; obtaining the main path decision result output by the main path of the decision engine, and obtaining the bypass path decision result output by the bypass path of the decision engine; and switching the main path of the decision engine and the bypass path of the decision engine according to the comparison result between the main path decision result and the bypass path decision result. The present application can achieve smooth switching and upgrade of the decision engine while ensuring the correctness of the policy logic.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial technology (Fintech), and in particular to a main bypass switching method, device, equipment and storage medium for upgrading a decision engine. Background Art

[0002] With the continuous development of financial technology, especially Internet technology finance, more and more technologies (such as distributed, artificial intelligence, etc.) are applied in the financial field, but the financial industry also puts forward higher requirements for technology.

[0003] At present, in the system processes involving decision-making engines in the field of financial credit, such as loan approval and post-loan management, the system only supports the decisions of the old version of the strategy engine. In addition, when updating the strategy of the system's decision engine, it is usually adopted to directly replace the old version of the decision engine with the new version. However, compared with the old version of the decision engine, the components and interfaces of the new version of the strategy decision engine have undergone great changes. It is necessary to rebuild a set of strategy input methods and reconstruct and upgrade the logic within the strategy, which makes the replacement process time-consuming and complex to operate, and there is a great risk of smooth switching. At the same time, after the strategy logic is reconstructed and upgraded, the correctness of the strategy logic cannot be verified, which may affect the actual transaction.

[0004] Therefore, when the decision engine needs to be upgraded, how to smoothly switch and upgrade the decision engine while ensuring the correctness of the strategy logic has become a technical problem that needs to be urgently solved in the field of financial technology computing. Summary of the invention

[0005] The main purpose of the present application is to provide a main bypass switching method, device, equipment and storage medium for upgrading a decision engine, aiming to solve the technical problems in the prior art that smooth switching is difficult when upgrading a decision engine and the correctness of the strategy is not guaranteed.

[0006] To achieve the above object, the present application provides a main bypass switching method for upgrading a decision engine, and the main bypass switching method for upgrading a decision engine includes:

[0007] Input the transaction flow data into the decision engine main path, and copy the transaction flow data to the decision engine bypass path according to a preset percentage, wherein the decision engine main path is the decision engine equipped with the old version of the policy package, and the decision engine bypass is the decision engine equipped with the new version of the policy package;

[0008] Obtaining a main path decision result outputted by the decision engine, and obtaining a bypass decision result outputted by the decision engine;

[0009] According to the comparison result between the main path decision result and the bypass decision result, the decision engine main path and the decision engine bypass are switched.

[0010] In some feasible embodiments, the step of switching the main path of the decision engine and the bypass of the decision engine according to the comparison result between the main path decision result and the bypass decision result includes:

[0011] Detect whether the comparison result between the main path decision result and the bypass decision result meets the expectation;

[0012] When it is detected that the comparison result meets the expectation, obtain all the bypass decision results of the bypass of the decision engine for making decisions on all the transaction flow data;

[0013] When the comparison result between the main path decision result and all the bypass decision results meets the expectation, switch the main path of the decision engine and the bypass of the decision engine.

[0014] In some feasible embodiments, the step of obtaining all the bypass decision results of the bypass of the decision engine for making decisions on all the transaction flow data includes:

[0015] Increase the value of the preset percentage, and repeatedly execute the step of copying the transaction flow data to the bypass of the decision engine according to the increased preset percentage and the step of obtaining the bypass decision result output by the bypass of the decision engine, so as to obtain all the bypass decision results of the bypass of the decision engine for making decisions on all the transaction flow data when the value of the preset percentage is increased to one hundred percent.

[0016] In some feasible embodiments, after the step of detecting whether the comparison result between the main path decision result and the bypass decision result meets the expectation, the method further includes:

[0017] If the decision comparison result does not meet the expectation, repair the new version of the policy package;

[0018] Enable the bypass of the decision engine to carry the repaired new version of the policy package, and return to execute the step of copying the transaction flow data to the bypass of the decision engine according to the preset percentage.

[0019] In some feasible embodiments, after the steps of obtaining the main path decision result output by the main path of the decision engine and obtaining the bypass decision result output by the bypass of the decision engine, the method further includes:

[0020] Use the main path decision result as the target decision result;

[0021] Save the bypass decision result, where the bypass decision result is used to compare with the main path decision result to obtain the comparison result.

[0022] In some feasible embodiments, after the step of switching the main path of the decision engine to the bypass path of the decision engine, the method further includes:

[0023] Obtain new transaction flow data;

[0024] Input all of the new transaction flow data into the switched main path of the decision engine, and use the decision result output by the switched main path of the decision engine as the new target decision result.

[0025] In some feasible embodiments, before the step of copying the transaction flow data to the bypass path of the decision engine by a percentage, the method further includes:

[0026] Cause the new version policy package to overwrite the policy package carried by the bypass path of the decision engine to update the bypass path of the decision engine.

[0027] In addition, to achieve the above object, the present application further provides a main bypass switching device for decision engine upgrade. The main bypass switching device for decision engine upgrade is a virtual device, and the main bypass switching device for decision engine upgrade includes:

[0028] A data input module, configured to input transaction flow data into the main path of the decision engine, and copy the transaction flow data to the bypass path of the decision engine by a preset percentage, where the main path of the decision engine is a decision engine carrying an old version policy package, and the bypass path of the decision engine is a decision engine carrying the new version policy package;

[0029] A decision acquisition module, configured to obtain the main path decision result output by the main path of the decision engine, and obtain the bypass decision result output by the bypass path of the decision engine;

[0030] A main bypass switching module, configured to switch the main path of the decision engine and the bypass path of the decision engine according to a comparison result between the main path decision result and the bypass decision result.

[0031] In addition, to achieve the above object, the present application further provides a main bypass switching device for decision engine upgrade. The main bypass switching device for decision engine upgrade includes: a memory, a processor, and a main bypass switching program for decision engine upgrade stored on the memory and executable on the processor. When the main bypass switching program for decision engine upgrade is executed by the processor, the steps of the main bypass switching method for decision engine upgrade as described above are implemented.

[0032] The present application also provides a storage medium, on which a main bypass switching program for decision engine upgrade is stored. When the main bypass switching program for decision engine upgrade is executed by a processor, the steps of the main bypass switching method for decision engine upgrade as described above are implemented.

[0033] The present application provides a main bypass switching method, device, equipment and storage medium for decision engine upgrade. The main bypass switching method for decision engine upgrade includes: inputting transaction flow data into the main path of the decision engine, and copying the transaction flow data to the bypass of the decision engine according to a preset percentage, where the main path of the decision engine is a decision engine equipped with an old version of the policy package, and the bypass of the decision engine is a decision engine equipped with the new version of the policy package; obtaining the main path decision result output by the main path of the decision engine, and obtaining the bypass decision result output by the bypass of the decision engine; and switching the main path of the decision engine and the bypass of the decision engine according to the comparison result between the main path decision result and the bypass decision result.

[0034] Compared with the prior art method of directly replacing the old version of the decision engine with the new version of the decision engine, the main bypass switching method for decision engine upgrade in the present application inputs the transaction flow data into the main path of the decision engine, and copies the transaction flow data to the bypass of the decision engine according to a preset percentage, where the main path of the decision engine is a decision engine equipped with an old version of the policy package, and the bypass of the decision engine is a decision engine equipped with the new version of the policy package. Then, the main path decision result output by the main path of the decision engine is obtained, and the bypass decision result output by the bypass of the decision engine is obtained. Finally, the main path of the decision engine and the bypass of the decision engine are switched according to the comparison result between the main path decision result and the bypass decision result.

[0035] In this way, based on the method of executing decisions in parallel using the new version and the old version of the decision engine as described above, and then updating the decision engine after verifying that the new version of the decision result meets the expectations, compared with the traditional method of directly replacing the old version of the decision engine with the new version of the decision engine, the main bypass switching method for decision engine upgrade in the present application can perform a smooth switching upgrade on the decision engine while ensuring the correctness of the policy logic. Description of the Drawings

[0036] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0037] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0038] Figure 1 Schematic diagram of the implementation process of the first embodiment of the main bypass switching method for the upgrade of the decision engine of the present application;

[0039] Figure 2 Schematic diagram of the implementation process of the third embodiment of the main bypass switching method for the upgrade of the decision engine of the present application;

[0040] Figure 3 Schematic diagram of the device structure of the main bypass switching device for the upgrade of the decision engine in the device hardware operating environment involved in the embodiment solution of the present application.

[0041] Figure 4 Schematic diagram of the functional modules of the main bypass switching device for the upgrade of the decision engine of the present application.

[0042] The realization, functional features and advantages of the purpose of the present application will be further described with reference to the embodiments and the drawings. Detailed implementation manners

[0043] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.

[0045] It should be noted that in this embodiment, in the system processes such as loan approval and post-loan management in the financial credit field that involve the decision-making of the decision engine, the system only supports the decision-making of the old version of the policy engine. And when updating the policy of the decision engine of the system, usually the old version of the decision engine is directly replaced by the new version of the decision engine. However, compared with the old version of the decision engine, the components and interfaces of the new version of the policy decision engine have changed greatly, and a set of policy input parameter methods and internal policy logic reconstruction and upgrade need to be re-established, making the replacement process time-consuming and complex, with a high risk of smooth switching. At the same time, after the policy logic reconstruction and upgrade, the correctness of the policy logic cannot be verified, which may affect the actual transactions.

[0046] Therefore, when the decision engine needs to be upgraded, how to smoothly switch and upgrade the decision engine while ensuring the correctness of the policy logic has become a technical problem to be solved urgently in the field of fintech.

[0047] In view of the above problems, this application provides a main-bypass switching method for decision engine upgrade.

[0048] Compared with the prior art of directly replacing the old version of the decision engine with the new version of the decision engine, the main-bypass switching method for decision engine upgrade provided by this application inputs transaction flow data into the main path of the decision engine and copies the transaction flow data to the bypass of the decision engine according to a preset percentage. Among them, the main path of the decision engine is a decision engine equipped with an old version of the policy package, and the bypass of the decision engine is a decision engine equipped with the new version of the policy package. Then, obtain the main path decision result output by the main path of the decision engine and the bypass decision result output by the bypass of the decision engine. Finally, according to the comparison result between the main path decision result and the bypass decision result, switch the main path of the decision engine and the bypass of the decision engine.

[0049] In this way, based on the method of parallelly executing decisions using the new version and the old version of the decision engine and then updating the decision engine after verifying that the new version of the decision result meets the expectations, compared with the traditional method of directly replacing the old version of the decision engine with the new version of the decision engine, the main-bypass switching method for decision engine upgrade provided by this application can smoothly switch and upgrade the decision engine while ensuring the correctness of the policy logic.

[0050] Based on the overall concept of the main-bypass switching method for decision engine upgrade of this application, various embodiments of the main-bypass switching method for decision engine upgrade of this application are proposed. In various embodiments of the main-bypass switching method for decision engine upgrade of this application, the main-bypass switching method for decision engine upgrade of this application can be specifically executed by a terminal device loaded with the above decision engine. Based on this, in the following, the terminal device is used as the execution subject of the main-bypass switching method for decision engine upgrade of this application to elaborate on various embodiments.

[0051] Please refer to Figure 1 , Figure 1 which is a schematic diagram of the implementation steps flow of the first embodiment of the main-bypass switching method for decision engine upgrade of this application. It should be understood that although the logical order is shown in the flowchart, in some cases, the main-bypass switching method for decision engine upgrade of this application can of course be executed in a different order from that shown or described here.

[0052] As Figure 3As shown in the first embodiment of the main bypass switching method for upgrading the decision engine of the present application, the main bypass switching method for upgrading the decision engine of the present application may include:

[0053] Step S10, input the transaction flow data into the main path of the decision engine, and copy the transaction flow data to the bypass of the decision engine according to a preset percentage, where the main path of the decision engine is the decision engine equipped with the old version of the policy package, and the bypass of the decision engine is the decision engine equipped with the new version of the policy package;

[0054] It should be noted that in this embodiment, to increase the number of test samples and improve the stability of the test, the transaction flow is the flow data generated by customers during transactions such as account opening, borrowing, and post-loan management collected by the system over multiple days.

[0055] In this embodiment, when the system is about to release a new policy package, after the system collects the transaction flow data of customers, all the above transaction flow data is input into the main path of the decision engine, and the transaction flow data is copied to the bypass of the decision engine according to a preset percentage.

[0056] Step S20, obtain the main path decision result output by the main path of the decision engine, and obtain the bypass decision result output by the bypass of the decision engine;

[0057] In this embodiment, after the transaction flow data is input into the main path and the bypass of the decision engine, decisions are made through the main path and the bypass of the decision engine respectively, and then the main path decision result output by the main path of the decision engine is obtained, and the bypass decision result output by the bypass of the decision engine is obtained.

[0058] Step S30, switch the main path of the decision engine and the bypass of the decision engine according to the comparison result between the main path decision result and the bypass decision result.

[0059] In this embodiment, after obtaining the main path decision result and the bypass decision result, the main path decision result and the bypass decision result are compared through manual business operation or through the system to obtain a comparison result. When the comparison result meets the expectation, the main path of the decision engine and the bypass of the decision engine are switched.

[0060] Further, in a feasible embodiment, after the step of obtaining the main path decision result output by the main path of the decision engine and obtaining the bypass decision result output by the bypass of the decision engine in the above step S20, the main bypass switching method for upgrading the decision engine of the present application further includes:

[0061] Step A10, use the main path decision result as the target decision result;

[0062] In this embodiment, after the transaction flow data is input into the main path of the decision engine and the main path decision result is output, the main path decision result is saved and takes effect as the target decision result, that is, as the decision result affecting the actual transaction.

[0063] Step A20, save the bypass decision result, where the bypass decision result is used to obtain the comparison result by comparing with the main path decision result.

[0064] In this embodiment, after the transaction flow data is input into the bypass of the decision engine and the bypass decision result is output, only the bypass decision result is saved, and the bypass decision result has no impact on any actual transaction.

[0065] Further, in a feasible embodiment, after the step S30 of switching the main path of the decision engine and the bypass of the decision engine in the above, the main bypass switching method for upgrading the decision engine of the present application further includes:

[0066] Step B10, obtain new transaction flow data;

[0067] It should be noted that in this embodiment, after the main bypass of the decision engine is switched, the main path of the switched decision engine is loaded with the new version policy package and serves as the decision engine for subsequent transactions. The bypass of the switched decision engine is loaded with the old version policy package and waits to be overwritten by the updated policy package during the next upgrade.

[0068] In this embodiment, after the main bypass of the decision engine is switched, when a customer conducts a transaction, the system detects the generation of a new transaction and obtains new transaction flow data.

[0069] Step B20, input all the new transaction flow data into the main path of the switched decision engine, and use the decision result output by the main path of the switched decision engine as the new target decision result.

[0070] In this embodiment, after obtaining new data, all the new transaction flow data is input into the main path of the switched decision engine, and the decision result output by the main path of the switched decision engine directly takes effect as the new target decision result, that is, outputs the decision result affecting the actual transaction.

[0071] Further, in a feasible embodiment, before the step S10 of copying the transaction flow data to the bypass of the decision engine by a percentage in the above, the main bypass switching method for upgrading the decision engine of the present application further includes:

[0072] Step C10, update the bypass of the decision engine by covering the policy package carried by the bypass of the decision engine with the new version policy package.

[0073] In this embodiment, when a new version of the policy package is ready for release and testing, the new version of the policy package is made to overwrite the policy package currently carried by the decision engine bypass, so as to update the decision engine bypass.

[0074] In this embodiment, compared with the prior art method of directly replacing the old version of the decision engine with the new version of the decision engine, in this application, transaction flow data is input into the main path of the decision engine, and the transaction flow data is copied to the decision engine bypass according to a preset percentage. Among them, the main path of the decision engine is the decision engine carrying the old version of the policy package, and the decision engine bypass is the decision engine carrying the new version of the policy package. Then, the main path decision result output by the decision engine main path is obtained, and the bypass decision result output by the decision engine bypass is obtained. Finally, according to the comparison result between the main path decision result and the bypass decision result, the decision engine main path and the decision engine bypass are switched.

[0075] In this way, based on the method of parallelly executing decisions using the new version of the decision engine and the old version of the decision engine as described above, and then updating the decision engine after verifying that the new version of the decision result meets the expectations, compared with the traditional method of directly replacing the old version of the decision engine with the new version of the decision engine, the main bypass switching method for decision engine upgrade in this application can smoothly switch and upgrade the decision engine while ensuring the correctness of the policy logic.

[0076] Further, based on the first embodiment of the main bypass switching method for decision engine upgrade in this application, a second embodiment of the main bypass switching method for decision engine upgrade in this application is proposed.

[0077] In the second embodiment of the main bypass switching method for decision engine upgrade in this application, step S30 above, the step of switching the decision engine main path and the decision engine bypass according to the comparison result between the main path decision result and the bypass decision result, may include:

[0078] Step S31, detecting whether the comparison result between the main path decision result and the bypass decision result meets the expectations;

[0079] It should be noted that in this embodiment, when the main path decision result is the same as the bypass decision result, it is determined that the comparison result meets the expectations; otherwise, the comparison result does not meet the expectations.

[0080] In this embodiment, after comparing the main path decision result and the bypass decision result, the system detects whether the comparison result between the main path decision result and the bypass decision result meets the expectations.

[0081] Step S32, when it is detected that the comparison result meets the expectation, obtain all the bypass decision results of the decision engine bypass for making decisions on all the transaction flow data;

[0082] In this embodiment, when it is detected that the comparison result meets the expectation, after the decision engine bypass makes decisions on all the transaction flow data, obtain all the bypass decision results output thereby.

[0083] Step S33, when the comparison result between the main path decision result and all the bypass decision results meets the expectation, switch between the decision engine main path and the decision engine bypass.

[0084] When the comparison result between the main path decision result and any one of the bypass decision results among all the bypass decision results meets the expectation, switch between the decision engine main path and the decision engine bypass.

[0085] Further, in a feasible embodiment, the above step S32, the step of obtaining all the bypass decision results of the decision engine bypass for making decisions on all the transaction flow data, includes:

[0086] Step S321, increase the value of the preset percentage, and repeatedly execute the step of copying the transaction flow data to the decision engine bypass according to the increased preset percentage, and the step of obtaining the bypass decision result output by the decision engine bypass, so as to obtain all the bypass decision results of the decision engine bypass for making decisions on all the transaction flow data when the value of the preset percentage is increased to one hundred percent.

[0087] In this embodiment, after copying the transaction flow data to the decision engine bypass according to the preset percentage for subsequent testing and the comparison result meets the expectation, increase the value of the above preset percentage, and repeatedly copy the transaction flow data to the decision engine bypass according to the increased preset percentage, then obtain the bypass decision result output by the decision engine bypass, and detect whether the comparison result between the main path decision result and the bypass decision result meets the expectation. After the comparison result meets the expectation, increase the value of the preset percentage again until all the bypass decision results of the decision engine bypass for making decisions on all the transaction flow data are obtained when the value of the preset percentage is increased to one hundred percent.

[0088] Exemplarily, when testing by releasing a new version of the policy package, first set the copy percentage to 30%, that is, input all transaction flow data to the main path of the decision engine, and copy 30% of the transaction flow data to the bypass path of the decision engine. Then, obtain the main path decision result output by the main path of the decision engine and the first bypass decision result output by the bypass path of the decision engine. When the main path decision result is consistent with the first bypass decision result, increase the copy percentage to 65%, and then copy 65% of the transaction flow data to the bypass path of the decision engine. Then, obtain the second bypass decision result output by the bypass path of the decision engine. When the main path decision result is consistent with the second bypass decision result, increase the copy percentage to 100%, and then copy 100% of the transaction flow data to the bypass path of the decision engine. Then, obtain the third bypass decision result output by the bypass path of the decision engine. When the main path decision result is also consistent with the third bypass decision result, complete the test, switch the main path and the bypass path of the decision engine, so as to complete the upgrade and update of the decision engine.

[0089] In this embodiment, compared with the prior art of directly replacing the old version of the decision engine with the new version of the decision engine, the main bypass switching method for decision engine upgrade in this application copies the transaction flow data to the bypass path of the decision engine for testing according to a preset percentage, and when the result meets the expectation, increases the value of the preset percentage for loop testing, which can dynamically determine the effective link according to the ratio, thereby improving the reliability of the test result and the flexibility of the decision engine.

[0090] Further, based on the first and second embodiments of the main bypass switching method for decision engine upgrade in this application, a third embodiment of the main bypass switching method for decision engine upgrade in this application is proposed.

[0091] In the third embodiment of the main bypass switching method for decision engine upgrade in this application, after the step of detecting whether the comparison result between the main path decision result and the bypass path decision result meets the expectation in the above step S31, the main bypass switching method for decision engine upgrade in this application may further include:

[0092] Step a, if the decision comparison result does not meet the expectation, repair the new version of the policy package;

[0093] In this embodiment, if the main path decision result is inconsistent with the bypass path decision result, that is, does not meet the expectation, repair the new version of the policy package for the problems found in the comparison.

[0094] Step b, make the bypass path of the decision engine carry the repaired new version of the policy package, and return to execute the step of copying the transaction flow data to the bypass path of the decision engine according to the preset percentage.

[0095] In this embodiment, after the new version of the policy package is repaired, the decision engine is bypass-mounted with the repaired new version of the policy package, and the process returns to the step of copying the transaction flow data to the decision engine bypass by a preset percentage, and the steps of executing this step and subsequent tests are performed until the test comparison result meets the expectations.

[0096] Exemplarily, please refer to Figure 2 , Figure 2 which is a schematic diagram of the implementation process of the third embodiment of the main bypass switching method for upgrading the decision engine of this application. Before the upgrade, transactions directly pass through the main package 1.0 mounted on the main path of the decision engine for decision-making and output the decision result. When a new function needs to be launched and the developed policy package 1.1 is ready for release, the prior art is for business personnel to directly release the policy package 1.1 to replace the main package. Subsequently, transactions directly pass through the main package 1.1 mounted on the main path of the decision engine for decision-making and output the decision result. In the main bypass switching method for upgrading the decision engine of this application, a new release method is proposed, that is, business personnel make the released policy package 1.1 cover the policy package of the bypass, and the main path is still the old version main package 1.0. Then, 100% of the transaction flow data is input to the main path of the decision engine and copied to the decision engine bypass by percentage flow. The decision-making is performed respectively through the main package 1.0 mounted on the main path of the decision engine and the bypass package 1.1 mounted on the decision engine bypass and the decision result is output. If the verification result by the business personnel meets the expectations, the operation and maintenance personnel are notified to perform the main bypass switching. If the business personnel find problems in the result, after repairing the problems, the repaired bypass package 1.2 is released, and the process returns to the step of obtaining the bypass decision result output by the decision engine bypass until the test result is that the comparison result meets the expectations. At this time, the main bypass is switched to complete the upgrade and update of the decision engine.

[0097] In this embodiment, compared with the prior art of directly replacing the old version of the decision engine with the new version of the decision engine, the main bypass switching method for upgrading the decision engine of this application adopts the method of parallel decision-making between the main path and the bypass of the decision engine. When there are problems in the test results of the decision engine bypass mounted with the new version of the policy package to be pre-released, the problems are repaired, and the repaired decision engine bypass is repeatedly tested until the test results meet the expectations, verifying the correctness of the policy, thus avoiding the impact on actual transactions after the upgrade and switching of the decision engine.

[0098] In addition, please refer to Figure 3 , Figure 3 which is a schematic diagram of the device structure of the main bypass switching device for upgrading the decision engine in the device hardware operating environment involved in the embodiment solution of this application.

[0099] As Figure 3As shown in the figure, the main bypass switching device for the decision engine upgrade may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005. The memory 1005 can be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 can also be a storage device independent of the aforementioned processor 1001.

[0100] Optionally, the main bypass switching device for the decision engine upgrade may further include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, sensors, an audio circuit, a WiFi module, etc. The rectangular user interface may include a display screen and an input sub-module such as a keyboard. Optionally, the rectangular user interface may further include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a WIFI interface).

[0101] Those skilled in the art can understand that Figure 3 the structure of the main bypass switching device for the decision engine upgrade shown in

[0102] does not constitute a limitation on the main bypass switching device for the decision engine upgrade, and may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. Figure 3 As shown in the figure, the memory 1005, as a computer storage medium, may include an operating device, a network communication module, and a main bypass switching program for the decision engine upgrade. The operating device is a program for managing and controlling the hardware and software resources of the main bypass switching device for the decision engine upgrade, and supports the operation of the main bypass switching program for the decision engine upgrade and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, as well as the communication between the main bypass switching device for the decision engine upgrade and other hardware and software.

[0103] In Figure 3 the main bypass switching device for the decision engine upgrade shown in the figure, the processor 1001 is used to execute the main bypass switching program stored in the memory 1005 and perform the following steps:

[0104] Input the transaction traffic data into the main path of the decision engine, and copy the transaction traffic data to the bypass of the decision engine according to a preset percentage, where the main path of the decision engine is the decision engine equipped with the old version of the policy package, and the bypass of the decision engine is the decision engine equipped with the new version of the policy package;

[0105] Obtain the main path decision result output by the main path of the decision engine, and obtain the bypass decision result output by the bypass of the decision engine;

[0106] Switch the main path of the decision engine and the bypass of the decision engine according to the comparison result between the main path decision result and the bypass decision result.

[0107] In some feasible embodiments, the processor 1001 is further configured to execute the main bypass switching program for decision engine upgrade stored in the memory 1005, and perform the following steps:

[0108] Detect whether the comparison result between the main path decision result and the bypass decision result meets the expectation;

[0109] When it is detected that the comparison result meets the expectation, obtain all the bypass decision results of the decision engine bypass for making decisions on all the transaction flow data;

[0110] When the comparison result between the main path decision result and all the bypass decision results meets the expectation, switch the main path of the decision engine and the bypass of the decision engine.

[0111] In some feasible embodiments, the processor 1001 is further configured to execute the main bypass switching program for decision engine upgrade stored in the memory 1005, and perform the following steps:

[0112] Increase the value of the preset percentage, and repeat the steps of copying the transaction flow data to the bypass of the decision engine according to the preset percentage and the step of obtaining the bypass decision result output by the bypass of the decision engine according to the increased preset percentage, so as to obtain all the bypass decision results of the decision engine bypass for making decisions on all the transaction flow data when the value of the preset percentage is increased to one hundred percent.

[0113] In some feasible embodiments, the processor 1001 is further configured to execute the main bypass switching program for decision engine upgrade stored in the memory 1005. After performing the step of detecting whether the comparison result between the main path decision result and the bypass decision result meets the expectation, the following steps are further performed:

[0114] If the decision comparison result does not meet the expectation, repair the new version policy package;

[0115] Enable the bypass of the decision engine to carry the repaired new version policy package, and return to execute the step of copying the transaction flow data to the bypass of the decision engine according to the preset percentage.

[0116] In some feasible embodiments, the processor 1001 is further configured to execute the main bypass switching program for decision engine upgrade stored in the memory 1005. After performing the steps of obtaining the main path decision result of the main path output of the decision engine and obtaining the bypass decision result of the bypass output of the decision engine, the following steps are further performed:

[0117] Use the main path decision result as the target decision result;

[0118] Save the bypass decision result, where the bypass decision result is used to compare with the main path decision result to obtain the comparison result.

[0119] In some feasible embodiments, the processor 1001 is further configured to execute the main bypass switching program for decision engine upgrade stored in the memory 1005. After performing the step of switching the main path of the decision engine and the bypass of the decision engine, the following steps are further performed:

[0120] Obtain new transaction traffic data;

[0121] Input all of the new transaction traffic data into the switched main path of the decision engine, and use the decision result output by the switched main path of the decision engine as the new target decision result.

[0122] In some feasible embodiments, the processor 1001 is further configured to execute the main bypass switching program for decision engine upgrade stored in the memory 1005. Before performing the step of copying the transaction traffic data to the bypass of the decision engine by a percentage, the following steps are further performed:

[0123] Cause the new version policy package to overwrite the policy package carried by the bypass of the decision engine to update the bypass of the decision engine.

[0124] The specific implementation manner of the main bypass switching device for decision engine upgrade in this application is basically the same as each embodiment of the above-mentioned main bypass switching method for decision engine upgrade, and will not be elaborated here.

[0125] In addition, please refer to Figure 4 , Figure 4 which is a schematic diagram of the functional modules of the main bypass switching device for decision engine upgrade in this application. This application also provides a main bypass switching device for decision engine upgrade. The main bypass switching device for decision engine upgrade includes:

[0126] A data input module, configured to input transaction traffic data into the main path of the decision engine and copy the transaction traffic data to the bypass of the decision engine by a preset percentage, where the main path of the decision engine is a decision engine carrying an old version policy package, and the bypass of the decision engine is a decision engine carrying the new version policy package;

[0127] A decision acquisition module, configured to acquire the main road decision result output by the main road of the decision engine and acquire the bypass decision result output by the bypass of the decision engine;

[0128] A main bypass switching module, configured to switch the main road of the decision engine and the bypass of the decision engine according to the comparison result between the main road decision result and the bypass decision result.

[0129] Optionally, the main bypass switching module 30 includes:

[0130] A detection unit, configured to detect whether the comparison result between the main road decision result and the bypass decision result meets the expectation;

[0131] A bypass decision result unit, configured to acquire all bypass decision results of the decision engine bypass for making decisions on all the transaction flow data when it is detected that the comparison result meets the expectation;

[0132] A switching unit, configured to switch the main road of the decision engine and the bypass of the decision engine when the comparison result between the main road decision result and all the bypass decision results meets the expectation.

[0133] Optionally, the bypass decision result unit includes:

[0134] A proportional control sub-unit, configured to increase the value of the preset percentage, and repeatedly execute the steps of copying the transaction flow data to the bypass of the decision engine according to the preset percentage and acquiring the bypass decision result output by the bypass of the decision engine after the increase of the preset percentage until all bypass decision results of the decision engine bypass for making decisions on all the transaction flow data are acquired when the value of the preset percentage is increased to one hundred percent.

[0135] Optionally, the detection unit includes:

[0136] A repair sub-unit, configured to repair the new version policy package if the decision comparison result does not meet the expectation;

[0137] A loop sub-unit, configured to enable the bypass of the decision engine to carry the repaired new version policy package and return to execute the step of copying the transaction flow data to the bypass of the decision engine according to the preset percentage.

[0138] Optionally, the main bypass switching device for upgrading the decision engine of the present application further includes:

[0139] A decision output module, configured to use the main road decision result as the target decision result;

[0140] A decision saving module, configured to save the bypass decision result, where the bypass decision result is used to compare with the main path decision result to obtain the comparison result.

[0141] Optionally, the main bypass switching device for upgrading the decision engine of the present application further includes:

[0142] A transaction module, configured to obtain new transaction flow data; input all the new transaction flow data into the main path of the switched decision engine, and use the decision result output by the switched decision engine main path as the new target decision result.

[0143] Optionally, the main bypass switching device for upgrading the decision engine of the present application further includes:

[0144] An overriding module, configured to cause the new version policy package to override the policy package carried by the decision engine bypass to update the decision engine bypass.

[0145] The specific implementation manners of the main bypass switching device for upgrading the decision engine of the present application are basically the same as those of the embodiments of the above-mentioned main bypass switching method for upgrading the decision engine, and will not be elaborated herein.

[0146] In addition, the present application also provides a storage medium, on which a program for main bypass switching of decision engine upgrade is stored. When the program for main bypass switching of decision engine upgrade is executed by a processor, the steps of the above-mentioned main bypass switching method for decision engine upgrade of the present application are implemented.

[0147] The specific embodiments of the computer storage medium of the present application are basically the same as those of the embodiments of the above-mentioned main bypass switching method for decision engine upgrade, and will not be elaborated herein.

[0148] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.

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

[0150] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0151] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.

Claims

1. A main bypass switching method for decision engine upgrade, characterized in that The main bypass switching method for the upgrade of the decision-making engine includes: Input the transaction flow data into the main path of the decision-making engine, and copy the transaction flow data to the bypass path of the decision-making engine according to a preset percentage. Among them, the main path of the decision-making engine is the decision-making engine equipped with the old version of the policy package, and the bypass path of the decision-making engine is the decision-making engine equipped with the new version of the policy package; Obtain the main path decision result output by the main path of the decision-making engine, and obtain the bypass path decision result output by the bypass path of the decision-making engine; Switch the main path of the decision-making engine and the bypass path of the decision-making engine according to the comparison result between the main path decision result and the bypass path decision result; The step of switching the main path of the decision-making engine and the bypass path of the decision-making engine according to the comparison result between the main path decision result and the bypass path decision result includes: Detect whether the comparison result between the main path decision result and the bypass path decision result meets the expectation; When it is detected that the comparison result meets the expectation, obtain all the bypass path decision results of the bypass path of the decision-making engine for making decisions on all the transaction flow data; When the comparison result between the main path decision result and all the bypass path decision results meets the expectation, switch the main path of the decision-making engine and the bypass path of the decision-making engine; The step of obtaining all the bypass path decision results of the bypass path of the decision-making engine for making decisions on all the transaction flow data includes: Increase the value of the preset percentage, and repeatedly execute the step of copying the transaction flow data to the bypass path of the decision-making engine according to the increased preset percentage and the step of obtaining the bypass path decision result output by the bypass path of the decision-making engine until all the bypass path decision results of the bypass path of the decision-making engine for making decisions on all the transaction flow data are obtained when the value of the preset percentage is increased to 100%; 2. The main bypass switching method for decision engine upgrade according to claim 1, characterized in that, After the step of detecting whether the comparison result between the main path decision result and the bypass path decision result meets the expectation, the method further includes: If the comparison result between the main path decision result and the bypass path decision result does not meet the expectation, repair the new version of the policy package; Make the bypass path of the decision-making engine carry the repaired new version of the policy package, and return to execute the step of copying the transaction flow data to the bypass path of the decision-making engine according to the preset percentage; 3. The main bypass switching method for decision engine upgrade according to claim 1, characterized in that After the step of obtaining the main path decision result output by the main path of the decision-making engine and obtaining the bypass path decision result output by the bypass path of the decision-making engine, the method further includes: Use the main path decision result as the target decision result; Save the bypass path decision result, where the bypass path decision result is used to compare with the main path decision result to obtain the comparison result; 4. The main bypass switching method for decision engine upgrade according to claim 1, characterized in that, After the step of switching the main path of the decision-making engine and the bypass path of the decision-making engine, the method further includes: Obtain new transaction flow data; Input all the new transaction flow data into the switched main path of the decision-making engine, and use the decision result output by the switched main path of the decision-making engine as the new target decision result.

5. The main bypass switching method for decision engine upgrade according to any one of claims 1 to 4, characterized in that, Before the step of copying the transaction traffic data to the bypass of the decision engine by percentage, the method further includes: Updating the bypass of the decision engine by causing the new version policy package to overwrite the policy package carried by the bypass of the decision engine.

6. A main bypass switching device for decision engine upgrade, characterized in that, The main bypass switching device for decision engine upgrade includes: A data input module, configured to input transaction traffic data into the main path of the decision engine and copy the transaction traffic data to the bypass of the decision engine according to a preset percentage, where the main path of the decision engine is a decision engine carrying an old version policy package, and the bypass of the decision engine is a decision engine carrying a new version policy package; A decision acquisition module, configured to acquire the main path decision result output by the main path of the decision engine and the bypass decision result output by the bypass of the decision engine; A main bypass switching module, configured to switch between the main path of the decision engine and the bypass of the decision engine according to the comparison result between the main path decision result and the bypass decision result; The main bypass switching module includes: A detection unit, configured to detect whether the comparison result between the main path decision result and the bypass decision result meets the expectation; A bypass decision result unit, configured to acquire all bypass decision results of the decision engine bypass for making decisions on all the transaction traffic data when it is detected that the comparison result meets the expectation; A switching unit, configured to switch between the main path of the decision engine and the bypass of the decision engine when the comparison result between the main path decision result and all the bypass decision results meets the expectation; The bypass decision result unit includes: A proportional control sub-unit, configured to increase the value of the preset percentage and repeatedly execute the step of copying the transaction traffic data to the bypass of the decision engine according to the increased preset percentage and the step of acquiring the bypass decision result output by the bypass of the decision engine until all bypass decision results of the decision engine bypass for making decisions on all the transaction traffic data are acquired when the value of the preset percentage is increased to 100%.

7. A main bypass switching device for decision engine upgrade, characterized in that, The device of the main bypass switching device for decision engine upgrade includes: a memory, a processor, and a main bypass switching program for decision engine upgrade stored on the memory and executable on the processor. When the main bypass switching program for decision engine upgrade is executed by the processor, it implements the steps of the main bypass switching method for decision engine upgrade as described in any one of claims 1 to 5.

8. A storage medium, characterized in that, A main bypass switching program for decision engine upgrade is stored on the storage medium. When the main bypass switching program for decision engine upgrade is executed by the processor, it implements the steps of the main bypass switching method for decision engine upgrade as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Business decision-making method and device based on rule engine, electronic equipment and readable storage medium

    CN111951010A

  • Decision engine and decision engine implementation method

    CN114493493A