Distributed application framework and running method of distributed application framework
By introducing public frameworks, governance platforms and auxiliary modules into distributed application frameworks, the system design and operation and maintenance process is simplified, the complexity of the existing technology is solved, and a more efficient and reliable design and operation and maintenance experience is achieved. .
Patent Information
- Application Number
- CN202411161794.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-13
AI Technical Summary
The existing distributed application framework is complex in the system design and operation and maintenance process, and users need to write the overall program and modify it externally, affecting the design efficiency.
Provide a distributed application framework including a public framework, a governance platform and an auxiliary module. The auxiliary module is used to configure and generate software programs, the governance platform is used to send operation and maintenance instructions, and the public framework performs operation and maintenance operations, simplifying system design and operation and maintenance. process.
It improves the user experience of the distributed application framework, realizes a more efficient, reliable and easy-to-use system design and operation and maintenance process, greatly improving design efficiency and operation and maintenance efficiency.
Smart Images

Figure CN119127284A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of cloud computing and industrial software, and in particular to a distributed application framework and an operating method of the distributed application framework. Background Art
[0002] With the development of network technology and enterprise informatization, application systems with distributed services are increasingly widely used. At present, in order to meet the scalability, reliability and flexibility of application systems and achieve complete integration between different hardware devices, software systems, network environments and database systems, many large-scale application systems generally use distributed application frameworks for system design.
[0003] However, the current distributed application framework generally operates and maintains the overall program corresponding to the application system, that is, the user needs to first write the overall program corresponding to the application system by himself, and then use the distributed application framework to run, test and modify it. Moreover, the modification of the overall program still requires the user to modify it outside the distributed application framework, and then publish it to the current distributed application framework for operation. That is, the design of the application system requires more complex business cooperation, which greatly affects the design efficiency of the application system. Summary of the invention
[0004] The present invention provides a distributed application framework and a method for running the distributed application framework, so as to provide a more efficient, reliable and easy-to-use distributed application framework, thereby greatly improving the user experience of the distributed application framework.
[0005] According to one aspect of the present invention, there is provided a distributed application framework, the distributed application framework comprising: a common framework, a governance platform and an auxiliary module;
[0006] The auxiliary module is used to configure first configuration information corresponding to the first software program in response to the first program editing operation, generate the first software program based on the first configuration information, display the first software program, and send the first software program to the public framework; the first software program is an execution program corresponding to the running target object system; the first configuration information is a basic software program corresponding to the generation of the first software program;
[0007] The governance platform is configured to send a second instruction to the public framework in response to a first instruction and a first trigger operation; the first instruction is an instruction for the auxiliary module to successfully send the first software program to the public framework; the second instruction is an instruction for instructing the first software program to perform a first operation and maintenance operation, and the first operation and maintenance operation is an operation of running the first software program;
[0008] The common framework is used to perform a first operation and maintenance operation on the first software program in response to a second instruction sent by the governance platform.
[0009] According to another aspect of the present invention, a method for operating a distributed application framework is provided, which is applied to the distributed application framework, wherein the distributed application framework includes a common framework, a governance platform, and an auxiliary module, and the method includes:
[0010] The auxiliary module configures first configuration information corresponding to the first software program in response to the first program editing operation, generates the first software program based on the first configuration information, displays the first software program, and sends the first software program to the public framework; the first software program is an execution program corresponding to the running target object system; the first configuration information is a basic software program corresponding to the generation of the first software program;
[0011] The governance platform sends a second instruction to the public framework in response to the first instruction and the first trigger operation; the first instruction is an instruction for the auxiliary module to successfully send the first software program to the public framework; the second instruction is an instruction for instructing the first software program to perform a first operation and maintenance operation, and the first operation and maintenance operation is an operation of running the first software program;
[0012] The common framework performs a first operation and maintenance operation on the first software program in response to a second instruction sent by the governance platform.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for running the distributed application framework described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for running the distributed application framework described in any embodiment of the present invention when executed.
[0018] The distributed application framework of the technical solution of the embodiment of the present invention includes: a public framework, a governance platform and an auxiliary module; the auxiliary module is used to respond to a first instruction sent by the governance platform in a first program editing operation, configure first configuration information corresponding to a first software program, generate the first software program based on the first configuration information, display the first software program, and send the first software program to the public framework; the first software program can be quickly generated in the interface of the auxiliary module, the system design can be carried out more efficiently, and the information required by the software program required by the corresponding system can be efficiently issued; the governance platform is used to respond to the first instruction and the first trigger operation, A second instruction is sent to the public framework; the first instruction is an instruction for the auxiliary module to successfully send the first software program to the public framework; the second instruction is an instruction for instructing the first software program to perform a first operation and maintenance operation, and the first operation and maintenance operation is an operation of running the first software program; after the auxiliary module successfully sends the first software program, the governance platform can quickly send an operation and maintenance instruction to the public framework; the public framework is used to respond to the second instruction sent by the governance platform and perform the first operation and maintenance operation on the first software program; this technical implementation scheme provides a more efficient, reliable and easy-to-use distributed application framework, which greatly improves the user experience of the distributed application framework.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a schematic diagram of the structure of a distributed application framework provided according to an embodiment of the present invention;
[0022] Figure 2 is a structural diagram of an auxiliary module in a distributed application framework provided according to an embodiment of the present invention;
[0023] Figure 3 is a schematic diagram of the structure of a public framework in a distributed application framework provided according to an embodiment of the present invention;
[0024] Figure 4 is a flow chart of a method for operating a distributed application framework provided according to an embodiment of the present invention;
[0025] Figure 5 It is a structural diagram of an electronic device for implementing a method for running a distributed application framework according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", "third", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1 A structural diagram of a distributed application framework provided in an embodiment of the present invention is provided. This embodiment is applicable to the situation where a distributed application framework is used for designing and maintaining an application system. The distributed application framework can be configured in any electronic device with a network communication function.
[0030] like Figure 1 As shown, the distributed application framework of the present invention includes: a public framework 110, a governance platform 120 and an auxiliary module 130.
[0031] The auxiliary module 110 is used to configure the first configuration information corresponding to the first software program in response to the first program editing operation, generate the first software program based on the first configuration information, display the first software program, and send the first software program to the public framework; the first software program is an execution program corresponding to the running target object system; the first configuration information is a basic software program corresponding to the generation of the first software program.
[0032] The governance platform 120 is used to send a second instruction to the public framework in response to a first instruction and a first trigger operation; the first instruction is an instruction for the auxiliary module to successfully send the first software program to the public framework; the second instruction is an instruction instructing the first software program to perform a first operation and maintenance operation, and the first operation and maintenance operation is an operation of running the first software program; the first trigger operation is an operation of clicking or triggering a control on the display interface of the governance platform.
[0033] The common framework 130 is used to perform a first operation and maintenance operation on the first software program in response to a second instruction sent by the governance platform.
[0034] The auxiliary module of the embodiment of the present invention has a first display interface, and the editing operation of the software program can be performed on the first display interface.
[0035] The governance platform of the embodiment of the present invention has a second display interface, which can display information such as problems encountered when the first software program is running. In addition, editing operations can be performed on the second display interface to issue some instructions or software programs required for designing the application system. The instructions can include maintenance instructions.
[0036] As an optional but non-limiting embodiment, the auxiliary module includes a guide unit, a language conversion unit and a data storage unit. Figure 2 As shown; the data storage unit is used to store at least one multi-language support development package; the multi-language support development package is a support package for the development of the compiled language corresponding to the software program. For example, a development support SDK package for the C++ language is provided for service development and extension of the C++ language; a development support SDK package for the Java language is provided for service development and extension of the Java language; a development support SDK package for the Go language is provided for service development and extension of the Go language; a development support SDK package for the JavaScript language is provided for service development and extension of the JavaScript language.
[0037] The auxiliary module of this implementation is deployed in the form of a Qt Creator plug-in, and specifically supports QtCreator version v8.0.x.
[0038] A guide unit, used to respond to a first instruction sent by the governance platform, determine a first configuration identifier corresponding to the first configuration information according to the first instruction, and send the first configuration identifier to a language conversion unit and / or a language package storage unit; the first configuration identifier is used to indicate the identifier of the called first configuration information.
[0039] The first configuration identifier includes an interface identifier and a language identifier. The interface identifier is used to indicate the first interface type included in the first software program; the language identifier is used to indicate the multi-language support development kit that the first software program needs to adopt.
[0040] The language conversion unit is used to generate a first interface type of the first interface according to the first configuration identifier, configure the first interface program based on the first interface type, and send the first interface program to the wizard unit; the first interface is an internal software interface for realizing language conversion.
[0041] This embodiment provides a method for converting the IDL language based on the distributed application framework to generate code suitable for the corresponding language, thereby simplifying the interface implementation process. For example, a command line tool for converting the IDL language to C++ code is provided; a command line tool for converting the IDL language to Java code is provided; a command line tool for converting the IDL language to Go code is provided; and a command line tool for converting the IDL language to JavaScript code is provided.
[0042] The data storage unit is used to generate a first language type according to a first configuration identifier, configure a target multi-language support development kit based on the first language type, and send the target multi-language support development kit to the wizard unit; the first language type is the type of compiled language corresponding to the first software program.
[0043] Optionally, the wizard unit is further configured to generate first configuration information corresponding to the first software program based on the first interface program and the target multi-language support development kit.
[0044] The auxiliary module of this embodiment provides an efficient and easy-to-use development environment to support application development based on a distributed application framework. The auxiliary module covers everything from engineering configuration to multi-language support, ensuring that developers can efficiently build distributed business application systems.
[0045] As an optional but non-limiting embodiment, the distributed application framework supports a processor architecture of a first preset type, and the distributed application framework supports an operating system that supports a hardware device of a second preset type. For example, the processor architecture of the first preset type may include but is not limited to Huawei Kunpeng, Feiteng, Loongson, Intel, and AMD; the operating system of the hardware device of the second preset type may include but is not limited to Kirin, Tongxin, Euler, Red Hat, Ubuntu, and Windows.
[0046] The distributed application framework of the technical solution of the embodiment of the present invention includes: a public framework, a governance platform and an auxiliary module; the auxiliary module is used to respond to a first instruction sent by the governance platform in a first program editing operation, configure first configuration information corresponding to a first software program, generate the first software program based on the first configuration information, display the first software program, and send the first software program to the public framework; the first software program can be quickly generated in the interface of the auxiliary module, the system design can be carried out more efficiently, and the information required by the software program required by the corresponding system can be efficiently issued; the governance platform is used to respond to the first instruction and the first trigger operation, A second instruction is sent to the public framework; the first instruction is an instruction for the auxiliary module to successfully send the first software program to the public framework; the second instruction is an instruction for instructing the first software program to perform a first operation and maintenance operation, and the first operation and maintenance operation is an operation of running the first software program; after the auxiliary module successfully sends the first software program, the governance platform can quickly send an operation and maintenance instruction to the public framework; the public framework is used to respond to the second instruction sent by the governance platform and perform the first operation and maintenance operation on the first software program; this technical implementation scheme provides a more efficient, reliable and easy-to-use distributed application framework, which greatly improves the user experience of the distributed application framework.
[0047] Embodiment 2
[0048] The technical solution of this embodiment further optimizes the governance platform in the aforementioned embodiment on the basis of the above embodiment. This embodiment can be combined with various optional solutions in one or more of the above embodiments.
[0049] The governance platform is also used to receive the first operation and maintenance result corresponding to the first operation and maintenance operation sent by the public framework, and display the first operation and maintenance result. The first operation and maintenance result is a problem that occurs during the operation of the first software program and is adjusted for the relevant content of the first software program.
[0050] Specifically, when the first software program is running in the public framework, there will be problems with adjusting the content related to the first software program, that is, the first operation and maintenance result. The first operation and maintenance result will be transferred back to the governance platform and displayed on the display interface of the governance platform. The operation and maintenance personnel can issue adjustment instructions for the first operation and maintenance result and send them to the public framework for execution; the governance platform can also call the knowledge base to match the adjustment instructions corresponding to the first operation and maintenance result, and send them to the public framework for execution; thereby ensuring the adjustment of the first software program corresponding to the target object system. Specifically, the management of the first operation and maintenance result by the governance platform can include the following steps A1-A4:
[0051] Step A1, the first operation and maintenance result is program version update information, and the governance platform includes a first management unit; the first management unit is used to send the program version update information to the auxiliary module; the auxiliary module is used to respond to the second program editing operation, update the first software program based on the program version update information, obtain the updated first software program, display the updated first software program, and send the updated first software program to the public framework; the first management unit is used to respond to the third instruction and the second trigger operation, send the fourth instruction to the public framework, so that the public framework performs the second operation and maintenance operation on the updated first software program; the third instruction is an instruction for the auxiliary module to successfully send the updated first software program to the public framework; the fourth instruction is an instruction instructing the updated first software program to perform the second operation and maintenance operation.
[0052] Step A2, the first operation and maintenance result is the first exception information; the first exception information includes cluster exception information and / or node exception information, and the governance platform includes a second management unit; the second management unit is used to respond to the setting operation, based on the first exception information, configure the first management information corresponding to the first exception information, so that the public framework manages the cluster exception information and / or node exception information based on the first management information; the first management information is information for managing the cluster exception information and / or node exception information.
[0053] Step A3, the first operation and maintenance result is the second exception information, the second exception information is information describing the abnormal running state of the first software program, and the governance platform includes a third management unit; the third management unit is used to determine the corresponding modified local software program in the first software program based on the second exception information, and send the local software program to the auxiliary module; the auxiliary module is used to update the local software program in response to the third program editing operation to obtain the updated local software program, and send the updated local software program to the public framework; the third management unit is used to send the sixth instruction to the public framework in response to the fifth instruction and the third trigger operation, so that the public framework performs the third operation and maintenance operation on the updated local software program; the fifth instruction is an instruction for the auxiliary module to successfully send the updated local software program to the public framework; the sixth instruction is an instruction instructing the updated local software program to perform the third operation and maintenance operation.
[0054] Step A4, the first operation and maintenance result is configuration adjustment information, the configuration adjustment information is the operating environment of the target object system change, the operating environment is determined at least based on system environment variables, operating system information and server configuration, the governance platform includes a fourth management unit; the fourth management unit is used to respond to the configuration operation, determine the service configuration information corresponding to the first software program based on the configuration management information, so that the public framework performs configuration management based on the service configuration information; the service configuration information is information to ensure that the first software program can run normally under the current operating environment.
[0055] The installation and deployment of the version package of the governance platform of the embodiment of the present invention can be: Linux installation package supports deb and rpm; Windows installation package supports zip.
[0056] According to the technical solution of the embodiment of the present invention, the governance platform is also used to receive the first operation and maintenance result corresponding to the first operation and maintenance operation sent by the public framework, and display the first operation and maintenance result. The first operation and maintenance result is a problem that occurs during the operation of the first software program and is adjusted for the relevant content of the first software program. The governance platform can display the first operation and maintenance result so that the problems that occur during the operation of the first software program can be more intuitively known. Further, reasonable adjustments can be made and reasonable instructions can be issued based on the first operation and maintenance result and in combination with the auxiliary module. That is, the governance platform provides a powerful, flexible and user-friendly management and interaction terminal for the distributed application framework, which simplifies the management and maintenance of microservices.
[0057] Embodiment 3
[0058] Figure 3 The present invention provides a schematic diagram of the structure of a public framework in a distributed application framework. The technical solution of this embodiment further optimizes the public framework in the above embodiment on the basis of the above embodiment. This embodiment can be combined with various optional solutions in one or more of the above embodiments. The service mentioned in this embodiment is a service for designing a target object system.
[0059] The public framework includes service center, publishing center, configuration center, log center, monitoring center and service nodes.
[0060] 1. The service center is the core of the distributed application framework. It is responsible for maintaining the registration information of all services and providing service discovery functions so that different service instances can discover and communicate with each other. Through the heartbeat detection mechanism, the service center can monitor the status of service instances and update registration information.
[0061] The service center includes a service registration unit, a service discovery unit, a health status monitoring unit and a service gateway.
[0062] The service registration unit and service discovery unit manage the registration and discovery of microservices to ensure effective connections between services. The service registration unit allows microservice instances to register their own addresses and port information in the service center; the service discovery unit allows clients to find available microservice instances through the service center for connection.
[0063] The health status monitoring unit is used to monitor the health status and availability of the registration service. The heartbeat detection method is used, that is, the health status of the registration service is checked regularly to ensure the availability and stability of the service. The status update is to update the status information of the service according to the heartbeat detection results to reflect its latest availability.
[0064] The service gateway is used to manage and adjust the routing requests between service instances. Load balancing is to adjust the request distribution according to the status and load of the service instance to achieve load balancing. The routing strategy is to optimize the processing flow of service requests based on the setting and management of request routing strategies.
[0065] The version packages supported by the service center deployment are: container deployment can use docker image, and installation package deployment can use deb and rpm.
[0066] 2. The release center is responsible for the management and coordination of the entire service release process in the distributed application framework. This includes service version management, update strategy management, and deployment coordination, aiming to ensure smooth, efficient, and secure service updates. Through these functions, the distributed application framework can support rapid iteration and stable operation while ensuring service reliability.
[0067] Service version management can release new versions of services, including version creation and version control; it can also provide version rollback function so that you can restore to the old version when necessary.
[0068] Update strategy management is used to set and manage service update strategies to ensure smooth service upgrades. Specifically, it formulates and executes service update plans, including time scheduling and resource allocation; adjusts update strategies based on demand and feedback, and optimizes the update process.
[0069] Deployment coordination is used to manage the deployment process of services and ensure the efficient execution of updates. Specifically, it performs service deployment, including resource allocation and load migration, monitors the deployment process, ensures that updates proceed as planned, and handles deployment issues in a timely manner.
[0070] The version packages supported by the release center's deployment can be: container deployment can use docker images, and installation package deployment can use deb and rpm.
[0071] 3. The configuration center provides powerful configuration management functions in the distributed application framework, ensuring the consistency and flexibility of service configuration. Through functions such as configuration management, configuration synchronization and dynamic configuration, the distributed application framework can meet the configuration management requirements under different environments and changing needs, while improving the maintainability and reliability of services.
[0072] Configuration management is used to manage service configuration files and supports multi-environment configuration. Specifically, it provides the creation, editing and update functions of service configurations and supports configurations in different operating environments; it manages configuration versions and supports historical version viewing and rollback functions.
[0073] Configuration synchronization is used to synchronize updated configuration information to all service instances. Specifically, the configuration synchronization policy and time are set to ensure the consistency of configuration of all service instances, and the updated configuration information can be automatically synchronized to all related service instances.
[0074] Dynamic configuration means supporting flexible configuration updates to adapt to rapidly changing business needs. Specifically, it allows for rapid configuration adjustments in response to changing business needs, supports dynamic configuration updates, and supports configuration adaptation in different operating environments, such as development, testing, and production environments.
[0075] The version packages supported by the configuration center deployment are: container deployment can use docker image, and installation package deployment can use deb and rpm.
[0076] 4. The log center provides comprehensive log collection, log storage and log query functions in the distributed application framework. It not only helps developers and operation and maintenance teams record and store detailed information about microservice operations, but also supports efficient log retrieval and real-time monitoring, thereby simplifying service monitoring and problem diagnosis, and ensuring the transparency and traceability of service operations.
[0077] Log collection provides a log collection interface to collect log information generated by microservices. Specifically, it collects log information generated during service operation, including standard output and error output.
[0078] Log storage is a persistent storage of log data, supporting the storage of large-scale log information. Specifically, log data is stored in the file system to ensure the persistence of log data; further, the log storage structure and index can be optimized to improve storage efficiency and query speed.
[0079] Log query provides a query interface to facilitate the retrieval of specific log information. Specifically, it provides log retrieval functions based on time, level, keywords, etc., as well as log content analysis and error location.
[0080] The supported version packages for deployment of the log center are: container deployment can use docker image, and installation package deployment can use deb and rpm.
[0081] 5. The monitoring center provides comprehensive service performance and resource usage monitoring in the distributed application framework, including performance statistics and resource monitoring functions, helping developers and operation and maintenance teams to deeply understand the operating status of the service, identify and solve performance problems, and provide data support for service optimization. The monitoring center ensures high performance and stable operation of the service.
[0082] Performance statistics are used to collect and analyze the performance data of services. Specifically, service performance data is collected regularly, such as key performance indicators such as response time and request volume. The collected data is then aggregated and processed for further analysis.
[0083] Resource monitoring is to monitor the system resources used by the service. Specifically, it tracks and records the system resources used by the service, such as CPU and memory usage; by analyzing the load of the service, it identifies high-load scenarios and potential performance bottlenecks.
[0084] The version packages supported by the monitoring center deployment are: container deployment can use docker image, and installation package deployment can use deb and rpm.
[0085] 6. The service node is responsible for hosting specific service instances, including node operation management, resource usage monitoring, service deployment and update, logging, and configuration management, ensuring the efficient and stable operation of the service node and providing flexible management and maintenance capabilities.
[0086] Node operation management is to manage the operation status and life cycle of service nodes. Specifically, it monitors the operation status of nodes in real time, including service health status and performance indicators; controls the start and stop of services to ensure the smooth operation of services.
[0087] Resource usage monitoring is to monitor the resources used by nodes to ensure efficient use of resources. Specifically, it tracks the resources consumed by nodes, such as CPU, memory, and network; load balancing and performance optimization are performed based on resource usage to improve node efficiency.
[0088] Service deployment and update refers to the deployment and update of services on management nodes. Specifically, deploying new services or service updates on nodes includes configuration and dependency management; managing service versions on nodes includes update deployment and version rollback.
[0089] Log records are log records and uploads of service provision. Specifically, service logs are collected, including standard output and error output, and the collected service log data is further uploaded to the log center.
[0090] Configuration management is to manage the configuration information of services. Specifically, it updates the configuration information of nodes and services, supports dynamic configuration changes, and synchronizes the configuration information of nodes and services to the configuration center.
[0091] The version packages supported for deployment of service nodes can be: installation package deployment can use deb and rpm.
[0092] The public framework of the technical solution of this embodiment includes a service center, a publishing center, a configuration center, a log center, a monitoring center and a service node. The software program is run and tested through the public framework, which ensures the rapid iteration and stable operation of the software program while ensuring the reliability of the service.
[0093] Embodiment 4
[0094] Figure 4 A flowchart of a method for operating a distributed application framework provided in an embodiment of the present invention. This embodiment is applicable to the case where a distributed application framework is used to design and maintain an application system. The method can be executed by the distributed application framework, which can be configured in any electronic device with a network communication function. The distributed application framework includes a public framework, a governance platform, and an auxiliary module.
[0095] like Figure 4 As shown, the operating method of the distributed application framework of the present invention may include:
[0096] S210. The auxiliary module configures first configuration information corresponding to the first software program in response to the first program editing operation, generates the first software program based on the first configuration information, displays the first software program, and sends the first software program to the public framework.
[0097] The first software program is an execution program corresponding to the running target object system; the first configuration information is used to generate a basic software program corresponding to the first software program.
[0098] S220. The governance platform sends a second instruction to the public framework in response to the first instruction and the first trigger operation; the first instruction is an instruction for the auxiliary module to successfully send the first software program to the public framework.
[0099] The second instruction is an instruction for instructing the first software program to execute a first operation and maintenance operation, and the first operation and maintenance operation is an operation for running the first software program.
[0100] S230: The public framework performs a first operation and maintenance operation on the first software program in response to a second instruction sent by the governance platform.
[0101] Based on the above embodiment, optionally, the auxiliary module includes a wizard unit, a language conversion unit and a data storage unit; the data storage unit is used to store at least one multi-language support development package; the multi-language support development package is a support package developed in a compiled language corresponding to the software program;
[0102] The guide unit responds to the first instruction sent by the governance platform, determines the first configuration identifier corresponding to the first configuration information according to the first instruction, and sends the first configuration identifier to the language conversion unit and / or the language package storage unit; the first configuration identifier is used to indicate the identifier of the first configuration information called;
[0103] The language conversion unit generates a first interface type of the first interface according to the first configuration identifier, configures a first interface program based on the first interface type, and sends the first interface program to the guide unit; the first interface is an internal software interface for realizing language conversion;
[0104] The data storage unit generates a first language type according to the first configuration identifier, configures a target multi-language support development kit based on the first language type, and sends the target multi-language support development kit to the wizard unit; the first language type is the type of the compiled language corresponding to the first software program;
[0105] Based on the above embodiment, optionally, the wizard unit further generates first configuration information corresponding to the first software program based on the first interface program and the target multi-language support development kit.
[0106] Based on the above embodiment, optionally, the governance platform also receives a first operation and maintenance result corresponding to the first operation and maintenance operation sent by the public framework, and displays the first operation and maintenance result, where the first operation and maintenance result is a problem that occurs during the running of the first software program and is related to adjustments to the content related to the first software program.
[0107] On the basis of the above embodiment, optionally, the first operation and maintenance result is program version update information, and the governance platform includes a first management unit; the first management unit sends the program version update information to the auxiliary module; the auxiliary module responds to the second program editing operation, updates the first software program based on the program version update information, obtains the updated first software program, displays the updated first software program, and sends the updated first software program to the public framework; the first management unit responds to the third instruction and the second trigger operation, sends the fourth instruction to the public framework, so that the public framework performs the second operation and maintenance operation on the updated first software program; the third instruction is an instruction for the auxiliary module to successfully send the updated first software program to the public framework; the fourth instruction is an instruction instructing the updated first software program to perform the second operation and maintenance operation.
[0108] Based on the above embodiments, optionally, the first operation and maintenance result is the first exception information; the first exception information includes cluster exception information and / or node exception information, and the governance platform includes a second management unit; the second management unit responds to the setting operation, and based on the first exception information, configures the first management information corresponding to the first exception information, so that the common framework manages the cluster exception information and / or node exception information based on the first management information; the first management information is information for managing the cluster exception information and / or node exception information.
[0109] On the basis of the above embodiment, optionally, the first operation and maintenance result is the second exception information, the second exception information is information describing the abnormal running state of the first software program, and the governance platform includes a third management unit; the third management unit determines the corresponding modified local software program in the first software program based on the second exception information, and sends the local software program to the auxiliary module; the auxiliary module responds to the third program editing operation, updates the local software program to obtain an updated local software program, and sends the updated local software program to the public framework; the third management unit responds to the fifth instruction and the third trigger operation, sends the sixth instruction to the public framework, so that the public framework performs the third operation and maintenance operation on the updated local software program; the fifth instruction is an instruction for the auxiliary module to successfully send the updated local software program to the public framework; the sixth instruction is an instruction instructing the updated local software program to perform the third operation and maintenance operation.
[0110] Based on the above embodiment, optionally, the first operation and maintenance result is configuration adjustment information, and the configuration adjustment information is the operating environment of the target object system change, and the operating environment is determined at least based on system environment variables, operating system information and server configuration, and the governance platform includes a fourth management unit; the fourth management unit responds to the configuration operation, and determines the service configuration information corresponding to the first software program based on the configuration management information, so that the common framework performs configuration management based on the service configuration information; the service configuration information is information to ensure that the first software program can operate normally under the current operating environment.
[0111] Based on the above embodiment, optionally, the distributed application framework supports a processor architecture of a first preset type, and the distributed application framework supports an operating system that supports a hardware device of a second preset type.
[0112] The distributed application framework provided in the embodiment of the present invention can execute the running method of the distributed application framework provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0113] Embodiment 5
[0114] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0115] Figure 5 A schematic diagram of the structure of an electronic device that can be used to implement the operating method of the distributed application framework of an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0116] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0117] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0118] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the operation method of the distributed application framework.
[0119] In some embodiments, the method for running the distributed application framework may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for running the distributed application framework described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for running the distributed application framework in any other appropriate manner (e.g., by means of firmware).
[0120] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0121] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0122] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0123] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0124] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0125] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0126] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0127] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A distributed application framework, characterized in that: The distributed application framework includes: a public framework, a governance platform and auxiliary modules; The auxiliary module is used to configure first configuration information corresponding to the first software program in response to the first program editing operation, generate the first software program based on the first configuration information, display the first software program, and send the first software program to the public framework; the first software program is an execution program corresponding to the running target object system; the first configuration information is a basic software program corresponding to the generation of the first software program; The governance platform is configured to send a second instruction to the public framework in response to a first instruction and a first trigger operation; the first instruction is an instruction for the auxiliary module to successfully send the first software program to the public framework; the second instruction is an instruction for instructing the first software program to perform a first operation and maintenance operation, and the first operation and maintenance operation is an operation of running the first software program; The common framework is used to perform a first operation and maintenance operation on the first software program in response to a second instruction sent by the governance platform.
2. The distributed application framework according to claim 1, characterized in that: The auxiliary module includes a wizard unit, a language conversion unit and a data storage unit; the data storage unit is used to store at least one multi-language support development package; the multi-language support development package is a support package for supporting the development of the compiled language corresponding to the software program; The guide unit is used to respond to the first instruction sent by the governance platform, determine the first configuration identifier corresponding to the first configuration information according to the first instruction, and send the first configuration identifier to the language conversion unit and / or the language package storage unit; the first configuration identifier is used to indicate the identifier of the first configuration information called; The language conversion unit is used to generate a first interface type of the first interface according to the first configuration identifier, configure a first interface program based on the first interface type, and send the first interface program to the wizard unit; the first interface is an internal software interface for realizing language conversion; The data storage unit is used to generate a first language type according to the first configuration identifier, configure a target multi-language support development kit based on the first language type, and send the target multi-language support development kit to the wizard unit; the first language type is the type of compiled language corresponding to the first software program.
3. The distributed application framework according to claim 2, characterized in that: The wizard unit is further configured to generate first configuration information corresponding to the first software program based on the first interface program and the target multi-language support development kit.
4. The distributed application framework according to claim 1, characterized in that: The governance platform is also used to receive a first operation and maintenance result corresponding to the first operation and maintenance operation sent by the public framework, and display the first operation and maintenance result, where the first operation and maintenance result is a problem that occurs during the operation of the first software program and is adjusted for content related to the first software program.
5. The distributed application framework according to claim 4, characterized in that: The first operation and maintenance result is program version update information, and the governance platform includes a first management unit; The first management unit is used to send program version update information to the auxiliary module; The auxiliary module is used to update the first software program based on the program version update information in response to the second program editing operation, obtain the updated first software program, display the updated first software program, and send the updated first software program to the public framework; The first management unit is used to send a fourth instruction to the public framework in response to the third instruction and the second trigger operation, so that the public framework performs a second operation and maintenance operation on the updated first software program; the third instruction is an instruction for the auxiliary module to successfully send the updated first software program to the public framework; the fourth instruction is an instruction instructing the updated first software program to perform the second operation and maintenance operation.
6. The distributed application framework according to claim 4, characterized in that: The first operation and maintenance result is first abnormal information; the first abnormal information includes cluster abnormal information and / or node abnormal information, and the governance platform includes a second management unit; The second management unit is used to configure the first management information corresponding to the first exception information in response to the setting operation based on the first exception information, so that the common framework manages the cluster exception information and / or node exception information based on the first management information; the first management information is information for managing the cluster exception information and / or node exception information.
7. The distributed application framework according to claim 4, characterized in that: The first operation and maintenance result is second abnormal information, the second abnormal information is information describing the abnormal running state of the first software program, and the governance platform includes a third management unit; The third management unit is used to determine a corresponding modified local software program in the first software program based on the second abnormal information, and send the local software program to the auxiliary module; The auxiliary module is used to update the local software program to obtain an updated local software program in response to a third program editing operation, and send the updated local software program to the public framework; The third management unit is used to send a sixth instruction to the public framework in response to the fifth instruction and the third trigger operation, so that the public framework performs a third operation and maintenance operation on the updated local software program; the fifth instruction is an instruction for the auxiliary module to successfully send the updated local software program to the public framework; the sixth instruction is an instruction instructing the updated local software program to perform the third operation and maintenance operation.
8. The distributed application framework according to claim 4, characterized in that: The first operation and maintenance result is configuration adjustment information, the configuration adjustment information is the changed operating environment of the target object system, the operating environment is determined at least according to system environment variables, operating system information and server configuration, and the governance platform includes a fourth management unit; The fourth management unit is used to respond to the configuration operation and determine the service configuration information corresponding to the first software program based on the configuration management information, so that the common framework performs configuration management based on the service configuration information; the service configuration information is information to ensure that the first software program can run normally in the current operating environment.
9. The distributed application framework according to claim 1, characterized in that: The distributed application framework supports a processor architecture of a first preset type, and the distributed application framework supports an operating system that supports a hardware device of a second preset type.
10. A method for operating a distributed application framework, characterized in that: Applied to the distributed application framework described in any one of claims 1 to 9, the distributed application framework includes a common framework, a governance platform and an auxiliary module, and the method includes: The auxiliary module configures first configuration information corresponding to the first software program in response to the first program editing operation, generates the first software program based on the first configuration information, displays the first software program, and sends the first software program to the public framework; the first software program is an execution program corresponding to the running target object system; the first configuration information is a basic software program corresponding to the generation of the first software program; The governance platform sends a second instruction to the public framework in response to the first instruction and the first trigger operation; the first instruction is an instruction for the auxiliary module to successfully send the first software program to the public framework; the second instruction is an instruction for instructing the first software program to perform a first operation and maintenance operation, and the first operation and maintenance operation is an operation of running the first software program; The common framework performs a first operation and maintenance operation on the first software program in response to a second instruction sent by the governance platform.
