Low-code development platform and method supporting automatic independent deployment
Through the microservice architecture and automated deployment module, Helm and Ansible are used to realize automated independent deployment of low-code platforms, which solves the coupling problem of independent deployment of low-code platforms, improves application startup efficiency and accuracy, and enables applications in different environments. independent operation.
Patent Information
- Application Number
- CN202411280323.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-09-13
AI Technical Summary
When existing low-code platforms are independently deployed, applications are tightly coupled to the platform, making it difficult to migrate and leave the platform. There is also a lack of automated ways to start low-code running applications, which results in manual operations for operation and maintenance personnel, which is error-prone and inefficient.
It adopts microservice architecture, operation center and automated independent deployment module, manages the deployment environment through configuration files and environment variables, uses Helm and Ansible to realize automated deployment and operation and maintenance, supports containerization and virtual machine deployment, and ensures the consistency of applications in different environments. and portability.
It realizes automated independent deployment of low-code applications, improves startup efficiency and accuracy, decouples design state and running state functions, supports automated export and import of configuration information, and ensures that applications run independently on containers or virtual machines.
Smart Images

Figure CN118796360A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of software development and relates to a low-code development platform and method that supports automated independent deployment. Background Art
[0002] With the development of low-code platforms, developers and non-developers can quickly create and iterate applications through visual development environments and pre-built components, lowering the development threshold.
[0003] Although low-code platforms provide the advantage of rapid development, when deployed independently, the application is tightly coupled with the platform, which makes it difficult to migrate and leave the platform, and it is difficult to start new running services from the original application.
[0004] Patent application number: CN202410440431.3 mentions "methods, devices, processors and computer-readable storage media for realizing cross-center independent deployment control of applications on low-code platforms". This patent provides how to achieve independent deployment, but it is still based on the low-code base application image, and the application cannot run independently, which is not truly independent deployment and operation. At the same time, after removing the design dependency, there is currently a solution in the industry that supports manual export of application-related information, and then uses the traditional network transmission (SSH / HTTP) or USB copy to run the required installation package to the machine that needs to run independently and then start the service. However, this method requires the operation and maintenance personnel to follow the steps step by step, place the package files required for installation and operation and start them one by one, or write scripts in SHELL, GO or other scripting languages. This manual operation is prone to errors, such as configuration file input errors, inaccurate command input, etc., which can easily lead to system instability or failure. At the same time, when there are many projects, a large number of repetitive operations will be generated, and the efficiency is extremely low.
[0005] Therefore, there is currently no solution in the industry for how to start low-code running applications in an automated manner. This article will propose an independent deployment solution for applications in an automated manner for different usage scenarios. Summary of the invention
[0006] In order to solve the technical problems existing in the above background technology, the present invention adopts the following technical solutions: In a first aspect, the present invention provides a low-code development platform that supports automated independent deployment, including: a microservices framework, an operation center, and an automated independent deployment module; The microservice architecture includes independent user management modules, gateway service modules, form design modules, data storage modules, API management modules, and process engine modules. The microservice architecture separates different functions and independently deploys and maintains each service. The operation center uses configuration files or environment variables to manage different deployment environments, uses a template system to define deployment configurations, and supports automatic generation of configuration files for different environments. The same set of code can be flexibly deployed in different environments. The automated independent deployment module uses the application management package helm to start services for containerization and orchestration; it uses Ansible automated operation and maintenance to start independent applications and support independent deployment for starting virtual machines.
[0007] Furthermore, the microservice architecture selects traditional programming languages and frameworks, uses VUE3 for the front end, and Java + Spring Boot for the back end. For the convenience of data storage, the database is selected according to the needs. The front and back end interactions use the APIs provided by each microservice, including RESTful interfaces, and use JSON for data exchange. Nacos is used as a service discovery tool to manage the dynamic registration and discovery of microservices, and the load balancer Nginx is used to distribute requests.
[0008] Furthermore, the environment of the operation center includes host management, data source management, Redis management, Minio management, and Nacos management. Each environment selects a specific host, data source, Redis configuration, and static information according to actual needs, and persists the environment information after the selection is completed, and generates different configuration information according to the selected deployment scenario type.
[0009] Furthermore, for containerized scenarios, the configuration files of the operation center are Nacos YAML files and value.yml used by helm orchestration.
[0010] Furthermore, for the virtual machine scenario, the operation center uses the bootstrap.yml configuration file required to start each module, and the middleware configuration file uses the ngnix.conf file of Nginx.
[0011] Furthermore, we automate the containerization of independently deployed modules and package applications and dependencies into containers to ensure consistency and portability in different environments.
[0012] Furthermore, the automated independent deployment module uses the orchestration tool Kubernetes to manage the deployment, expansion, and operation of containers.
[0013] Furthermore, the steps of using the application management package helm to start the service include: publishing and saving the designed application image, then writing a template file through the helm chart, and passing in the name of the running service image to be deployed, and starting the service through "helm install".
[0014] Furthermore, the specific steps for using Ansible automated operation and maintenance to start independent applications to support independent deployment include: first, configure the basic Ansible environment and control nodes in the running deployment center; create an AnsiblePlaybook file to manage, and create a virtual machine startup module to manage the virtual machine. The file host information is dynamically adjusted according to the configuration center parameters; then deploy application services for low-code independent services, write middleware and application service module information for the low-code platform, and finally configure the Ansible Inventory file and run Playbooks, and the service can be automatically started and deployed.
[0015] In a second aspect, the present invention provides a working method of a low-code development platform supporting automated independent deployment, the steps comprising: First, build an independent operation center to configure the environment of the operation state service; export the dependent components, menus, and view data when publishing the design state application; Use Helm technology to manage Kubernetes applications for cloud environments, create and start running microservices; Use Ansible services to automate the operation and maintenance of virtual machines, automatically start remote virtual machines, or deploy running application services.
[0016] The beneficial effects of the present invention are: 1. The present invention adopts a low-code development platform that supports automated independent deployment, including: a microservice framework, an operation center, and an automated independent deployment module. First, an independent operation center is built to configure the environment of the running service; at the same time, the dependent components, menus, views and other data are exported when the design application is released; then, Helm technology is used to manage Kubernetes applications for the cloud environment, and running microservices are created and started; Ansible services are used to realize automated operation and maintenance for virtual machines, and remote virtual machines are automatically started or running application services are deployed, which solves the problem of how to start low-code running applications in an automated manner and improves the efficiency and accuracy of starting low-code running applications.
[0017] 2. The present invention designs a low-code development platform that supports independent deployment in an automated manner. The system supports the functional decoupling of the design state and the running state. By setting the static configuration required for the running state in advance, the running state can run independently in the form of a container or on an independent virtual machine after obtaining the basic configuration information. The system supports the export and import analysis of basic configuration information, and can store the corresponding export information including but not limited to application information, form information, and dictionary information through persistent files.
[0018] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0020] Figure 1 This is a diagram of the independent deployment system architecture of the low-code platform of the present invention; Figure 2 A deployment flow chart of the low-code platform independent deployment system of the present invention; Figure 3 A schematic diagram of creating and starting an application for the low-code platform Ansible of the present invention. DETAILED DESCRIPTION
[0021] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0022] It should be noted that the following detailed descriptions are all illustrative and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used in this embodiment have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0023] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0024] In the present invention, terms such as "upper", "lower", "left", "right", "front", "back", "vertical", "horizontal", "side", "bottom", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings. They are relational words determined only for the convenience of describing the structural relationships of the various parts or elements of the present invention, and do not specifically refer to any part or element in the present invention and should not be understood as limitations on the present invention.
[0025] In the present invention, terms such as "fixed connection", "connected", "connection", etc. should be understood in a broad sense, indicating that it can be fixedly connected, integrally connected or detachably connected; it can be directly connected or indirectly connected through an intermediate medium. Relevant scientific research or technical personnel in this field can determine the specific meanings of the above terms in the present invention according to specific circumstances, and they should not be understood as limiting the present invention.
[0026] The low-code platform is divided into design state and running state. The running state depends on the data of the design state, including component information, permissions, rules, configuration, etc., and the coupling is serious. Therefore, in order to achieve independent deployment, it is necessary to extract the common content and difference content required for the operation of different applications in the running state. Obviously, the common content is the function of the program itself, which can support the operation of the running state service; the difference content includes the configuration information and environment information that the program depends on when it starts. Therefore, first build an independent operation center to configure the environment of the running state service. At the same time, the dependent components, menus, views and other data are exported when the design state application is released. Then use Helm technology to manage Kubernetes applications for cloud environments, create and start running state microservices; use Ansible services for virtual machines to achieve automated operation and maintenance, automatically start remote virtual machines or deploy running state application services.
[0027] To design a low-code development platform that supports independent deployment in an automated manner, the system must first support the functional decoupling of the design state and the running state. By setting the static configuration required for the running state in advance, the running state can be run independently in the form of a container or on an independent virtual machine after obtaining the basic configuration information. Such a system requires the system to support the export and import parsing of basic configuration information. Here, the corresponding export information can be stored in persistent files, including but not limited to application information, form information, dictionary information, etc.
[0028] Embodiment 1, as Figure 1-Figure 3 As shown, this embodiment provides a low-code development platform that supports automated independent deployment, including: 1). Microservice architecture, low-code development platforms that support automated independent deployment must first support microservice architecture and modular design. Use microservice architecture to separate different functions so that each service can be deployed and maintained independently. Such a microservice architecture first defines the service boundaries based on the main functional modules, and splits these functional modules into independent microservices such as user management, gateway services, form design, data storage, API management, process engines, etc. Each microservice has a single responsibility, which is easy to maintain and expand. Here, traditional programming languages and frameworks are selected, with VUE3 used on the front end and Java + Spring Boot used on the back end. For data storage convenience, select a suitable database according to requirements, such as a relational database (MySQL, PostgreSQL) or a NoSQL database (MongoDB, Redis). The front-end and back-end interactions use the APIs provided by each microservice, including RESTful interfaces, and use JSON for data exchange. At the same time, service discovery and load balancing must be implemented. Here, this embodiment uses Nacos as a service discovery tool to manage the dynamic registration and discovery of microservices, and uses the load balancer Nginx to distribute requests.
[0029] On a platform that supports independent deployment, the design state and the running state are decoupled into independent microservices, thus ensuring that the running state can run independently. Figure 1 As shown, the development and design of the application to be released is completed in the design state. After independent deployment, the running state runs independently, which requires UC-IF (User Center Interface) and gateway services.
[0030] Before the split, the design state and the running state are under the same architecture system, sharing services such as the gateway, user center, and process engine. Even the running state can rely on the design state. But to achieve independent deployment, both are independent. The design state has more comprehensive functions and can support all functions, while the running state is deployed on demand. Services include basic running services, including database, user center, and form management. Other functions can be a subset of these functions, or a combination of different functions, such as process engine and message service.
[0031] 2). Operation center, configuration files and environment variables: Use configuration files or environment variables to manage the configuration of different deployment environments, such as development, testing, and production. This allows the same set of code to be flexibly deployed in different environments. Specifically, the same set of code here means that the code is the same, but different Nacos configuration files are generated according to the configured environment information including data source, Redis, Minio, etc., so that the running application service can be started for different system configurations in different environments. Template system: Use the template system to define the deployment configuration, and support the automatic generation of configuration files for different environments. The template system can be based on technologies such as Velocity, FreeMarker, and Thymeleaf. Taking FreeMarker technology as an example, users need to customize template files for different service startups. Different services use different template files. The template file icd-app-service.ftl is used to generate the corresponding ip-app-service.yml in the Nacos configuration, and icd-base.ftl is used to generate the icd-base.yml in the Nacos configuration. During the generation of the configuration file, the system will replace the data source information, Minio information, and Redis information in the configuration file according to the information entered in the front-end page, thereby generating independent configuration files for different environments, which are then used to start the corresponding services.
[0032] The environment includes host management, data source management, Redis management, Minio management, and Nacos management. Each environment selects a specific host, data source, Redis configuration, and all other required static information according to actual needs, and persists the environment information after the selection is completed, and generates different configuration information according to the selected deployment scenario type. The host information includes the host IP, Port, ssh key, etc.; the data source information includes the data source Host address, port, user name, password, etc.; the Redis management information includes the address, port, and password; the Minio management information includes the address, port, accessKey, and secretKey configuration.
[0033] For containerized scenarios, the configuration files are Nacos YAML files and value.yml used by helm orchestration; For virtual machine scenarios, the configuration file is the bootstrap.yml configuration file required for starting each module, and the configuration file for the middleware uses the ngnix.conf file of Nginx.
[0034] After the information required by the application is configured, the application is deployed from the operation center deployment service center. Figure 2 As shown, the specific steps are in the next step.
[0035] 3). Automated independent deployment. There are two scenarios. See the diagram for independent application startup. Figure 3 , one is for containerization and orchestration, and the other is for starting independent virtual machines.
[0036] Containerization: Package applications and dependencies into containers to ensure consistency and portability in different environments; containers can use Docker.
[0037] Orchestration tools: Use orchestration tools to manage the deployment, expansion, and operation of containers to improve the reliability and scalability of the system; Kubernetes can be used as the orchestration tool.
[0038] For containerization and orchestration, the application management package helm can be used to start the service. Release the designed application image and save it, then write a template file through helm chart, pass in the name of the running service image to be deployed, and start the service through "helm install".
[0039] For starting virtual machines, we use Ansible automated operation and maintenance to start independent applications to support independent deployment. First, configure the basic Ansible environment and control nodes in the deployment center; create Ansible Playbook files to manage, and create virtual machine startup modules to manage virtual machines. This method is mature, but the file host information here needs to be dynamically adjusted according to the configuration center parameters. Then deploy application services for low-code independent services, write middleware (MariaDB, Minio, Nginx, Nacos) and application service module information for low-code platforms, and finally configure the AnsibleInventory file and run Playbooks, and the service can be automatically started and deployed.
[0040] Here is a brief list of Ansible file codes for the middleware Ngnix in this method. The sample file name is deploy_nginx.yml. According to the operation requirements of the Nginx service, the corresponding tasks are divided into three subtasks. The first step is to install Nginx; the second step is to configure Nginx. You can configure the nginx.conf file in the system installation package in advance and then copy it directly to different hosts and set the corresponding file operation permissions; the third step is to start the Nginx service.
[0041] Embodiment 2: This embodiment provides a working method of a low-code development platform that supports automated independent deployment, and the steps include: First, build an independent operation center to configure the environment of the operation state service; export the dependent components, menus, and view data when publishing the design state application; Use Helm technology to manage Kubernetes applications for cloud environments, create and start running microservices; Use Ansible services to automate the operation and maintenance of virtual machines, automatically start remote virtual machines, or deploy running application services.
[0042] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A low-code development platform that supports automated independent deployment, characterized in that: include: Microservices framework, operation center and automated independent deployment modules; The microservice architecture includes independent user management modules, gateway service modules, form design modules, data storage modules, API management modules, and process engine modules. The microservice architecture separates different functions and independently deploys and maintains each service. The operation center uses configuration files or environment variables to manage different deployment environments, uses a template system to define deployment configurations, and supports automatic generation of configuration files for different environments. The same set of code can be flexibly deployed in different environments. The automated independent deployment module uses the application management package helm to start services for containerization and orchestration; it uses Ansible automated operation and maintenance to start independent applications and support independent deployment for starting virtual machines.
2. A low-code development platform supporting automated independent deployment as claimed in claim 1, characterized in that: The microservice architecture uses traditional programming languages and frameworks, VUE3 is used on the front end, Java + Spring Boot is used on the back end, data storage is convenient, and the database is selected according to needs. The front-end and back-end interactions use the APIs provided by each microservice, including RESTful interfaces, and JSON is used for data exchange. Nacos is used as a service discovery tool to manage the dynamic registration and discovery of microservices, and the load balancer Nginx is used to distribute requests.
3. A low-code development platform supporting automated independent deployment as claimed in claim 1, characterized in that: The environment of the operation center includes host management, data source management, Redis management, Minio management, and Nacos management. Each environment selects the host, data source, Redis configuration, and static information according to actual needs, and persists the environment information after the selection is completed, and generates different configuration information according to the selected deployment scenario type.
4. A low-code development platform supporting automated independent deployment as claimed in claim 1, characterized in that: For containerized scenarios, the configuration files of the operation center are the Nacos YAML file and value.yml used by helm orchestration.
5. A low-code development platform supporting automated independent deployment as claimed in claim 1, characterized in that: For the virtual machine scenario, the operation center uses the bootstrap.yml configuration file required to start each module, and the middleware configuration file uses the ngnix.conf file of Nginx.
6. A low-code development platform supporting automated independent deployment as claimed in claim 1, characterized in that: Automates containerization of independently deployed modules, packaging applications and dependencies into containers to ensure consistency and portability in different environments.
7. A low-code development platform supporting automated independent deployment as claimed in claim 1, characterized in that: The automated standalone deployment module uses the orchestration tool Kubernetes to manage the deployment, scaling, and operation of containers.
8. A low-code development platform supporting automated independent deployment as claimed in claim 1, characterized in that: The steps to start the service using the application management package helm include: publishing and saving the designed application image, writing a template file through helmchart, passing in the name of the running service image to be deployed, and starting the service through "helm install".
9. A low-code development platform supporting automated independent deployment as claimed in claim 1, characterized in that: The specific steps for using Ansible to automate operations and maintenance to start independent applications and support independent deployment include: first, configure the basic Ansible environment and control nodes in the running deployment center; create an Ansible Playbook file to manage, and create a virtual machine startup module to manage the virtual machine. The file host information is dynamically adjusted according to the configuration center parameters; then deploy application services for low-code independent services, write middleware and application service module information for the low-code platform, and finally configure the Ansible Inventory file and run Playbooks, and the service can be automatically started and deployed.
10. A working method of a low-code development platform supporting automated independent deployment as claimed in any one of claims 1 to 9, characterized in that the steps include: First, build an independent operation center to configure the environment for running services; Export the dependent components, menus, and view data when publishing the design state application; Use Helm technology to manage Kubernetes applications for cloud environments, create and start running microservices; Use Ansible services to automate the operation and maintenance of virtual machines, automatically start remote virtual machines, or deploy running application services.
Citation Information
Patent Citations
Micro-service deployment tool, micro-service architecture and deployment method
CN115390856A
Implementation method and system of manufacturing operation management platform
CN117009137A
Method for realizing hybrid architecture deployment of big data cluster based on Ansible
CN117692323A
Method and device for realizing application cross-center independent deployment control for low-code platform, processor and computer readable storage medium
CN118210518A
Micro-service application deployment method and device, electronic equipment and storage medium
CN118605895A
Cited By
Low-code software development system
CN119668576A
Low-code development platform, method and equipment based on independent deployment architecture
CN119759372A
Low-code development platform, method, and device based on an independent deployment architecture
CN119759372B
Low-code development platform implementation method supporting single host to adapt to multiple operation environments
CN119861935A
Edge device integrated operation device based on low code and operation method thereof
CN119987887A
