Edge cloud native-based rule engine management system, method and related equipment
Through the edge cloud-native rule engine management system, it solves the high latency and high cost problems of cloud computing platforms under traditional IoT data processing methods, improves the applicability and fault tolerance rate of edge-side data processing, and realizes the deployment of IoT devices. Intelligent application services.
Patent Information
- Application Number
- CN202410630024.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-21
AI Technical Summary
Under the traditional IoT data processing method, cloud computing platforms face problems such as high network latency, massive device access, difficulty in processing massive data, insufficient bandwidth, and excessive power consumption. In addition, edge-side rule configuration and parsing have poor applicability and fault tolerance. low question.
Adopt a rule engine management system based on edge cloud native, communicate with the edge application management subsystem and edge rule engine subsystem of the edge terminal through the cloud side management console, and realize the issuance and distribution of container startup, data source management and rule management instructions. Upload processing results, support remote deployment and update of rule engines, and provide rule definition and management based on SQL-like language.
It improves the applicability and fault tolerance rate of edge-side data processing, reduces cloud data computing and storage costs, achieves flexibility in real-time data processing and rule management, and improves the intelligent application service capabilities of IoT devices.
Smart Images

Figure CN118210595B
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Things technology, and in particular to an edge cloud native-based rule engine management system, method and related equipment. Background Art
[0002] With the integration of IoT with new generation information technologies such as machine learning and big data computing, IoT applications need to process a large amount of real-time data streams. According to the traditional data processing method, all data needs to be uploaded to the cloud computing platform for analysis. However, the cloud computing platform will face high network latency, massive device access, difficulty in processing massive data, insufficient bandwidth and excessive power consumption. In order to solve the problems of high latency and lack of real-time data analysis capabilities under the traditional data processing method, we need to process real-time data on the edge. As an emerging computing paradigm, edge computing aims to build a relatively complete application platform with core capabilities such as computing and storage close to the IoT terminal side, which can make full use of the real-time IoT data reported by the terminal for rapid processing and analysis, reduce the computing and storage costs of cloud IoT data, and provide a variety of intelligent application services to edge users. The rule engine is developed from the inference engine and is a component embedded in the application. The role of the rule engine in the IoT is to set corresponding rules for the devices connected to the platform through business personnel. When the conditions meet the set rules, the platform triggers corresponding actions to meet user needs.
[0003] In the related technology, the edge rules are configured through the rule configuration module of the IoT middleware to generate a configuration file. The IoT middleware sends the configuration file to the industrial IoT gateway through the message queue protocol (MQTT protocol). The industrial IoT gateway parses the configuration file and sends the parsed edge rules to the rule engine module and the data reporting module. It determines whether the rule conditions are established based on real-time data, and then updates the status of the edge rules based on the logical operation results of all rule conditions, and decides to execute the rule trigger action or the rule elimination action. However, sending the rule configuration to the edge side in the form of a file, and the edge side queries and parses the file for rule processing, has relatively poor applicability and low fault tolerance. Summary of the invention
[0004] In view of this, the purpose of this application is to propose a rule engine management system, method and related equipment based on edge cloud native.
[0005] Based on the above objectives, in a first aspect, the present application provides a rule engine management system based on edge cloud native, the system comprising:
[0006] A management console located on the cloud side and an edge application management subsystem and an edge rule engine subsystem located on the edge side terminal, wherein the management console is communicatively connected with the edge side terminal where the edge application management subsystem and the edge rule engine subsystem are located;
[0007] The management console is used to send a container startup instruction to the edge application management subsystem, and send a data source management instruction and a rule management instruction to the edge rule engine subsystem, and receive a stream data processing result determined by the edge rule engine subsystem according to the data source management instruction and the rule management instruction;
[0008] The edge application management subsystem is used to receive the container startup instruction issued by the management console, and start the target container where the edge rule engine subsystem is located according to the container startup instruction;
[0009] The edge rule engine subsystem is used to receive the data source management instructions and rule management instructions issued by the management console, and upload the target data processing results determined according to the data source management instructions and rule management instructions to the management console.
[0010] In one possible implementation, the management console is also used to issue application management instructions to the edge application management subsystem, so that the edge application management subsystem uploads the image file, target application ID, bracket number, target application name and target application version number of the target application in the edge side terminal to the management console; wherein the target application is determined according to the application management instruction.
[0011] In one possible implementation, the management console is also used to send application installation instructions to the edge application management subsystem, and send the target application installation package indicated by the application installation instruction to the edge side terminal, so that the edge application management subsystem installs the target application corresponding to the target application installation package to the edge side terminal according to the application installation instruction.
[0012] In a possible implementation, the management console is also used to issue a monitoring information acquisition instruction to the edge application management subsystem, so that the edge application management subsystem uploads the acquired resource occupancy information of the edge terminal and the operation log of the target application to the management console.
[0013] In a possible implementation, the management console is further used to send a container update instruction to the edge application management subsystem, so that the edge application management subsystem updates the target container where the edge rule engine subsystem is located according to the container update instruction.
[0014] In one possible implementation, the edge rule engine subsystem is also used to determine the target data source type according to the data source management instruction, and obtain the target data indicated by the target data source type; and, parse the rule management instruction to determine the target rule, and perform the target processing operation corresponding to the target rule on the target data according to the target rule to determine the target data processing result.
[0015] In one possible implementation, the edge rule engine subsystem is also used to publish the stream data processing results to the target location according to the sending instructions issued by the management console, and configure relevant information for the stream data processing results; wherein the target location includes: target file location, message queue telemetry transmission message server, application programming interface and remote dictionary service; the relevant information includes: the file path, file type and file header corresponding to the target file location, the message queue telemetry transmission message server address, user information, topic information and data forwarding service quality information corresponding to the message queue telemetry transmission message server, the configurable application programming interface address, request timeout and authentication certificate corresponding to the application programming interface, and the configurable remote dictionary service address, remote dictionary service user information and key type corresponding to the remote dictionary service.
[0016] In a second aspect, the present application provides an edge cloud native-based rule engine management method using the edge cloud native-based rule engine management system as described in the first aspect, the method comprising:
[0017] Using the management console to issue a container startup instruction to the edge application management subsystem, and to issue a data source management instruction and a rule management instruction to the edge rule engine subsystem;
[0018] In response to the edge application management subsystem receiving the container start instruction issued by the management console, using the edge application management subsystem to start the target container where the edge rule engine subsystem is located according to the container start instruction;
[0019] In response to the edge rule engine subsystem receiving the data source management instructions and rule management instructions issued by the management console, the edge rule engine subsystem will determine the target data processing results according to the data source management instructions and rule management instructions, and upload the target data processing results to the management console.
[0020] In a possible implementation, the edge rule engine subsystem determines the stream data processing result according to the data source management instruction and the rule management instruction, including:
[0021] Determine the target data source type according to the data source management instruction; wherein the target data source type includes at least one of the following: a stream data type, a message queue telemetry transmission data type, a hypertext transfer protocol data type, and a file data type;
[0022] Acquire target data according to the target data source type;
[0023] The rule management instruction is parsed to determine the target rule, and a target processing operation corresponding to the target rule is performed on the target data according to the target rule to determine the target data processing result.
[0024] In a possible implementation manner, acquiring target data according to the target data source type includes:
[0025] In response to the target data source type being a stream data type, the stream type of the target data is determined, and target data corresponding to the stream type is acquired from an external system; wherein the stream type includes: integer type, floating point type, and byte array.
[0026] In a possible implementation manner, acquiring target data according to the target data source type includes:
[0027] In response to the target data source type being a message queue telemetry transmission data type, the target data is subscribed to in real time according to the message queue telemetry transmission message server and the topic subscription configuration to obtain the target data.
[0028] In a possible implementation manner, acquiring target data according to the target data source type includes:
[0029] In response to the target data source type being a hypertext transfer protocol data type, the target data is acquired from the hypertext transfer protocol data source according to the hypertext transfer protocol server proxy configuration.
[0030] In a possible implementation manner, acquiring target data according to the target data source type includes:
[0031] In response to the target data source type being a file data type, a target file path is determined according to a local file configuration, and the target data is read according to a target file indicated by the target file path in a path-finding manner according to the target file path.
[0032] In a possible implementation, parsing the rule management instruction to determine the target rule, and performing a target processing operation corresponding to the target rule on the target data according to the target rule to determine the target data processing result includes:
[0033] Parsing the rule management instruction to determine query elements and call functions;
[0034] The target rule is determined according to the query element and the calling function, and a target processing operation corresponding to the target rule is performed on the target data according to the query element and the calling function to determine the target data processing result.
[0035] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the edge cloud native-based rule engine management method as described in the second aspect is implemented.
[0036] In a fourth aspect, the present application provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the edge cloud native-based rule engine management method as described in the second aspect.
[0037] In a fifth aspect, the present application provides a computer program product, comprising computer program instructions, which, when executed on a computer, enable the computer to execute the edge cloud native-based rule engine management method as described in the second aspect.
[0038] As can be seen from the above, the present application provides a rule engine management system, method and related equipment based on edge cloud native, the system comprising: a management console located on the cloud side and an edge application management subsystem and an edge rule engine subsystem located on the edge side terminal, the management console is communicatively connected to the edge side terminal where the edge application management subsystem and the edge rule engine subsystem are located; the management console is used to issue a container startup instruction to the edge application management subsystem, and to issue a data source management instruction and a rule management instruction to the edge rule engine subsystem, and to receive a stream data processing result determined by the edge rule engine subsystem according to the data source management instruction and the rule management instruction; the edge application management subsystem is used to receive the container startup instruction issued by the management console, and to start the target container where the edge rule engine subsystem is located according to the container startup instruction; the edge rule engine subsystem is used to receive the data source management instruction and the rule management instruction issued by the management console, and upload the target data processing result determined according to the data source management instruction and the rule management instruction to the management console. The edge application management subsystem can remotely deploy and control the edge rule engine subsystem and support the deployment and update of the rule engine. The edge rule engine subsystem can be deployed on the edge terminal and flexibly configure business rules remotely through the management control page. Business rules are written using predefined semantic modules and rule definitions based on SQL-like languages (Structured Query Language) are provided. Users or developers can define and manage rules at any time and embed rules into edge module programs. Data can be directly processed and calculated and analyzed in real time, thereby improving the applicability of the overall management system, making it easy to operate and more fault-tolerant. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 An exemplary schematic diagram of an edge cloud native-based rule engine management system provided in an embodiment of the present application is shown.
[0041] Figure 2 An exemplary schematic diagram of the technical architecture of an edge cloud native-based rule engine management system provided in an embodiment of the present application is shown.
[0042] Figure 3A schematic diagram of an exemplary application scenario of an edge cloud native-based rule engine management method provided in an embodiment of the present application is shown.
[0043] Figure 4 An exemplary flow chart of an edge cloud native-based rule engine management method provided in an embodiment of the present application is shown.
[0044] Figure 5 A schematic diagram of an exemplary structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0045] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0046] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0047] The concept of "data governance" originated from the United States. The IBM (International Business Machines Corporation) Data Governance Committee has given a relevant definition of data governance: In order to realize corporate value, enterprises use a series of data management methods, management procedures, management indicators, and management roles in the entire cycle of data storage, data access, data use, data protection, and data verification to ensure that data is effectively developed and efficiently used. With the continuous development of power companies, asset accumulation, increased departments, and more refined professional division of labor, more and more business data classifications within the company have resulted in serious data crossover and redundancy, making multimodal data difficult to maintain and quality difficult to ensure. Therefore, there is still a need for in-depth research on the comprehensive governance technology of multimodal samples of power.
[0048] As described in the background technology section, with the integration of the Internet of Things with new generation information technologies such as machine learning and big data computing, Internet of Things applications need to process a large amount of real-time data streams. If the traditional data processing method is used, all data needs to be uploaded to the cloud computing platform for analysis. However, the cloud computing platform will face high network latency, massive device access, difficulty in processing massive data, insufficient bandwidth and excessive power consumption. In order to solve the problems of high latency and lack of real-time data analysis capabilities under the traditional data processing method, we need to process real-time data on the edge side. Edge computing, as an emerging computing paradigm, aims to build a relatively complete application platform with core capabilities such as computing and storage close to the side of the Internet of Things terminal, which can make full use of the real-time Internet of Things data reported by the terminal for rapid processing and analysis, reduce the computing and storage costs of cloud Internet of Things data, and provide a variety of intelligent application services to edge users. The rule engine is developed from the inference engine and is a component embedded in the application. The role of the rule engine in the Internet of Things is to set corresponding rules for the devices connected to the platform through business personnel. After the conditions meet the set rules, the platform triggers corresponding actions to meet user needs.
[0049] In the related technology, the edge rules are configured through the rule configuration module of the IoT middleware to generate a configuration file. The IoT middleware sends the configuration file to the industrial IoT gateway through the message queue protocol (MQTT protocol). The industrial IoT gateway parses the configuration file and sends the parsed edge rules to the rule engine module and the data reporting module. It determines whether the rule conditions are established based on real-time data, and then updates the status of the edge rules based on the logical operation results of all rule conditions, and decides to execute the rule trigger action or the rule elimination action. However, sending the rule configuration to the edge side in the form of a file, and the edge side queries and parses the file for rule processing, has relatively poor applicability and low fault tolerance.
[0050] For this reason, the present application provides a rule engine management system, method and related equipment based on edge cloud native, the system comprising: a management console located on the cloud side and an edge application management subsystem and an edge rule engine subsystem located on the edge side terminal, the management console is communicatively connected to the edge side terminal where the edge application management subsystem and the edge rule engine subsystem are located; the management console is used to issue a container startup instruction to the edge application management subsystem, and to issue a data source management instruction and a rule management instruction to the edge rule engine subsystem, and to receive a stream data processing result determined by the edge rule engine subsystem according to the data source management instruction and the rule management instruction; the edge application management subsystem is used to receive the container startup instruction issued by the management console, and to start the target container where the edge rule engine subsystem is located according to the container startup instruction; the edge rule engine subsystem is used to receive the data source management instruction and the rule management instruction issued by the management console, and to upload the target data processing result determined according to the data source management instruction and the rule management instruction to the management console. The edge application management subsystem can remotely deploy and control the edge rule engine subsystem and support the deployment and update of the rule engine. The edge rule engine subsystem can be deployed on the edge terminal and flexibly configure business rules remotely through the management control page. Business rules are written using predefined semantic modules and rule definitions based on SQL-like languages (Structured Query Language) are provided. Users or developers can define and manage rules at any time and embed rules into edge module programs. Data can be directly processed and calculated and analyzed in real time, thereby improving the applicability of the overall management system, making it easy to operate and more fault-tolerant.
[0051] Figure 1 An exemplary schematic diagram of an edge cloud native-based rule engine management system provided in an embodiment of the present application is shown.
[0052] refer to Figure 1 , wherein the system includes: a management console located on the cloud side, and an edge application management subsystem and an edge rule engine subsystem located on the edge side terminal, and the management console is communicatively connected with the edge side terminal where the edge application management subsystem and the edge rule engine subsystem are located. The management console manages and controls the applications and data of multiple edge side terminals through the cloud-edge collaboration protocol. The management console includes the capabilities of edge application store, edge application deployment, edge application update, edge application monitoring, data node maintenance, data rule maintenance, data source maintenance, data destination maintenance, etc.
[0053] In addition, the edge application management subsystem includes functions such as application file management, application deployment, application update and application control. The edge rule engine subsystem includes data source management, data rule management and data purpose management functions, among which data source management can include different data source types, such as file type data files, data centers for acquiring and managing streaming data, and acquiring and managing MQTT (also known as message queue telemetry transmission) type data. Data rule management includes SQL parser, data calculation and rule control functions, and data purpose management includes functions such as publishing data processing results by data centers, MQTT message servers and HTTP (also known as Hypertext Transfer Protocol) servers.
[0054] Specifically, the management console can be used to issue application management instructions to the edge application management subsystem, so that the edge application management subsystem uploads the image file, target application ID, bracket number, target application name and target application version number of the target application in the edge terminal to the management console; wherein the target application is determined according to the application management instruction.
[0055] For example, the application store in the management console can manage the image files and application software packages of edge applications. Users can upload the image files of applications to maintain information such as application ID, serial number, APP (application) name, APP (application) version number, etc.
[0056] The management console is also used to send application installation instructions to the edge application management subsystem, and send the target application installation package indicated by the application installation instruction to the edge side terminal, so that the edge application management subsystem installs the target application corresponding to the target application installation package to the edge side terminal according to the application installation instruction.
[0057] For example, the management console can use the cloud-edge collaboration protocol to send APP (application) packages to edge terminals, and remotely control and manage the deployment of APP (application) on the edge.
[0058] Of course, the management console can also send application update instructions to the edge application management subsystem, so that the edge application management subsystem can update the APP (application) version on the edge side according to the application update instructions.
[0059] The management console is also used to send a monitoring information acquisition instruction to the edge application management subsystem, so that the edge application management subsystem uploads the acquired resource occupancy information of the edge terminal and the operation log of the target application to the management console. Specifically, the monitoring information of the edge application, such as resource occupancy such as CPU utilization and memory utilization, and the operation log of the application can be obtained.
[0060] The edge application management subsystem can run on the edge side, interact with the management console, and manage applications and containers on the edge side by receiving control instructions from the management console. This includes executing edge container management according to the corresponding instructions issued by the management console, and implementing operations such as container installation control, container start control, container stop control, container deletion control, and container status query. In addition, for applications on edge terminals, edge application management can be executed according to the corresponding instructions issued by the management console to implement operations such as application installation control, application uninstallation control, application status query control, and application update control.
[0061] In some embodiments, the management console is further used to send a container update instruction to the edge application management subsystem, so that the edge application management subsystem updates the target container where the edge rule engine subsystem is located according to the container update instruction.
[0062] In other embodiments, the management console is used to issue a container startup instruction to the edge application management subsystem, and to issue a data source management instruction and a rule management instruction to the edge rule engine subsystem, and to receive a stream data processing result determined by the edge rule engine subsystem according to the data source management instruction and the rule management instruction;
[0063] The edge application management subsystem is used to receive the container startup instruction issued by the management console, and start the target container where the edge rule engine subsystem is located according to the container startup instruction;
[0064] The edge rule engine subsystem is used to receive the data source management instructions and rule management instructions issued by the management console, and upload the target data processing results determined according to the data source management instructions and rule management instructions to the management console.
[0065] Among them, the edge rule engine subsystem is also used to determine the target data source type according to the data source management instruction, and obtain the target data indicated by the target data source type; and, parse the rule management instruction to determine the target rule, and perform the target processing operation corresponding to the target rule on the target data according to the target rule to determine the target data processing result.
[0066] The edge rule engine subsystem runs on the resource-constrained edge side and is deployed in a lightweight container. The deployment and update control of the rule engine can be performed through the management of the edge application management subsystem. The rule engine provides SQL-based or graph-based rule configuration to quickly create data analysis applications on the edge side of the Internet of Things.
[0067] Figure 2 An exemplary schematic diagram of the technical architecture of an edge cloud native-based rule engine management system provided in an embodiment of the present application is shown.
[0068] refer to Figure 2 The edge rule engine subsystem can determine the target data source type according to the data source management instructions issued by the management console, and obtain the corresponding type of stream data through the MQTT Broker (also known as the message queue telemetry transmission message server), the file storage path and the data center, and use the SQL parser to parse the rule management instructions issued by the management console to determine the target rule, and perform the target processing operation corresponding to the target rule on the target data according to the target rule through the computing component, stream data management and storage module, so as to determine the target data processing result. Then, through the data destination function, the target data processing result is forwarded to different target locations, such as publishing data through MQTT Broker, Rest server, target file, Redis and kafka. The target data processing result can also be uploaded to the management console.
[0069] Specifically, the edge rule engine subsystem is also used to publish the stream data processing results to the target location according to the sending instructions issued by the management console, and configure relevant information for the stream data processing results; wherein the target location includes: target file location, message queue telemetry transmission message server, application programming interface and remote dictionary service; the relevant information includes: the file path, file type and file header corresponding to the target file location, the message queue telemetry transmission message server address, user information, topic information and data forwarding service quality information corresponding to the message queue telemetry transmission message server, the configurable application programming interface address, request timeout and authentication certificate corresponding to the application programming interface, and the configurable remote dictionary service address, remote dictionary service user information and key type corresponding to the remote dictionary service.
[0070] Figure 3 A schematic diagram of an exemplary application scenario of an edge cloud native-based rule engine management method provided in an embodiment of the present application is shown.
[0071] refer to Figure 3In this application scenario, a local terminal device 101 and a server 102 are included. The local terminal device 101 and the server 102 may be connected via a wired or wireless communication network to achieve data interaction.
[0072] The local terminal device 101 may be an electronic device with data transmission and multimedia input / output functions close to the user side, such as a desktop computer, a mobile phone, a mobile computer, a tablet computer, a media player, a car computer, a smart wearable device, a personal digital assistant (PDA) or other electronic devices capable of realizing the above functions. The electronic device may include a processor and a display screen with a touch input function, the display screen is used to present a graphical user interface, the graphical user interface can display a user operation interface, and the processor is used to process corresponding data, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0073] Server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0074] In some exemplary embodiments, the edge cloud native-based rule engine management method can run on a local terminal device 101 or a server 102 .
[0075] When the edge cloud native rule engine management method is run on the server 102, the server 102 is used to provide edge cloud native rule engine management services to users of terminal devices. The terminal device is installed with a client that communicates with the server 102, and the user can specify the target program through the client. The server 102 uses the management console to issue a container startup instruction to the edge application management subsystem, and issues a data source management instruction and a rule management instruction to the edge rule engine subsystem; in response to the edge application management subsystem receiving the container startup instruction issued by the management console, the edge application management subsystem is used to start the target container where the edge rule engine subsystem is located according to the container startup instruction; in response to the edge rule engine subsystem receiving the data source management instruction and the rule management instruction issued by the management console, the edge rule engine subsystem is used to determine the target data processing result according to the data source management instruction and the rule management instruction, and upload the target data processing result to the management console. The server 102 can also send the target data processing result to the client, and the client displays the target data processing result to the user. Among them, the terminal device can be the local terminal device 101 mentioned above.
[0076] When the edge cloud native rule engine management method runs on the server 102, the method can be implemented and executed based on the cloud interaction system.
[0077] Among them, the cloud interaction system includes client devices and cloud servers.
[0078] In some exemplary embodiments, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operation subject of the game program and the game screen presentation subject are separated. The storage and operation of the control method of the mobile state in the game are completed on the cloud game server. The role of the client device is to receive and send data and present the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is responsible for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0079] In the above embodiment, the edge cloud native-based rule engine management method is described as running on the server 102. However, the present disclosure is not limited to this. In some exemplary embodiments, the edge cloud native-based rule engine management method can also run on the local terminal device 101.
[0080] The local terminal device 101 may include a display screen and a processor. A client is installed in the local terminal device 101, and the user can specify the target program through the client. The processor uses the management console to issue a container startup instruction to the edge application management subsystem, and issues a data source management instruction and a rule management instruction to the edge rule engine subsystem; in response to the edge application management subsystem receiving the container startup instruction issued by the management console, the edge application management subsystem is used to start the target container where the edge rule engine subsystem is located according to the container startup instruction; in response to the edge rule engine subsystem receiving the data source management instruction and the rule management instruction issued by the management console, the edge rule engine subsystem is used to determine the target data processing result according to the data source management instruction and the rule management instruction, and upload the target data processing result to the management console. The processor can also send the target data processing result to the client, and the client displays the target data processing result to the user through the display screen.
[0081] For example, the local terminal device 101 may include a display screen and a processor, wherein the display screen is used to present a graphical user interface including an operation screen, and the processor is used to run the electronic system, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0082] In some exemplary embodiments, the embodiments of the present disclosure provide an edge cloud native-based rule engine management method, providing a graphical user interface through a terminal device, wherein the terminal device can be the local terminal device 101 mentioned above, or it can be a client device in the cloud interaction system mentioned above.
[0083] Combine the following Figure 3 The test method according to the exemplary embodiment of the present disclosure is described by using the application scenario. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principle of the present disclosure, and the embodiments of the present disclosure are not limited in this respect. On the contrary, the embodiments of the present disclosure can be applied to any applicable scenario.
[0084] Figure 4 An exemplary flow chart of an edge cloud native-based rule engine management method provided in an embodiment of the present application is shown.
[0085] refer to Figure 4, a rule engine management method based on edge cloud native provided in an embodiment of the present application, applies the rule engine management system based on edge cloud native as described in the aforementioned embodiment, the system includes: a management console located on the cloud side and an edge application management subsystem and an edge rule engine subsystem located on the edge side terminal, the management console is communicated with the edge side terminal where the edge application management subsystem and the edge rule engine subsystem are located; the method specifically includes the following steps:
[0086] S402: Using the management console, send a container startup instruction to the edge application management subsystem, and send a data source management instruction and a rule management instruction to the edge rule engine subsystem.
[0087] S404: In response to the edge application management subsystem receiving the container start instruction issued by the management console, the edge application management subsystem is used to start the target container where the edge rule engine subsystem is located according to the container start instruction.
[0088] S406: In response to the edge rule engine subsystem receiving the data source management instructions and rule management instructions issued by the management console, the edge rule engine subsystem determines the target data processing results according to the data source management instructions and the rule management instructions, and uploads the target data processing results to the management console.
[0089] In some embodiments, the management console manages and controls the applications and data of multiple edge terminals through the cloud-edge collaboration protocol. The management console includes edge application store, edge application deployment, edge application update, edge application monitoring, data node maintenance, data rule maintenance, data source maintenance, data destination maintenance and other capabilities.
[0090] In addition, the edge application management subsystem includes functions such as application file management, application deployment, application update and application control. The edge rule engine subsystem includes data source management, data rule management and data purpose management functions, among which data source management can include different data source types, such as file type data files, data centers for acquiring and managing streaming data, and acquiring and managing MQTT (also known as message queue telemetry transmission) type data. Data rule management includes SQL parser, data calculation and rule control functions, and data purpose management includes functions such as publishing data processing results by data centers, MQTT message servers and HTTP (also known as Hypertext Transfer Protocol) servers.
[0091] Specifically, the management console can be used to issue application management instructions to the edge application management subsystem, so that the edge application management subsystem uploads the image file, target application ID, bracket number, target application name and target application version number of the target application in the edge terminal to the management console; wherein the target application is determined according to the application management instruction.
[0092] For example, the application store in the management console can manage the image files and application software packages of edge applications. Users can upload the image files of applications to maintain information such as application ID, serial number, APP (application) name, APP (application) version number, etc.
[0093] Among them, multiple different applications can be provided in the application store, such as the "edge rule engine" application and the "app8" application, which are available for download. You can query the application by entering the name of the application you want to obtain, and you can also search for applications that meet user needs by business type and R&D unit. In addition, you can also search for the application that has been listed by the status of the application, so that the edge application management subsystem can download the corresponding application.
[0094] The management console is also used to send application installation instructions to the edge application management subsystem, and send the target application installation package indicated by the application installation instruction to the edge side terminal, so that the edge application management subsystem installs the target application corresponding to the target application installation package to the edge side terminal according to the application installation instruction.
[0095] For example, the management console can use the cloud-edge collaboration protocol to send APP (application) packages to edge terminals, and remotely control and manage the deployment of APP (application) on the edge.
[0096] For example, the management console sends an instruction to the edge application management subsystem to install the "Edge Rule Engine" application. The edge application management subsystem can then find the "Edge Rule Engine" application in the application store of the management console based on the instruction, and download and install the "Edge Rule Engine" application on the edge terminal.
[0097] Of course, the management console can also send application update instructions to the edge application management subsystem, so that the edge application management subsystem can update the edge side APP (application) version according to the application update instruction. The version number of the application can be updated to update the corresponding application in the application store. After placing the new version of the "edge rule engine" application in the application store of the management console, the management console can be used to send application update instructions to the edge application management subsystem, so that the edge application management subsystem can download the new version of the "edge rule engine" application from the application store to update the application version on the edge side.
[0098] The management console is also used to send a monitoring information acquisition instruction to the edge application management subsystem, so that the edge application management subsystem uploads the acquired resource occupancy information of the edge terminal and the operation log of the target application to the management console. Specifically, the monitoring information of the edge application, such as resource occupancy such as CPU utilization and memory utilization, and the operation log of the application can be obtained.
[0099] The edge application management subsystem can run on the edge side, interact with the management console, and manage applications and containers on the edge side by receiving control instructions from the management console. This includes executing edge container management according to the corresponding instructions issued by the management console, and implementing operations such as container installation control, container start control, container stop control, container deletion control, and container status query. In addition, for applications on edge terminals, edge application management can be executed according to the corresponding instructions issued by the management console to implement operations such as application installation control, application uninstallation control, application status query control, and application update control.
[0100] In some embodiments, the management console is further used to send a container update instruction to the edge application management subsystem, so that the edge application management subsystem updates the target container where the edge rule engine subsystem is located according to the container update instruction.
[0101] The management console can send container management instructions to the edge application management subsystem to view the corresponding container name, container number, container IP address, online status, storage utilization, CPU load rate and other information, and can send container start or stop instructions to enable the edge application management subsystem to start or stop the corresponding container according to the container start or stop instructions.
[0102] Of course, the management console can also issue application management instructions to the edge application management subsystem, and then view the usage status and containers of each application in the edge terminal managed by the edge application management subsystem, and can also issue application uninstall instructions to remotely use the edge application management subsystem to uninstall the application in the edge terminal.
[0103] In other embodiments, the management console is used to issue container startup instructions to the edge application management subsystem, and to issue data source management instructions and rule management instructions to the edge rule engine subsystem, and to receive stream data processing results determined by the edge rule engine subsystem based on the data source management instructions and rule management instructions; the edge application management subsystem is used to receive the container startup instructions issued by the management console, and to start the target container where the edge rule engine subsystem is located based on the container startup instructions; the edge rule engine subsystem is used to receive the data source management instructions and rule management instructions issued by the management console, and to upload the target data processing results determined based on the data source management instructions and rule management instructions to the management console.
[0104] Among them, the edge rule engine subsystem is also used to determine the target data source type according to the data source management instruction, and obtain the target data indicated by the target data source type; and, parse the rule management instruction to determine the target rule, and perform the target processing operation corresponding to the target rule on the target data according to the target rule to determine the target data processing result.
[0105] The edge rule engine subsystem runs on the resource-constrained edge side and is deployed in a lightweight container. The deployment and update control of the rule engine can be performed through the management of the edge application management subsystem. The rule engine provides SQL-based or graph-based rule configuration to quickly create data analysis applications on the edge side of the Internet of Things.
[0106] The edge rule engine subsystem can determine the target data source type according to the data source management instructions issued by the management console, and obtain the corresponding type of stream data through the MQTT Broker (also known as the message queue telemetry transmission message server), the file storage path and the data center, and use the SQL parser to parse the rule management instructions issued by the management console to determine the target rules, and perform the target processing operation corresponding to the target rule on the target data according to the target rule through the computing components, stream data management and storage modules, so as to determine the target data processing result. Then, through the data destination function, the target data processing result is forwarded to different target locations, such as publishing data through MQTT Broker, Rest server, target file, Redis and kafka. The target data processing result can also be uploaded to the management console.
[0107] Specifically, the edge rule engine subsystem is also used to publish the stream data processing results to the target location according to the sending instructions issued by the management console, and configure relevant information for the stream data processing results; wherein the target location includes: target file location, message queue telemetry transmission message server, application programming interface and remote dictionary service; the relevant information includes: the file path, file type and file header corresponding to the target file location, the message queue telemetry transmission message server address, user information, topic information and data forwarding service quality information corresponding to the message queue telemetry transmission message server, the configurable application programming interface address, request timeout and authentication certificate corresponding to the application programming interface, and the configurable remote dictionary service address, remote dictionary service user information and key type corresponding to the remote dictionary service.
[0108] In some embodiments, the edge rule engine subsystem can determine the target data source type based on the data source management instruction; wherein the target data source type includes at least one of the following: a stream data type, a message queue telemetry transmission data type, a hypertext transfer protocol data type, and a file data type; obtain target data according to the target data source type; parse the rule management instruction to determine the target rule, and perform a target processing operation corresponding to the target rule on the target data according to the target rule to determine the target data processing result.
[0109] For example, in response to the target data source type being a stream data type, the stream type of the target data is determined, and target data corresponding to the stream type is acquired from an external system; wherein the stream type includes: integer type, floating point type, and byte array.
[0110] In response to the target data source type being a message queue telemetry transmission data type, the target data is subscribed to in real time according to the message queue telemetry transmission message server and the topic subscription configuration to obtain the target data.
[0111] In response to the target data source type being a hypertext transfer protocol data type, the target data is acquired from the hypertext transfer protocol data source according to the hypertext transfer protocol server proxy configuration.
[0112] In response to the target data source type being a file data type, a target file path is determined according to a local file configuration, and the target data is read according to a target file indicated by the target file path in a path-finding manner according to the target file path.
[0113] In the management console, you can determine that the stream data type to be obtained is bigint (integer type), and the target data source type to be obtained is the message queue telemetry transmission data type, that is, the MQTT type.
[0114] Among them, for the case where the data source is unbounded streaming data, the structure and type of the data stream can be defined, and the stream types include bigint (integer type), float (floating point type), and bytea (byte array for storing binary data). For the MQTT data type, MQTT Broker configuration and topic subscription configuration are provided, including MQTT server address management, user name management, password management, data forwarding service quality management, and certificate verification management, etc., and then subscribe to the target data in real time according to the message queue telemetry transmission message server and topic subscription configuration to obtain the target data.
[0115] For HTTP data types, HTTP server proxy configuration is provided, including path management, HTTP method management, and certificate verification management, to obtain real-time streaming data from HTTP sources.
[0116] For file data types, you can provide local file configuration, including file path configuration, and read stream data from the file.
[0117] The SQL-like statement corresponding to the target rule can be configured in the management console, and the rule management instruction can be sent to the edge rule engine subsystem through the management console, so that the edge rule engine subsystem parses the rule management instruction to determine the query element and the calling function; determines the target rule according to the query element and the calling function, and performs the target processing operation corresponding to the target rule on the target data according to the query element and the calling function to determine the target data processing result.
[0118] It should be noted that the calculation logic of streaming data can be configured based on rules, and a rule represents a streaming data processing flow. For example, you can create, delete, and edit rules, and provide a variety of rule maintenance methods such as SQL-based and embedded functions. The edge rule engine subsystem provides SQL query rules for building streaming data queries, where query elements include:
[0119] SELECT: SELECT is used to retrieve from streaming data and allows selecting one or more columns from one or more data streams in the rule engine module.
[0120] FROM: FROM is used to specify the data flow, and any SELECT statement always requires a FROM clause.
[0121] JOIN: JOIN is used to combine records from two or more data streams.
[0122] WHERE: WHERE is used to specify query conditions.
[0123] The edge rule engine subsystem has many built-in functions that can perform calculations on data. The functions are summarized below:
[0124] Aggregate functions: Aggregate functions perform calculations on a set of values and return a single value. Aggregate functions include AVG function, COUNT function, MAX function, MIN function, SUM function, etc.
[0125] AVG function: Returns the average value in a group.
[0126] COUNT function: Returns the number of items in a group.
[0127] MAX function: Returns the maximum value in a group.
[0128] MIN function: Returns the minimum value in a group.
[0129] SUM function: Returns the sum of all values in a group.
[0130] You can use the instructions of the management console to build one or more rules for a data stream, and add, delete, start, stop, etc. the rules. For example, for an MQTT-type data stream, you can build multiple rules corresponding to multiple SQL-like statements, and use the management console to add, delete, start, stop, etc. the rules you built.
[0131] Furthermore, the edge rule engine subsystem can forward the calculation and processing results of the stream data to an external system or file. The data target types include files, pictures, MQTT, Http restful, Redis and other types.
[0132] For example, the file type can forward the calculation results of the stream data to a file for storage, and the target file for data forwarding can be configured, including the file path, file type, and file header.
[0133] Image type: can directly generate image files from binary data, and can configure image file path, image file format, etc. Image file formats support jpeg, png and other formats.
[0134] MQTT: The calculation results of stream data can be published to the MQTT broker. You can configure the MQTT broker address, username and password, topic information, data forwarding service quality and other information.
[0135] Rest: The calculation results of stream data can be published to the Restul API service. You can configure the Restful url address, bodytype, request timeout, authentication certificate, etc.
[0136] Redis: The calculation results of stream data can be forwarded to Redis. You can configure the redis service address, redis user password, keytype, etc.
[0137] As can be seen from the above, the present application provides a rule engine management system, method and related equipment based on edge cloud native, the system comprising: a management console located on the cloud side and an edge application management subsystem and an edge rule engine subsystem located on the edge side terminal, the management console is communicatively connected to the edge side terminal where the edge application management subsystem and the edge rule engine subsystem are located; the management console is used to issue a container startup instruction to the edge application management subsystem, and to issue a data source management instruction and a rule management instruction to the edge rule engine subsystem, and to receive a stream data processing result determined by the edge rule engine subsystem according to the data source management instruction and the rule management instruction; the edge application management subsystem is used to receive the container startup instruction issued by the management console, and to start the target container where the edge rule engine subsystem is located according to the container startup instruction; the edge rule engine subsystem is used to receive the data source management instruction and the rule management instruction issued by the management console, and upload the target data processing result determined according to the data source management instruction and the rule management instruction to the management console. The edge application management subsystem can remotely deploy and control the edge rule engine subsystem and support the deployment and update of the rule engine. The edge rule engine subsystem can be deployed on the edge terminal and flexibly configure business rules remotely through the management control page. Business rules are written using predefined semantic modules and rule definitions based on SQL-like languages (Structured Query Language) are provided. Users or developers can define and manage rules at any time and embed rules into edge module programs. Data can be directly processed and calculated and analyzed in real time, thereby improving the applicability of the overall management system, making it easy to operate and more fault-tolerant.
[0138] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0139] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0140] Figure 5 A schematic diagram of an exemplary structure of an electronic device provided in an embodiment of the present application is shown.
[0141] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the edge cloud native-based rule engine management method described in any of the above embodiments is implemented. Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 510, a memory 520, an input / output interface 530, a communication interface 540, and a bus 550. The processor 510, the memory 520, the input / output interface 530, and the communication interface 540 are connected to each other in communication within the device through the bus 550.
[0142] The processor 510 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0143] The memory 520 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 520 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 520 and are called and executed by the processor 510.
[0144] The input / output interface 530 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0145] The communication interface 540 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0146] The bus 550 includes a path that transmits information between the various components of the device (eg, the processor 510 , the memory 520 , the input / output interface 530 , and the communication interface 540 ).
[0147] It should be noted that, although the above device only shows the processor 510, the memory 520, the input / output interface 530, the communication interface 540 and the bus 550, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0148] The electronic device of the above-mentioned embodiment is used to implement the corresponding edge cloud native-based rule engine management method in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0149] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the edge cloud native-based rule engine management method as described in any of the above embodiments.
[0150] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0151] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the edge cloud native rule engine management method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0152] Based on the same inventive concept, corresponding to the edge cloud native-based rule engine management method described in any of the above embodiments, the present disclosure also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor executes the edge cloud native-based rule engine management method. Corresponding to the execution subject corresponding to each step in each embodiment of the edge cloud native-based rule engine management method, the processor that executes the corresponding step may belong to the corresponding execution subject.
[0153] The computer program product of the above embodiment is used to enable the computer and / or the processor to execute the edge cloud native-based rule engine management method as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0154] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0155] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power / ground connections to the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device may be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application are to be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0156] Although the present application has been described in conjunction with specific embodiments of the present application, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the discussed embodiments.
[0157] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A rule engine management system based on edge cloud native, characterized in that: The system comprises: A management console located on the cloud side and an edge application management subsystem and an edge rule engine subsystem located on the edge side terminal, wherein the management console is communicatively connected with the edge side terminal where the edge application management subsystem and the edge rule engine subsystem are located; The management console is used to send a container startup instruction to the edge application management subsystem, and send a data source management instruction and a rule management instruction to the edge rule engine subsystem, and receive a stream data processing result determined by the edge rule engine subsystem according to the data source management instruction and the rule management instruction; The edge application management subsystem is used to receive the container startup instruction issued by the management console, and start the target container where the edge rule engine subsystem is located according to the container startup instruction; the edge application management subsystem is also used to remotely deploy and control the edge rule engine subsystem, and support the deployment and update of the rule engine; The edge rule engine subsystem is used to receive the data source management instructions and rule management instructions issued by the management console, and upload the target data processing results determined according to the data source management instructions and rule management instructions to the management console; the edge rule engine subsystem remotely and flexibly configures business rules through the management control page, uses predefined semantic modules to write business rules, provides rule definitions based on structured query language, and allows users or developers to define and manage rules at any time, embed rules into edge-side module programs, and directly process, calculate and parse data in real time; the edge rule engine subsystem deploys and updates the rule engine through the management of the edge application subsystem; the rule engine provides structured query language-based or graph-based rule configuration to quickly create data analysis applications on the edge of the Internet of Things; The edge rule engine subsystem includes data source management, data rule management and data purpose management functions; wherein the data source management includes stream data definition and message queue telemetry transmission type data definition; the data rule management includes structured query language parser, stream data calculation and rule execution functions to calculate and analyze data based on the built-in functions defined by the rules; data purpose management includes file management, image management, and interface management to realize stream data forwarding; The edge rule engine subsystem is further used to determine the target data source type according to the data source management instruction, and obtain the target data indicated by the target data source type; parse the rule management instruction to determine the target rule, and perform the target processing operation corresponding to the target rule on the target data according to the target rule to determine the target data processing result, including: Determine the target data source type according to the data source management instruction, obtain the corresponding type of stream data through the message queue telemetry transmission message server, file storage path and data center, and use the structured query language parser to parse the rule management instruction issued by the management console to determine the target rule; perform the target processing operation corresponding to the target rule on the target data according to the target rule through the computing component, stream data management and storage module, so as to determine the target data processing result.
2. The system according to claim 1, characterized in that The management console is also used to issue application management instructions to the edge application management subsystem, so that the edge application management subsystem uploads the image file, target application ID, bracket number, target application name and target application version number of the target application in the edge side terminal to the management console; wherein the target application is determined according to the application management instruction.
3. The system according to claim 1, characterized in that The management console is also used to send application installation instructions to the edge application management subsystem, and send the target application installation package indicated by the application installation instruction to the edge side terminal, so that the edge application management subsystem installs the target application corresponding to the target application installation package to the edge side terminal according to the application installation instruction.
4. The system according to claim 2 or 3, characterized in that: The management console is also used to issue a monitoring information acquisition instruction to the edge application management subsystem, so that the edge application management subsystem uploads the acquired resource occupancy information of the edge terminal and the operation log of the target application to the management console.
5. The system according to claim 1, characterized in that The management console is further used to send a container update instruction to the edge application management subsystem, so that the edge application management subsystem updates the target container where the edge rule engine subsystem is located according to the container update instruction.
6. The system according to claim 1, characterized in that The edge rule engine subsystem is also used to publish the stream data processing results to the target location according to the sending instructions issued by the management console, and configure relevant information for the stream data processing results; wherein the target location includes: target file location, message queue telemetry transmission message server, application programming interface and remote dictionary service; the relevant information includes: the file path, file type and file header corresponding to the target file location, the message queue telemetry transmission message server address, user information, topic information and data forwarding service quality information corresponding to the message queue telemetry transmission message server, the configurable application programming interface address, request timeout and authentication certificate corresponding to the application programming interface, and the configurable remote dictionary service address, remote dictionary service user information and key type corresponding to the remote dictionary service.
7. A method for managing an edge cloud native rule engine using the edge cloud native rule engine management system according to any one of claims 1 to 6, characterized in that: The system includes: a management console located on the cloud side and an edge application management subsystem and an edge rule engine subsystem located on the edge side terminal, wherein the management console is in communication connection with the edge side terminal where the edge application management subsystem and the edge rule engine subsystem are located; the edge rule engine subsystem includes data source management, data rule management and data purpose management functions; wherein the data source management includes stream data definition and message queue telemetry transmission type data definition; the data rule management includes a structured query language parser, stream data calculation and rule execution functions to calculate and analyze data based on the built-in functions defined by the rules; the data purpose management includes file management, image management and interface management to realize stream data forwarding; The method comprises: Using the management console to issue a container startup instruction to the edge application management subsystem, and to issue a data source management instruction and a rule management instruction to the edge rule engine subsystem; In response to the edge application management subsystem receiving the container startup instruction issued by the management console, the edge application management subsystem is used to start the target container where the edge rule engine subsystem is located according to the container startup instruction; the edge rule engine subsystem is remotely deployed and controlled to support the deployment and update of the rule engine; In response to the edge rule engine subsystem receiving the data source management instruction and the rule management instruction issued by the management console, the edge rule engine subsystem determines the target data processing result according to the data source management instruction and the rule management instruction, and uploads the target data processing result to the management console; the edge rule engine subsystem management control page is used to remotely and flexibly configure the business rules, and predefined semantic modules are used to write business rules, and rule definitions based on structured query language are provided, so that users or developers can define and manage rules at any time, embed rules into edge-side module programs, and directly process, calculate and parse data in real time; the edge application subsystem is used to manage the edge rule engine subsystem to deploy and update the rule engine; the rule engine provides structured query language-based or graph-based rule configuration to quickly create data analysis applications on the edge side of the Internet of Things; The method further includes: using the edge rule engine subsystem to determine the target data source type according to the data source management instruction, and obtaining the target data indicated by the target data source type; parsing the rule management instruction to determine the target rule, and performing a target processing operation corresponding to the target rule on the target data according to the target rule to determine the target data processing result, including: Determine the target data source type according to the data source management instruction, obtain the corresponding type of stream data through the message queue telemetry transmission message server, file storage path and data center, and use the structured query language parser to parse the rule management instruction issued by the management console to determine the target rule; perform the target processing operation corresponding to the target rule on the target data according to the target rule through the computing component, stream data management and storage module, so as to determine the target data processing result.
8. The method according to claim 7, characterized in that The edge rule engine subsystem determines the stream data processing result according to the data source management instruction and the rule management instruction, including: Determine the target data source type according to the data source management instruction; wherein the target data source type includes at least one of the following: a stream data type, a message queue telemetry transmission data type, a hypertext transfer protocol data type, and a file data type; Acquire target data according to the target data source type; The rule management instruction is parsed to determine the target rule, and a target processing operation corresponding to the target rule is performed on the target data according to the target rule to determine the target data processing result.
9. The method according to claim 8, characterized in that The acquiring target data according to the target data source type includes: In response to the target data source type being a stream data type, the stream type of the target data is determined, and target data corresponding to the stream type is acquired from an external system; wherein the stream type includes: integer type, floating point type, and byte array.
10. The method according to claim 8, characterized in that The acquiring target data according to the target data source type includes: In response to the target data source type being a message queue telemetry transmission data type, the target data is subscribed to in real time according to the message queue telemetry transmission message server and the topic subscription configuration to obtain the target data.
11. The method according to claim 8, characterized in that The acquiring target data according to the target data source type includes: In response to the target data source type being a hypertext transfer protocol data type, the target data is acquired from the hypertext transfer protocol data source according to the hypertext transfer protocol server proxy configuration.
12. The method according to claim 8, characterized in that The acquiring target data according to the target data source type includes: In response to the target data source type being a file data type, a target file path is determined according to a local file configuration, and the target data is read according to a target file indicated by the target file path in a path-finding manner according to the target file path.
13. The method according to claim 7, characterized in that The step of parsing the rule management instruction to determine the target rule, and performing a target processing operation corresponding to the target rule on the target data according to the target rule to determine the target data processing result includes: Parsing the rule management instruction to determine query elements and call functions; The target rule is determined according to the query element and the calling function, and a target processing operation corresponding to the target rule is performed on the target data according to the query element and the calling function to determine the target data processing result.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 7 to 13 is implemented.
15. A computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to implement the method according to any one of claims 7 to 13.
16. A computer program product, characterized in that The method comprises computer program instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 7 to 13.
