Mass data decision engine system and method based on java and computer program

CN118779115AActive Publication Date: 2024-10-15紫金诚征信有限公司
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411255152.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-10-15
Estimated Expiration
2044-09-09

AI Technical Summary

Technical Problem

传统的数据处理系统往往依赖于单次调用的业务逻辑,这种方式在处理大规模数据时显得效率低下,难以满足实时性和灵活性的需求

Benefits of technology

[0014]有益效果:本申请一种基于java的海量数据决策引擎系统,系统包括工作空间模块和引擎管理模块,其中,所述工作空间模块与所述引擎管理模块连接;所述引擎管理模块包括数据导入模块、策略设计模块和策略部署模块;所述工作空间模块,用于展示所述引擎管理模块中的内容;所述引擎管理模块,用于配置所述数据导入模块、所述策略设计模块和所述策略部署模块;所述数据导入模块,用于根据所述引擎管理模块中的配置,导入数据库,并形成异步处理的消息队列;所述策略设计模块,用于根据所述引擎管理模块中的配置,形成的多个策略决策,分别载入所述异步处理的消息队列中,对所述数据库中的数据进行处理,并得到处理结果,其中,所述策略决策包括规则集、决策树、决策表、评分卡、决策计算和冠军挑战中的一种或多种策略方法;所述策略部署模块,用于根据所述引擎管理模块中的配置,以及kubecnetes容器化技术,动态调整部署容器的cpu,内存及副本数,并将所述处理结果存储在Elasticsearch中,其中,所述副本数表示根据所述策略决策形成的实例数量。利用工作空间模块进行引擎管理模块配置成过程的展示,以便直观的观察配置内容,利用引擎管理模块分别对数据导入模块、策略设计模块和策略部署模块分别进行配置。在数据导入模块中进行数据库的导入,还能够形成异步处理的消息队列,以便策略设计模块形成的多个策略决策异步执行,另外,利用策略部署模块中的kubecnetes容器化技术,根据多个策略决策动态调整部署容器的cpu、内存及副本数,以便进行系统资源的负载均衡,副本数可以根据流量和负载动态调整,以优化资源使用和响应时间。接下来,在处理结果存储在Elasticsearch后,还可以利用Elasticsearch的全文搜索和分析能力,对处理结果进行高效的索引、查询和分析。通过数据库和消息队列的方式大批量的对个人和企业的相关信息进行决策,提高数据处理效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779115A_ABST
    Figure CN118779115A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of data processing, and particularly relates to a mass data decision engine system and method based on java and a computer program. A mass data decision engine system based on java comprises a workspace module used for displaying content in an engine management module; the engine management module is used for configuring the data import module, the strategy design module and the strategy deployment module; the data import module is used for importing a database according to the configuration in the engine management module and forming an asynchronous processing message queue; the strategy design module is used for forming a plurality of strategy decisions according to the configuration in the engine management module, respectively loading the strategy decisions into an asynchronous processing message queue, processing the data in the database and obtaining a processing result; and the strategy deployment module is used for dynamically adjusting the number of cpu, memory and copies of the deployment container and storing a processing result in Elasticsearch.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and in particular to a Java-based massive data decision engine system, method and computer program. Background Art

[0002] In today's data-driven business environment, enterprises and individuals are faced with the challenge of processing and analyzing large amounts of data. Traditional data processing systems often rely on single-call business logic, which is inefficient when processing large amounts of data and difficult to meet the requirements of real-time and flexibility. In order to solve these problems, it is particularly important to develop a decision engine system that can efficiently process and analyze massive amounts of data. Summary of the invention

[0003] Based on this, it is necessary to provide a Java-based massive data decision engine system, method and computer program to address the above technical problems.

[0004] In a first aspect, the present application provides a Java-based massive data decision engine system, the system comprising: a workspace module and an engine management module, the workspace module being connected to the engine management module; the engine management module comprising a data import module, a strategy design module and a strategy deployment module; The workspace module is used to display the content in the engine management module; The engine management module is used to configure the data import module, the strategy design module and the strategy deployment module; The data import module is used to import the database according to the configuration in the engine management module and form a message queue for asynchronous processing; The strategy design module is used to form multiple strategy decisions according to the configuration in the engine management module, load them into the asynchronous processing message queue respectively, process the data in the database, and obtain processing results, wherein the strategy decision includes one or more strategy methods of rule set, decision tree, decision table, score card, decision calculation and champion challenge; The policy deployment module is used to dynamically adjust the CPU, memory and number of copies of the deployed container according to the configuration in the engine management module and utilize kubecnetes containerization technology, and store the processing results in Elasticsearch, wherein the number of copies represents the number of container instances deployed to execute policy decisions.

[0005] Some practicable methods further include a data source management module, wherein the data source management module is connected to the workspace module; The data source management module is used to adjust the database, and the adjustment of the database includes adding and deleting the database.

[0006] In some practicable methods, the data source management module has an Elasticsearch search engine unit, and the Elasticsearch search engine unit is used to store the processing results so that the Elasticsearch search engine unit can be used to call and record the processing results, generate engine reports, and export data.

[0007] In some practicable ways, the policy deployment module includes a call recording unit, an engine reporting unit, and a data exporting unit; The call record unit is connected to the data source management module and is used to perform call record viewing through the Elasticsearch search engine unit; The engine report unit is connected to the data source management module and is used to generate an engine report through the Elasticsearch search engine unit; The data export unit is connected to the data source management module and is used to export data through the Elasticsearch search engine unit.

[0008] In some practicable ways, the policy deployment module further includes a release version unit; The version publishing unit is used for version publishing and adjusts the workspace module and the engine management module according to the version publishing.

[0009] In some practicable ways, the data import module includes a database import unit and a kafka import unit; The database import unit is used to add new additions to the database by selecting fields in a database table; The kafka import unit is used to parse and import the data of the database through the fields of the message body to form an asynchronously processed message queue.

[0010] In some implementable methods, the strategy design module is also used to use the result data of the first strategy decision as the input data of the second strategy decision in the canvas, to form a series of multiple strategy decisions, wherein the multiple strategy decisions include at least the first strategy decision and the second strategy decision, and the first strategy decision and the second strategy decision are different strategy methods.

[0011] Some practicable methods further include a system management module, the system management module is connected to the workspace module; the system management module includes a user management unit, a role management unit and a menu management unit; The user management unit is used to add and delete relevant information of the user; The role management unit is used to grant corresponding permissions to the users included in the user management unit so that the users have corresponding permissions in the engine management module; The menu management unit is used to manage the addition, deletion, modification and query of the menu of the workspace module.

[0012] In a second aspect, the present application provides a Java-based massive data decision engine method, which is applied to the aforementioned Java-based massive data decision engine system, and the method includes: In the case of displaying the contents in the engine management module, configuring the data import module, the policy design module and the policy deployment module using the engine management module; According to the configuration of the engine management module, the database is imported into the data import module, and a message queue for asynchronous processing is formed; According to the configuration of the engine management module, in the strategy design module, a plurality of strategy decisions are formed, and the plurality of strategy decisions are respectively loaded into the message queue of the asynchronous processing, the data in the database is processed, and the processing result is obtained; According to the configuration of the engine management module, in the policy deployment module, the kubecnetes containerization technology is used to dynamically adjust the CPU, memory and number of copies of the deployed container, and the processing results are stored in Elasticsearch, wherein the number of copies represents the number of container instances deployed to execute policy decisions.

[0013] In a third aspect, the present application provides a computer program, which, when executed by a processor, implements the aforementioned Java-based massive data decision engine system.

[0014] Beneficial effects: The present application is a Java-based massive data decision engine system, the system includes a workspace module and an engine management module, wherein the workspace module is connected to the engine management module; the engine management module includes a data import module, a strategy design module and a strategy deployment module; the workspace module is used to display the content in the engine management module; the engine management module is used to configure the data import module, the strategy design module and the strategy deployment module; the data import module is used to import the database according to the configuration in the engine management module and form an asynchronous processing message queue; the strategy design module is used to The configuration in the engine management module forms multiple policy decisions, which are loaded into the asynchronous processing message queue respectively, and the data in the database is processed to obtain the processing results, wherein the policy decision includes one or more policy methods in rule set, decision tree, decision table, score card, decision calculation and champion challenge; the policy deployment module is used to dynamically adjust the CPU, memory and number of copies of the deployment container according to the configuration in the engine management module and kubecnetes containerization technology, and store the processing results in Elasticsearch, wherein the number of copies represents the number of instances formed according to the policy decision. The workspace module is used to display the configuration process of the engine management module so as to intuitively observe the configuration content, and the engine management module is used to configure the data import module, policy design module and policy deployment module respectively. In the data import module, the database is imported, and a message queue for asynchronous processing can be formed so that multiple policy decisions formed by the policy design module can be executed asynchronously. In addition, the kubecnetes containerization technology in the policy deployment module is used to dynamically adjust the CPU, memory and number of copies of the deployment container according to multiple policy decisions to load balance system resources. The number of copies can be dynamically adjusted according to traffic and load to optimize resource usage and response time. Next, after the processing results are stored in Elasticsearch, the full-text search and analysis capabilities of Elasticsearch can be used to efficiently index, query and analyze the processing results. Through the database and message queue, decisions are made on large quantities of relevant information about individuals and enterprises to improve data processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0016] Figure 1 A framework diagram of a Java-based massive data decision engine system in one embodiment; Figure 2 The figure is a flow chart of a Java-based massive data decision engine system in one embodiment. DETAILED DESCRIPTION

[0017] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used herein includes any and all couplings of one or more related listed items.

[0019] It can be understood that the terms "first", "second", etc. used in the present application can be used in this article to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element.

[0020] Some terms involved in this application are explained below to facilitate understanding of this application: An engine is an application in a software system that processes data and makes decisions based on business rules, models, or algorithms.

[0021] The canvas refers to the operation area. When a program is selected in the operation area, it can be presented on the canvas, and the preset content can be displayed through the canvas.

[0022] Kafka is a distributed stream processing platform developed by the Apache Foundation, mainly used for high-throughput, low-latency data stream transmission and processing.

[0023] Kubernetes, commonly known as Kubernetes, is an open source platform for automating the management, deployment, and scaling of containerized applications. It simplifies the lifecycle management of container applications by providing cluster management, load balancing, automated deployment, rolling updates, and fault recovery. Kubernetes makes large-scale operation and maintenance of container applications more efficient and reliable through its flexible architecture.

[0024] Pod, in Kubernetes, Pod is the smallest deployment unit, representing one or more containers (usually a single container) running in the cluster, which share storage and network resources.

[0025] Elasticsearch is an open source search engine built on Apache Lucene. It provides a distributed, multi-tenant full-text search engine and is widely used in log analysis, search engines, business analysis and other fields.

[0026] Prometheus is an open source monitoring and alerting tool suite that is usually used to record real-time time series data. It collects and stores metrics and provides a data query language (PromQL) to allow users to query and analyze this data.

[0027] Grafana is an open source data visualization and monitoring platform. It provides a rich user interface that allows users to display and analyze data through charts, panels, and dashboards.

[0028] Fluentd, is an open source data collector that allows unified data collection and consumption for better use of data. Fluentd is extensible, supports multiple plug-ins, and can be easily integrated with various data sources and target storage systems.

[0029] Logstash is an open source server-side data processing pipeline that can simultaneously collect, parse, and enrich log data, and then forward the data to a repository such as Elasticsearch.

[0030] Deployment is one of the key resource objects for implementing continuous deployment and operation and maintenance of applications in Kubernetes. Through Deployment, users can automate the application deployment process and ensure high availability of applications.

[0031] Service, in Kubernetes, is an API object that defines a way to access containerized applications, regardless of how the backend Pod changes. Service provides a single access interface for a group of Pods with the same functionality.

[0032] ConfigMap is an API object used to store configuration information in Kubernetes. It allows decoupling configuration data from application code, making application configuration more flexible and easier to manage.

[0033] YAML (YAML Ain't Markup Language) is a data serialization format for configuration files. It aims at data readability and is commonly used in the definition of Kubernetes resource objects.

[0034] Kibana, is an open source data analysis and visualization platform, often used with Elasticsearch. It is specifically designed to visualize Elasticsearch data and provides a user-friendly web interface to perform complex search, analysis, and visualization.

[0035] like Figure 1 and Figure 2 As shown, the first aspect of the present application provides a Java-based massive data decision engine system, the system comprising: a workspace module and an engine management module, the workspace module is connected to the engine management module; the engine management module comprises a data import module, a strategy design module and a strategy deployment module.

[0036] The workspace module is used to display the content in the engine management module. That is to say, after a user with permission clicks on the workspace module, he can enter the workspace module. The user can see the list of workspaces within the user's permission on this page, and the user can also add a new workspace. In this way, users with access rights can see the list of all engine management modules under the workspace on this page, and users can also view engine details and newly added engines. There can be a canvas in the workspace module so that corresponding operations can be performed in the canvas and displayed in the canvas. For example, operations such as displaying engine details and adding new engines in the canvas.

[0037] The engine management module is used to configure the data import module, the policy design module and the policy deployment module. The data import module, the policy design module and the policy deployment module can be entered through the engine management module, and the data import module, the policy design module and the policy deployment module can be adjusted by using the engine management module.

[0038] Specifically, the configuration of the data import module, policy design module and policy deployment module included in the engine management module can be understood as at least the parameter configuration of the data import module, policy design module and policy deployment module, so that the data import module, policy design module and policy deployment module can be executed under the configured parameters. Among them, parameter setting can mean defining and adjusting the parameters required for the operation of each module.

[0039] The data import module is used to import the database according to the configuration in the engine management module and form a message queue for asynchronous processing.

[0040] Specifically, the data import module includes a database import unit and a kafka import unit.

[0041] The database import unit is used to add new additions to the database by selecting fields of the database table. That is to say, the database import unit directly interacts with the database. When a user or application selects fields of a specific table through a database query, the data import process is triggered. During this import process, it may be carried out synchronously and there may be a certain delay. The database import unit can be tightly coupled with the database, which also causes the import operation of the database import unit to depend on the structure and availability of the database.

[0042] The Kafka import unit is used to parse and import the data in the database through the fields of the message body to form an asynchronously processed message queue, that is, the data in the message queue is received through Kafka, and the data import process is triggered by sending the message to Kafka. In this way, once the message is sent to Kafka, it can be processed to form an asynchronously processed message queue, so that the distributed characteristics of Kafka provide good scalability.

[0043] It should be noted that the database import unit and the Kafka import unit can implement different processing mechanisms for the database to adapt to different data processing requirements. For example, the database import unit is suitable for batch processing and static data; the Kafka import unit is suitable for real-time processing and dynamic data. The database import unit is suitable for simple data import tasks; the Kafka import unit is suitable for complex scenarios that require high performance and real-time processing.

[0044] The strategy design module is used to form multiple strategy decisions according to the configuration in the engine management module, load them into the asynchronous processing message queue respectively, process the data in the database, and obtain the processing results. The processing results refer to the output obtained after the strategy design module applies a series of strategy decisions to the data in the database.

[0045] The strategic decision includes one or more strategic methods in rule sets, decision trees, decision tables, score cards, decision calculations, and champion challenges. It can be understood that the strategic methods such as decision tables, decision trees, rule sets, score cards, decision calculations, and champion challenges are all conventional methods, and this application does not improve them.

[0046] Specifically, under the parameters set by the engine management module, the strategy design module forms multiple strategy decisions according to user needs. For example, the strategy decision can be a strategy method in a rule set, a decision tree, a decision table, a scorecard, a decision calculation, and a champion challenge. That is to say, each strategy method forms a strategy decision. When there are multiple strategy decisions and they are sent to the data import module, the Kafka of the kafka import unit can be used to asynchronously process multiple strategy decisions, thereby improving data processing efficiency. In addition, the strategy design module is also used in the canvas to use the result data of the first strategy decision as the input data of the second strategy decision to form a series of multiple strategy decisions, wherein the multiple strategy decisions include at least the first strategy decision and the second strategy decision, and the first strategy decision and the second strategy decision are different strategy methods. The above method can be used to form and use multiple strategy decisions according to different needs, and improve the efficiency of data processing through the asynchronous processing mechanism of Kafka; support the series connection of strategy decisions to realize complex data processing logic.

[0047] It should be noted that when the result data of the first policy decision is used as the input data of the second policy decision, illustratively, the result data of the first policy decision is in JSON format, and the input data of the second policy decision requires CSV. Obviously, the result data of the first policy decision cannot be directly used as the input data of the second policy decision. In this case, the following steps are included: Get all policy methods in policy decision; According to all strategy methods, the input data format corresponding to each strategy method is obtained; Obtaining a result data format of a first policy decision and an input data format of a second policy decision; According to the input data format of the second policy decision, convert the result data format of the first policy decision to obtain result data that conforms to the input data format of the second policy decision; The result data conforming to the input data format of the second policy decision is input into the second policy decision.

[0048] It should be noted that when converting the data format, the following steps are included: According to the input data format corresponding to each strategy method, an intermediate data model is constructed; wherein the intermediate data model contains the data fields required by all strategy methods and defines a unified data type and format.

[0049] In the intermediate data model, a data mapping rule is constructed for each strategy method to obtain an intermediate data model mapping rule; According to the intermediate data model mapping rules, the result data of the first policy decision is mapped to obtain data of a unified data type and format output by the intermediate data model; wherein, after the mapping is performed in the intermediate data model, the result data will be converted into the format of the intermediate data model, which can be recognized by the second policy decision.

[0050] The data of uniform data type and format output by the intermediate data model is used as input data of the second policy decision and input into the second policy decision.

[0051] It should also be noted that an adapter is configured for each policy method, so that, illustratively, policy method A uses the JSON format. Policy method B uses the XML format. Two adapters are written for policy method A, one adapter converts JSON to an intermediate data model, and the other adapter converts the intermediate data model back to JSON. Two adapters are written for policy method B, one adapter converts XML to an intermediate data model, and the other adapter converts the intermediate data model to XML. An adapter refers to a software design pattern that converts one format into another, enabling two incompatible interfaces to work together, and is usually used to convert the interface of a class into another interface expected by the client.

[0052] The above method simplifies complex data exchange scenarios, especially in the case of multiple policy methods. Although each policy method may require two adapters, overall, this architecture reduces the dependency between systems, simplifies data management, and improves overall maintainability and scalability.

[0053] The policy deployment module is used to dynamically adjust the CPU, memory and number of copies of the deployment container according to the configuration in the engine management module and the kubecnetes containerization technology, and store the processing results in Elasticsearch, where the number of copies indicates the number of container instances deployed to execute the policy decision. In addition, users can also customize the CPU, memory and number of copies of the project deployment container as needed.

[0054] It should be noted that in the dynamic adjustment of cpu, memory and number of replicas of deployed containers by Kubernetes containerization technology, Kubernetes allows resource requests and resource limits to be set for each container. Resource requests tell the Kubernetes system the minimum amount of resources required by the container, while resource limits are the maximum amount of resources that the container can use. By modifying the resource requests and limits in the deployment configuration, you can redefine the resource requirements of the container and apply these changes.

[0055] Dynamic adjustment can be horizontal dynamic expansion (Horizontal Pod Autoscaler, HPA) and vertical dynamic expansion (Vertical Pod Autoscaler, VPA), etc. In horizontal dynamic expansion, Kubernetes' horizontal automatic expansion function can automatically adjust the number of Pod replicas based on CPU usage or other selected metrics. HPA monitors the usage of Pods and increases or decreases the number of replicas when needed. In vertical automatic expansion, the resource request of Pods can be automatically adjusted to more accurately match the resource requirements of applications. Analyze the historical resource usage of Pods and recommend appropriate CPU and memory requests.

[0056] Specifically, it is used to dynamically adjust the CPU, memory and number of copies of the deployed container according to the configuration in the engine management module by using the kubecnetes containerization technology, and store the processing results in Elasticsearch, including the following steps: Determine the configuration file of the kubecnetes resource object according to the requirements of deploying containers; The configuration files of kubecnetes resource objects include Deployment, Service, and ConfigMap. Specifically, a Deployment YAML file is created, which contains the image of the application container, the initial number of replicas, resource requests, and restrictions. ConfigMap is used to store non-sensitive configuration information, and Secrets is used to store sensitive information such as database passwords.

[0057] According to the configuration file of the kubecnetes resource object, deploy the container application to the Kubernetes cluster and establish the initial running state of the deployed container application; The deployment container is applied to the Kubernetes cluster to ensure that the application service is available. For example, use kubectl apply -f<deployment-file.yaml> Deploy the application. Verify that the Deployment, Pods, and related Services are started normally.

[0058] Based on the initial running status of the deployed container application, dynamically adjust the number of Pod copies, resource usage and responsiveness according to the actual load of the deployed container application; Among them, resources can include computing resources and storage resources. Computing resources are physical or virtual resources used to run containerized applications in the Kubernetes cluster. Although storage resources are usually provided by external storage systems in containerized environments, in some cases, such as when using EmptyDir or PersistentVolume, the allocation and use of storage resources also need to be considered. Specifically, according to the load characteristics of the application, define the rules and thresholds of HPA and write the HPA YAML file. Use kubectl apply -f<hpa-file.yaml> The command applies the HPA configuration, enabling the system to automatically adjust the number of Pods based on CPU utilization or other metrics.

[0059] According to the configuration file of the kubecnetes resource object, deploy the container application to the Kubernetes cluster, establish the initial running state of the deployed container application, and dynamically adjust the number of Pod copies, resource usage and responsiveness according to the actual load of the deployed container application based on the initial running state of the deployed container application to obtain integrated Elasticsearch; Among them, integrating Elasticsearch can store the processing results of the application in Elasticsearch, realizing data persistence and efficient retrieval. Specifically, ensure that the Elasticsearch service is available in the Kubernetes cluster. Integrate the Elasticsearch client in the application to realize the ability to index the processing results into Elasticsearch.

[0060] Integrate Elasticsearch for monitoring and log management; Among them, monitor the performance of applications and Kubernetes clusters, collect logs, and ensure the stability and maintainability of the system. Specifically, integrate Prometheus and Grafana for system monitoring, configure Prometheus to capture and visualize key performance indicators. Configure a log collection system such as Fluentd or Logstash to send logs to Elasticsearch, and use Kibana for log analysis.

[0061] It should also be noted that the policy deployment module is also used for version release, and the workspace module and the engine management module are adjusted according to the version release. Among them, the policy deployment module is a part of the system, which is responsible for applying the designed policy decisions to data decisions and ensuring that they can be executed correctly. Version release refers to updating the new version of the software or system to a user-accessible state. This may include new features, improvements or bug fixes. Through version release, the policy deployment module can manage different versions of policy designs to ensure that it is possible to roll back to the old version, or gradually launch the new version. In addition, the workspace module refers to the environment in which users interact with the system. When a new version is released, the workspace module can be adjusted, such as adjusting the canvas of the workspace, updating the user interface, functions or data display methods.

[0062] In some embodiments, a Java-based massive data decision engine system further includes a data source management module. The data source management module is connected to the workspace module; the data source management module is used to adjust the database, and the adjustment of the database includes adding and deleting the database.

[0063] Specifically, users can add databases in the data source management module as needed, supporting MYSQL, PostgreSql, hive and other types of databases, so that the data import module can call the database in the data source management module.

[0064] It should be noted that the data source management module also has an Elasticsearch search engine unit, which is used to store the processing results so that the Elasticsearch search engine unit can be used to call and record the processing results, generate engine reports, and export data.

[0065] It should also be noted that the Elasticsearch search engine unit is used to call the processing results stored in Elasticsearch, which allows the processing results to be indexed and quickly retrieved. Furthermore, call record viewing, Elasticsearch can store call records, allowing users to view the usage of the engine, including information such as the number of calls and time. Engine report generation, using the aggregation function of Elasticsearch, you can generate reports, such as total call volume, success rate, response time and other statistical information. Data export, users may need to export processing results from Elasticsearch for further analysis or backup.

[0066] In some embodiments, a Java-based massive data decision engine system further includes a system management module, which is connected to the workspace module; the system management module includes a user management unit, a role management unit and a menu management unit.

[0067] The user management unit is used to add and delete the relevant information of the user.

[0068] The role management unit is used to grant corresponding permissions to the users included in the user management unit so that the users have corresponding permissions in the engine management module.

[0069] The menu management unit is used to manage the addition, deletion, modification and query of the menu of the workspace module.

[0070] Example 1: The user logs in to the system and jumps to the system homepage after password verification. The user can see two menu information on this page: workspace and data source management. The user can add a database in the data source management, supporting MYSQL, PostgreSql, hive and other types of databases. User permissions and engine permissions can be set.

[0071] When the user clicks on the workspace, he can see the list of workspaces within the user's permissions on this page. The user can also add a workspace and set access permissions. When entering the workspace, the user can see the list of all engines under the workspace on this page. The user can also view engine details and add new engines. Click the engine name to enter the engine details. The user can see the data import, policy design, and policy deployment menus on this page. When entering the data import, the user can add the field information required for the logical judgment of the engine component on this page. The user can import through the database and message components such as Kafka. The database is added by selecting the fields of the database table. The message components such as Kakfa are imported by parsing the fields of their message bodies.

[0072] Enter the strategy design page, where users can add decision tables, decision trees, rule sets, scorecards, decision calculations, champion challenges and other components, and save the components in series in the canvas. Enter the strategy deployment page, where users can see the release version, call records, engine reports, and data export menu. For data export, users can add engine result export methods on the page, which supports the export of message components such as kafka and database export. Enter the release version, where users can release versions on the message page. This function is implemented through kubecnetes containerization technology, and users can customize the cpu, memory and number of copies of the project deployment container. Enter the call record page, where users can see the historical call record list of the engine. Enter the engine report page, where users can see the engine statistics, such as the total number of calls, the number of successful and failed calls, the response time, the total number of calls trend statistics, and the month-on-month / year-on-year growth rate. After entering the management system, users can see user management, role management, and menu management on this page. After entering user management, users can add and modify user information and query user lists on this page. After entering the menu page, users can add and modify menu information and view menu lists on this page. After entering the role management page, users can add and modify role information and view user lists on this page.

[0073] Example 2: Figure 2 As shown in the figure, the system management, workspace, policy deployment, and policy design operations performed by users in the MYSQL database are stored in the MYSQL database, and the engine processing results and related information are stored in Es (Elasticsearch), that is, the engine results are stored in Es. Users can view the data in Es in the call record and engine report.

[0074] System functional module design (1) User login interface: It is the entrance for users to access the system. Users can log in to the system through the visual login page.

[0075] (2) User management unit: Administrators can use this page to add new users and modify user information, user organizations, and roles.

[0076] (3) Role management unit: Administrators can manage all role information and the roles of all users, thereby controlling the user's permissions in the system; (4) Menu management unit: The administrator can manage the addition, deletion, modification and query of all menus in the system; (5) Data source management module: Administrators can add, delete, modify and query the data source information of this system.

[0077] (6) Data import module: Users can import data through databases and add engine logic fields through message components such as Kafka; (7) Strategy design module: Users can add, delete, modify and check components such as rule sets, decision trees, decision tables, scorecards, decision calculations, and champion challenges; (8) Data export unit: Users can add, delete, modify and query the export path of engine results; (9) Call record unit: Users can query the history list and report details of the engine report.

[0078] (10) Engine report unit: Users can query the total number of engine calls, number of successful and failed calls, response time, total number of calls trend statistics, month-on-month / year-on-year growth rate and other statistical information.

[0079] (11) Release version unit: After completing the addition of new components, users can deploy the engine.

[0080] In summary, the application provides a Java-based massive data decision engine system to achieve rapid acquisition of credit subject information. It is based on the springBoot model, which makes it easy to develop the system. Its low cost and easy operation have been widely used. The storage of the underlying data uses Elasticsearch to provide near real-time search and analysis for all types of data. Whether it has structured or unstructured text, digital data or geospatial data, Elasticsearch can efficiently store and index in a way that supports fast search, and can go beyond simple data retrieval and aggregate information to discover trends and patterns in the data. As the amount of data and queries grows, the distributed nature of Elasticsearch enables deployment to grow seamlessly. Elasticsearch is a distributed, highly scalable, and highly real-time search and data analysis engine. It is very convenient to enable large amounts of data to have the ability to search, analyze and explore. Taking full advantage of the horizontal scalability of Elasticsearch can make data more valuable in the production environment. The engine deployment uses Kubernetes containerization technology to deploy projects, and can dynamically adjust the resource situation of the project deployment, greatly saving resources and providing flexible and changeable project deployment.

[0081] The present application is a java-based massive data decision engine system, which uses the engine management module to configure the strategy design module to form multiple strategy decisions, and then applies the multiple strategy decisions in the data import module, calls the corresponding data execution, and uses the asynchronous processing method to realize the synchronous processing of multiple strategy decisions. In order to cope with the synchronous processing of multiple strategy decisions, the present application introduces the kubecnetes containerization technology, and uses the kubecnetes containerization technology to adjust the cpu, memory and number of copies of the deployment container, so that each strategy decision can have the corresponding cpu and memory to execute, thereby ensuring the execution efficiency. Next, Elasticsearch is used to store the results, which is convenient for users to call the processing results in Elasticsearch, and in Elasticsearch, it can be very convenient to make a large amount of data have the ability to search, analyze and explore. Through the above method, the call of multiple businesses is realized, and the work efficiency is improved. It has the function of developing concise and efficient, and making decisions on the relevant information of individuals and enterprises in large quantities through databases and MQ.

[0082] In a second aspect, the present application provides a Java-based massive data decision engine method, which is applied to the aforementioned Java-based massive data decision engine system, and the method includes: In the case of displaying the contents in the engine management module, configuring the data import module, the policy design module and the policy deployment module using the engine management module; According to the configuration of the engine management module, the database is imported into the data import module, and a message queue for asynchronous processing is formed; According to the configuration of the engine management module, in the strategy design module, a plurality of strategy decisions are formed, and the plurality of strategy decisions are respectively loaded into the message queue of the asynchronous processing, the data in the database is processed, and the processing result is obtained; According to the configuration of the engine management module, in the policy deployment module, the kubecnetes containerization technology is used to dynamically adjust the CPU, memory and number of copies of the deployed container, and the processing results are stored in Elasticsearch, wherein the number of copies represents the number of container instances deployed to execute policy decisions.

[0083] In a third aspect, the present application provides a computer program, which, when executed by a processor, implements the aforementioned Java-based massive data decision engine system.

[0084] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0085] The various embodiments in the present disclosure are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0086] The protection scope of the present disclosure is not limited to the above-mentioned embodiments. Obviously, those skilled in the art can make various changes and modifications to the present disclosure without departing from the scope and spirit of the present disclosure. If these changes and modifications fall within the scope of the claims of the present disclosure and their equivalents, the intention of the present disclosure also includes these changes and modifications.

Claims

1. A Java-based massive data decision engine system, characterized in that: The system includes: A workspace module and an engine management module, wherein the workspace module is connected to the engine management module; The engine management module includes a data import module, a strategy design module and a strategy deployment module; The workspace module is used to display the content in the engine management module; The engine management module is used to configure the data import module, the strategy design module and the strategy deployment module; The data import module is used to import the database according to the configuration in the engine management module and form a message queue for asynchronous processing; The strategy design module is used to form multiple strategy decisions according to the configuration in the engine management module, load them into the asynchronous processing message queue respectively, process the data in the database, and obtain processing results, wherein the strategy decision includes one or more strategy methods of rule set, decision tree, decision table, score card, decision calculation and champion challenge; The policy deployment module is used to dynamically adjust the CPU, memory and number of copies of the deployed container according to the configuration in the engine management module and utilize kubecnetes containerization technology, and store the processing results in Elasticsearch, wherein the number of copies represents the number of container instances deployed to execute policy decisions.

2. The Java-based massive data decision engine system according to claim 1, characterized in that: It also includes a data source management module, which is connected to the workspace module; The data source management module is used to adjust the database, and the adjustment of the database includes adding and deleting the database.

3. The Java-based massive data decision engine system according to claim 2 is characterized in that: The data source management module has an Elasticsearch search engine unit, and the Elasticsearch search engine unit is used to store the processing results so that the Elasticsearch search engine unit can be used to call and record the processing results, generate engine reports, and export data.

4. The Java-based massive data decision engine system according to claim 3 is characterized in that: The policy deployment module includes a call recording unit, an engine reporting unit and a data exporting unit; The call record unit is connected to the data source management module and is used to perform call record viewing through the Elasticsearch search engine unit; The engine report unit is connected to the data source management module and is used to generate an engine report through the Elasticsearch search engine unit; The data export unit is connected to the data source management module and is used to export data through the Elasticsearch search engine unit.

5. The Java-based massive data decision engine system according to claim 4, characterized in that: The policy deployment module also includes a version publishing unit; The version publishing unit is used for version publishing and adjusts the workspace module and the engine management module according to the version publishing.

6. The Java-based massive data decision engine system according to claim 1, characterized in that: The data import module includes a database import unit and a kafka import unit; The database import unit is used to add new additions to the database by selecting fields in a database table; The kafka import unit is used to parse and import the data of the database through the fields of the message body to form an asynchronously processed message queue.

7. The Java-based massive data decision engine system according to claim 1, characterized in that: The strategy design module is also used to use the result data of the first strategy decision as the input data of the second strategy decision in the canvas to form a series of multiple strategy decisions, wherein the multiple strategy decisions include at least the first strategy decision and the second strategy decision, and the first strategy decision and the second strategy decision are different strategy methods.

8. The Java-based massive data decision engine system according to claim 1, characterized in that: It also includes a system management module, which is connected to the workspace module; the system management module includes a user management unit, a role management unit and a menu management unit; The user management unit is used to add and delete relevant information of the user; The role management unit is used to grant corresponding permissions to the users included in the user management unit so that the users have corresponding permissions in the engine management module; The menu management unit is used to manage the addition, deletion, modification and query of the menu of the workspace module.

9. A Java-based massive data decision engine method, characterized in that: A Java-based massive data decision engine system applied to any one of claims 1-8, the method comprising: In the case of displaying the contents in the engine management module, configuring the data import module, the policy design module and the policy deployment module using the engine management module; According to the configuration of the engine management module, the database is imported into the data import module, and a message queue for asynchronous processing is formed; According to the configuration of the engine management module, in the strategy design module, a plurality of strategy decisions are formed, and the plurality of strategy decisions are respectively loaded into the message queue of the asynchronous processing, the data in the database is processed, and the processing result is obtained; According to the configuration of the engine management module, in the policy deployment module, the kubecnetes containerization technology is used to dynamically adjust the CPU, memory and number of copies of the deployed container, and the processing results are stored in Elasticsearch, wherein the number of copies represents the number of container instances deployed to execute policy decisions.

10. A computer program, characterized in that When the computer program is executed by a processor, the Java-based massive data decision engine system according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Mass data distributed rule engine operating system based on cloud platform

    CN107943963A

  • Full-market multi-variety financial management system based on mass strategy intelligent processing platform

    CN110580614A

  • Container-based edge internet of things proxy device

    CN111866084A

  • Business decision-making method and system based on rule engine and storage medium

    CN113254061A

  • Data acquisition method and device and electronic equipment

    CN114760117A