CN118394331A - Cloud native standard application engineering template generation method and device - Google Patents

Cloud native standard application engineering template generation method and device Download PDF

Info

Publication number
CN118394331A
CN118394331A CN202410592125.1A CN202410592125A CN118394331A CN 118394331 A CN118394331 A CN 118394331A CN 202410592125 A CN202410592125 A CN 202410592125A CN 118394331 A CN118394331 A CN 118394331A
Authority
CN
China
Prior art keywords
engineering
standard
template
application
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410592125.1A
Other languages
Chinese (zh)
Inventor
杨鹏宇
张丹枫
李疆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202410592125.1A priority Critical patent/CN118394331A/en
Publication of CN118394331A publication Critical patent/CN118394331A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The disclosure provides a cloud native standard application engineering template generation method, relates to the technical field of cloud computing, and can be applied to the technical field of finance. The method comprises the following steps: responding to Yun Yuansheng application wizard opening instructions, obtaining wizard page configuration from standard engineering nodes, wherein the standard engineering nodes are pre-configured with a template standard warehouse, and the template standard warehouse comprises a plurality of standard engineering templates; rendering a guide page according to the guide page configuration item; and generating an engineering template file package according to the decision item data determined by the user on the guide page. The disclosure also provides a cloud native standard application engineering template generation device, equipment, a storage medium and a program product.

Description

Cloud native standard application engineering template generation method and device
Technical Field
The present disclosure relates to the field of cloud computing technologies, in particular to the field of cloud native application development technologies, and more particularly, to a method, an apparatus, a device, a storage medium, and a program product for generating a cloud native standard application engineering template.
Background
The bank application system is generally formed by combining various technical models according to different service scenes on a basic technical development framework supporting platform, and specific application engineering codes are formed by flexible combination, and lack of unified design specification guidance of the engineering codes, so that in the actual engineering codes, various different architecture modes and technical templates exist on each application layer, and the subsequent technical evolution is not facilitated. In the existing application engineering template, the cloud native application engineering grounding mode with universality is abstracted, so that the complexity is high, the investigation difficulty is high, and the technical difficulty is high. In addition, the conventional cloud native application needs to maintain a large amount of content such as container parameters, basic image configuration, and the like on the paas platform, for example, parameters such as application container cpu soft limit, application container cpu hard limit, application container memory soft limit, application container memory hard limit, container basic image name, container start command, container work directory, and the like. With further enrichment of paas platform capability, the application is likely to select matching capabilities such as deep health inspection, graceful start, unified registration of a monitoring platform and the like, so that the cloud native application needs to consider self business architecture characteristics and overall manage relevant configuration of parameters of the paas platform in actual landing. At present, related configuration is stored under an application project catalog in a form of configuration files, and management of related configuration and parameters is carried out in a manual copying and manual adjustment mode, so that a certain burden is caused to an developer.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a cloud native standard application engineering template generation method, apparatus, device, storage medium, and program product that improve application development efficiency.
According to a first aspect of the present disclosure, there is provided a cloud native standard application engineering template generation method, the method comprising:
Responding to Yun Yuansheng application wizard opening instructions, obtaining wizard page configuration from standard engineering nodes, wherein the standard engineering nodes are pre-configured with a template standard warehouse, and the template standard warehouse comprises a plurality of standard engineering templates;
rendering a guide page according to the guide page configuration item; and
And generating an engineering template file package according to the decision item data determined by the user on the guide page.
According to an embodiment of the present disclosure, the decision item data includes an engineering architecture type, a financial general technology component, and a typical configuration package, and the generating the engineering template file package according to the decision item data determined by the user on the wizard page includes:
Receiving decision item data determined by a user on a guide page;
Splicing the uniform resource locator according to the decision item data;
downloading template engineering to a standard engineering node according to the uniform resource locator; and
And receiving an engineering template file packet returned by the standard engineering node.
According to an embodiment of the present disclosure, the receiving decision item data determined by the user on the guide page includes:
and receiving decision item data determined by a user accessing the page through the web end or the development tool interaction end.
According to an embodiment of the present disclosure, the downloading the template engineering to the standard engineering node according to the uniform resource locator includes:
Rendering and constructing an engineering template main frame according to the engineering framework type;
Acquiring a reusable code corresponding to the financial universal technical component;
replacing configuration parameters of the engineering template main frame according to the typical configuration package; and
And assembling and packaging the reusable codes and the replaced configuration parameters to generate an engineering template file package.
According to an embodiment of the disclosure, the engineering architecture types include a B/S architecture, a micro-service architecture, and a batch architecture, and constructing an engineering template main frame according to the engineering architecture class rendering includes:
determining a corresponding standard engineering node according to the engineering architecture type;
obtaining a target standard engineering template from the standard engineering node; and
And constructing an engineering template main frame according to the target standard engineering template.
According to an embodiment of the disclosure, the acquiring the reusable code corresponding to the financial universal technology component includes:
Initiating a request to a reusable code platform according to a financial universal technology component determined by a user on a guide page;
And receiving the financial universal technology component returned by the reusable code platform and the reusable code corresponding to the financial universal technology component.
A second aspect of the present disclosure provides a cloud native standard application engineering template generation apparatus, the apparatus comprising:
The system comprises an acquisition module, a standard engineering node and a template standard warehouse, wherein the acquisition module is used for responding to an opening instruction of Yun Yuansheng application wizards and acquiring wizard page configuration from the standard engineering node, the standard engineering node is pre-configured with the template standard warehouse, and the template standard warehouse comprises a plurality of standard engineering templates;
the display module is used for rendering the guide page according to the guide page configuration item; and
And the generating module is used for generating an engineering template file package according to the decision item data determined by the user on the guide page.
According to an embodiment of the present disclosure, the generating module includes: the system comprises a first receiving sub-module, a splicing sub-module, a downloading sub-module and a second receiving sub-module.
The first receiving sub-module is used for receiving decision item data determined by a user on the guide page;
The splicing sub-module is used for splicing the uniform resource locator according to the decision item data;
the downloading sub-module is used for downloading the template engineering to the standard engineering node according to the uniform resource locator; and
And the second receiving sub-module is used for receiving the engineering template file packet returned by the standard engineering node.
According to the embodiment of the disclosure, the first receiving submodule is specifically used for receiving decision item data determined by a user accessing a page through a web end or a development tool interaction end.
According to an embodiment of the present disclosure, a download sub-module includes a building unit, an acquisition unit, a parameter replacement unit and a packaging unit,
The construction unit is used for rendering and constructing a main framework of the engineering template according to the engineering framework type;
The acquisition unit is used for acquiring the reusable codes corresponding to the financial universal technical components;
A parameter replacement unit, configured to replace configuration parameters of the engineering template main frame according to the typical configuration package; and
And the packaging unit is used for assembling and packaging the reusable codes and the replaced configuration parameters to generate an engineering template file package.
According to an embodiment of the present disclosure, the construction unit includes a determination subunit, an acquisition subunit, and a construction subunit.
A determining subunit, configured to determine a corresponding standard engineering node according to the engineering architecture type;
the obtaining subunit is used for obtaining a target standard engineering template from the standard engineering node; and
And the construction subunit is used for constructing an engineering template main frame according to the target standard engineering template.
According to the embodiment of the disclosure, the acquiring unit is specifically configured to initiate a request to the reusable code platform according to a financial universal technology component determined by a user on a wizard page; and receiving the financial universal technology component returned by the reusable code platform and the reusable code corresponding to the financial universal technology component.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the cloud native standard application engineering template generation method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the cloud native standard application engineering template generation method described above.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the cloud native standard application engineering template generation method described above.
According to the cloud native standard application engineering template generation method provided by the embodiment of the disclosure, responding to an opening instruction of Yun Yuansheng application wizards, acquiring wizard page configuration from standard engineering nodes, wherein the standard engineering nodes are pre-configured with template standard warehouses which comprise a plurality of standard engineering templates; rendering a guide page according to the guide page configuration item; and generating an engineering template file package according to the decision item data determined by the user on the guide page. Compared with the related art, the embodiment of the disclosure forms the template standard warehouse in advance by summarizing engineering type features of cloud native applications with different architectures, embeds standardized cloud platform parameters in a typical configuration package mode, reduces links which are easy to make mistakes in manual operation, reduces the landing threshold of the cloud native applications, and improves the standardized characteristics of the cloud native engineering.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a cloud native standard application engineering template generation method, apparatus, device, storage medium, and program product according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method for generating a cloud native standard application engineering template provided in accordance with an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a method for generating engineering template packages from decision item data determined by a user on a wizard page provided in accordance with one embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of a method for generating a cloud native standard application engineering template provided in accordance with another embodiment of the present disclosure;
FIG. 5 schematically illustrates a block diagram of a cloud native standard application engineering template generation apparatus according to an embodiment of the present disclosure; and
Fig. 6 schematically illustrates a block diagram of an electronic device adapted to implement a cloud native standard application engineering template generation method, according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a convention should be interpreted in accordance with the meaning of one of skill in the art having generally understood the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the prior art, the complexity in terms of system design is high, when a project node is newly built, developers are often required to have stronger technical capability and rich experience, the project is built from 0 to 1, the required components and related platform configuration dependence are manually configured by copying the content of the stored project and referring to community guidance, meanwhile, the problems of compatibility and adaptation are considered, a large number of parameter configurations are required, and the final project can be generated by repeated debugging.
Meanwhile, with the continuous penetration of application cloud primordia, when a standard application growing on the cloud is built from 0 to 1, the specification of a cloud container, the basic mirror image content and a matched cloud primordia function list are required to be selected and matched, and high requirements are put forward on the construction and landing of the cloud primordia application. The maintenance and management of the cloud native application is not facilitated mainly by several drawbacks:
1. manual copying is easy to make mistakes.
2. Parameters are complex, and developers are difficult to understand the meaning of the related parameters.
3. The matching capability is difficult to select, and when the engineering is initialized to fall to the ground, the selection of which needs to be selected is often difficult to decide.
Based on the technical problems, an embodiment of the present disclosure provides a cloud native standard application engineering template generation method, which includes: responding to Yun Yuansheng application wizard opening instructions, obtaining wizard page configuration from standard engineering nodes, wherein the standard engineering nodes are pre-configured with a template standard warehouse, and the template standard warehouse comprises a plurality of standard engineering templates; rendering a guide page according to the guide page configuration item; and generating an engineering template file package according to the decision item data determined by the user on the guide page.
Fig. 1 schematically illustrates an application scenario diagram of a cloud native standard application engineering template generation method, apparatus, device, storage medium, and program product according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include a cloud native standard application engineering template generation scenario. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a back-end server, and the server may execute the cloud native standard application engineering template generation method provided by the embodiment of the present disclosure, and respond to the opening instruction of Yun Yuansheng application wizards to obtain wizard page configuration from standard engineering nodes, where the standard engineering nodes are preconfigured with a template standard warehouse, and the template standard warehouse includes a plurality of standard engineering templates; rendering a guide page according to the guide page configuration item; and generating an engineering template file package according to the decision item data determined by the user on the guide page. .
It should be noted that, the cloud native standard application engineering template generation method provided by the embodiments of the present disclosure may be generally executed by the server 105. Accordingly, the cloud native standard application engineering template generation apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The cloud native standard application engineering template generation method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the cloud native standard application engineering template generation apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
It should be noted that, the method and the device for generating the cloud native standard application engineering template according to the embodiments of the present disclosure may be used in the technical field of the internet, may also be used in the technical field of finance, and may also be used in any field other than the financial field.
The cloud native standard application engineering template generation method according to the embodiments of the present disclosure will be described in detail below with reference to fig. 2 to 6 based on the application scenario described in fig. 1.
Fig. 2 schematically illustrates a flowchart of a cloud native standard application engineering template generation method provided according to an embodiment of the present disclosure. As shown in fig. 2, the cloud native standard application engineering template generation method of this embodiment includes operations S210 to S230, which may be performed by a server or other computing device.
In one example, to increase the development efficiency of cloud native applications, the development technological threshold is reduced. In the embodiment of the disclosure, by researching the characteristics of cloud native applications of different architectures such as a B/S architecture, a micro-service architecture, a batch architecture and the like, a template standard warehouse is summarized and formed, and a set of cloud native application floor practice with popularization value is formed by matching with a classical matching meal concept. The user can access the page through the web end and generate the cloud native application engineering template through the dual-portal of the development tool interaction end, and the cloud native application engineering template specifically comprises operations S210-S230. In order to solve the defect of manual operation in the existing paas platform module configuration, by summarizing and refining different engineering type features and depending on mustache template engines, the generation method of the interactive checktype cloud native application standard configuration is provided.
In one example, taking the IDE end generation process of standard engineering as an example, the method specifically comprises the following steps:
1. Summarizing B/S architecture, micro-service architecture, batch architecture features, forming a standard engineering template, and forming a standard configuration. The specific configuration values are replaced by variable forms ({ sample }). 2. Parameters common to each architecture (such as container parameters, base mirror configuration parameters) are summarized to form a typical configuration package. Taking the container parameters as examples, the following are summarized: the configuration file takes the container specification configuration as standard configuration, embeds four parameters of application container cpu soft limit, application container cpu hard limit, application container memory soft limit and application container memory hard limit, and selects four standard packages of 1c2g, 2c4g, 4c4g and 4c6g, the application can select corresponding standard package values (such as 1c2 g) according to the self requirement, and the program automatically selects (500, 1000, 2048 and 2048 related values mapped by 1c2g are mapped to configuration items) 3 and realizes the program by introducing com.samsky: jmustache rely on the package, using the com. Samsky. Mu.cache. Template # execute (Object context) method, by reading the user selected parameter content, to replace the parameter value ({ sample }) in the standard engineering template that needs to be actually validated.
In operation S210, a wizard page configuration is obtained from the standard engineering node in response to Yun Yuansheng an open instruction of the application wizard.
According to an embodiment of the present disclosure, the standard engineering node is preconfigured with a template standard repository comprising a plurality of standard engineering templates.
In operation S220, a guide page is rendered according to the guide page configuration item.
In operation S230, an engineering template file package is generated according to decision item data determined by the user on the wizard page.
In one example, a user may configure an engineering template through an IDE tool side interface or a web side access page to obtain an engineering template file package. And responding to an opening instruction of a user in the cloud native application wizard, acquiring wizard page configuration from a standard engineering node, and pre-configuring a template standard warehouse by the standard engineering node according to the process, wherein the template standard warehouse comprises a plurality of standard engineering templates of engineering architecture types. And rendering the guide page according to the guide page configuration item, and providing a visual interaction interface for a user. The user selects in the interactive interface, for example, determining standard engineering node checking configuration; selecting a financial industry universal technical component; determining parameter hooking options of the built-in paas template; after the user selects, generating an engineering template file package according to decision item data determined by the user on the guide page, generating paas_package related content in the engineering catalog, and automatically filling typical matched meal values and default package content for effective use of related selecting functions on the paas platform.
According to the cloud native standard application engineering template generation method provided by the embodiment of the disclosure, responding to an opening instruction of Yun Yuansheng application wizards, acquiring wizard page configuration from standard engineering nodes, wherein the standard engineering nodes are pre-configured with template standard warehouses which comprise a plurality of standard engineering templates; rendering a guide page according to the guide page configuration item; and generating an engineering template file package according to the decision item data determined by the user on the guide page. Compared with the related art, the embodiment of the disclosure forms the template standard warehouse in advance by summarizing engineering type features of cloud native applications with different architectures, embeds standardized cloud platform parameters in a typical configuration package mode, reduces links which are easy to make mistakes in manual operation, reduces the landing threshold of the cloud native applications, and improves the standardized characteristics of the cloud native engineering.
FIG. 3 schematically illustrates a flow chart of a method for generating engineering template packages from decision item data determined by a user on a wizard page, according to one embodiment of the present disclosure. Fig. 4 schematically illustrates a flowchart of a cloud native standard application engineering template generation method provided according to an embodiment of the present disclosure.
As shown in fig. 3, operation S230 includes operations S231 to S234.
In operation S231, decision item data determined by the user on the guide page is received.
According to embodiments of the present disclosure, decision item data determined by a user accessing a page through a web side or a development tool interaction side is received.
And in operation S232, splicing the uniform resource locator according to the decision item data.
In one example, the decision item data is a configuration for a user to check out at a front-end interactive interface, including configuration data such as engineering architecture types, financial general technology components, and typical configuration packages. And acquiring relevant parameters in the decision item data, splicing the parameters into URLs, and downloading the template engineering to the standard engineering node.
And in operation S233, downloading the template engineering to the standard engineering node according to the uniform resource locator.
In operation S234, an engineering template file package returned by the standard engineering node is received.
As shown in fig. 4, operation S233 includes operations S2331 to S2334.
In operation S2331, an engineering template main frame is constructed according to the engineering architecture type rendering.
According to an embodiment of the disclosure, determining a corresponding standard engineering node according to the engineering architecture type; obtaining a target standard engineering template from the standard engineering node; and constructing an engineering template main frame according to the target standard engineering template.
In operation S2332, a reusable code corresponding to the financial universal technology component is obtained.
According to an embodiment of the disclosure, a request is initiated to a reusable code platform according to a financial general technology component determined by a user on a wizard page; and receiving the financial universal technology component returned by the reusable code platform and the reusable code corresponding to the financial universal technology component.
In operation S2333, the configuration parameters of the engineering template mainframe are replaced according to the typical configuration package.
And in operation S2334, assembling and packaging the reusable codes and the replaced configuration parameters to generate an engineering template file package.
In one example, determining a corresponding standard engineering node according to the engineering architecture type, for example, if the user selects the engineering architecture type as a B/S architecture, determining the standard engineering node corresponding to the B/S architecture; if the user selects the engineering architecture type as a batch architecture, determining standard engineering nodes corresponding to the batch architecture; and if the user selects the engineering architecture type to be the micro-service architecture, determining a standard engineering node corresponding to the micro-service architecture. Obtaining a standard engineering template of a target architecture from the standard engineering node; and constructing the engineering template main frame.
In one example, if the user selects a financial industry universal technology component, a reusable code corresponding to the financial universal technology component is further required to be obtained, where the financial universal technology component includes universal technology components such as an NLP connector, an OCR real estate identification connector, an OCR electronic invoice identification connector, an OCR identification card connector, and an annotation type accounting duplicate prevention component. Specifically, a request is initiated to a reusable code platform according to a financial general technology component determined by a user on a guide page; and receiving the financial universal technology component returned by the reusable code platform and the reusable code corresponding to the financial universal technology component. After the reusable code is obtained, the configuration parameters of the engineering template main frame are replaced according to the typical configuration package. Taking container parameters as an example, container specification configuration is used as standard configuration, four parameters of application container cpu soft limit, application container cpu hard limit, application container memory soft limit and application container memory hard limit are built in, four standard packages of 1c2g, 2c4g, 4c4g and 4c6g are selected, the application can select corresponding standard package values (such as 1c2 g) according to the self requirement of the requirement, and the program automatically selects related values of 500, 1000, 2048 and 2048 mapped by the 1c2g into configuration items. And assembling and packaging the reusable codes and the replaced configuration parameters to generate an engineering template file package.
In the embodiment of the disclosure, a cloud native standard engineering template engineering of a distributed service, a distributed batch and a B/S terminal type is formed for comprehensively developing a framework in the banking industry. Taking Web engineering (B/S end engineering) as an example, in order to adapt to the development of a cloud primary application architecture, an Abiba COLA architecture is combined, the Web back end engineering structure in the financial industry is fully researched, the reconstruction optimization Web engineering architecture is layered, universal capability is extracted, universal components are precipitated, and research and development efficiency is improved. The Web engineering template will eventually consist of version management pon file, generic components, engineering hierarchy and default code. The new layering is defined as follows, and the new layering is a Web layer, an App layer, a Domain layer and an Infrastructure layer from top to bottom, wherein each layer corresponds to one module, and a start module is further used for starting and configuring an application. In addition to the horizontal functional hierarchical division, the vertical also requires domain packet division. In order to consider cohesiveness of domain dimensions, a top layer division should be made under each module according to the domain, and then the sub-division should be made according to functions in the domain. As in the app module, com.xx.xx.branch.service, com.xx.user.service, com.xx.xx.name, service, etc. should be present.
In an embodiment of the present disclosure, mustache template engine is used to dynamically generate the configuration file. The system predefines a template file containing variables for replacement (e.g., { { cpu_soft_limit }). When the user selects a particular configuration set, the system replaces the corresponding value (e.g., 500 m) with the variable location in the template, generating the final configuration file. In addition, through the classical meal assorted concept, the user can quickly select a set of predefined configuration parameters through simple choosing operation, thereby simplifying the configuration process.
Thus, by the above embodiments, the present disclosure achieves the following advantageous effects:
Simplifying the configuration: the configuration process of the cloud native application is simplified through classical package and interactive wizard. Improving standardization: the generated engineering template has high standardization and is convenient to manage and maintain. The technical threshold is reduced: the requirements on technical capability of developers are reduced, so that more developers can participate in the development of the cloud native application.
Based on the cloud native standard application engineering template generation method, the present disclosure also provides a cloud native standard application engineering template generation device. The device will be described in detail below in connection with fig. 5.
Fig. 5 schematically illustrates a block diagram of a cloud native standard application engineering template generation apparatus according to an embodiment of the present disclosure. As shown in fig. 5, the cloud native standard application engineering template generation apparatus 500 of this embodiment includes an acquisition module 510, a presentation module 520, and a generation module 530.
The obtaining module 510 is configured to obtain, in response to the Yun Yuansheng application wizard open instruction, a wizard page configuration from a standard engineering node, where the standard engineering node is preconfigured with a template standard repository, and the template standard repository includes a plurality of standard engineering templates. In an embodiment, the obtaining module 510 may be configured to perform the operation S210 described above, which is not described herein.
The presentation module 520 is configured to render the wizard page according to the wizard page configuration item. In an embodiment, the display module 520 may be used to perform the operation S220 described above, which is not described herein.
The generating module 530 is configured to generate an engineering template file package according to decision item data determined by the user on the wizard page. In an embodiment, the verification module 530 may be configured to perform the operation S230 described above, which is not described herein.
According to an embodiment of the present disclosure, the generating module includes: the system comprises a first receiving sub-module, a splicing sub-module, a downloading sub-module and a second receiving sub-module.
The first receiving sub-module is used for receiving decision item data determined by a user on the guide page;
The splicing sub-module is used for splicing the uniform resource locator according to the decision item data;
the downloading sub-module is used for downloading the template engineering to the standard engineering node according to the uniform resource locator; and
And the second receiving sub-module is used for receiving the engineering template file packet returned by the standard engineering node.
According to the embodiment of the disclosure, the first receiving submodule is specifically used for receiving decision item data determined by a user accessing a page through a web end or a development tool interaction end.
According to an embodiment of the present disclosure, a download sub-module includes a building unit, an acquisition unit, a parameter replacement unit and a packaging unit,
The construction unit is used for rendering and constructing a main framework of the engineering template according to the engineering framework type;
The acquisition unit is used for acquiring the reusable codes corresponding to the financial universal technical components;
A parameter replacement unit, configured to replace configuration parameters of the engineering template main frame according to the typical configuration package; and
And the packaging unit is used for assembling and packaging the reusable codes and the replaced configuration parameters to generate an engineering template file package.
According to an embodiment of the present disclosure, the construction unit includes a determination subunit, an acquisition subunit, and a construction subunit.
A determining subunit, configured to determine a corresponding standard engineering node according to the engineering architecture type;
the obtaining subunit is used for obtaining a target standard engineering template from the standard engineering node; and
And the construction subunit is used for constructing an engineering template main frame according to the target standard engineering template.
According to the embodiment of the disclosure, the acquiring unit is specifically configured to initiate a request to the reusable code platform according to a financial universal technology component determined by a user on a wizard page; and receiving the financial universal technology component returned by the reusable code platform and the reusable code corresponding to the financial universal technology component.
Any of the plurality of modules of the acquisition module 510, the presentation module 520, and the generation module 530 may be combined in one module to be implemented, or any of the plurality of modules may be split into a plurality of modules according to embodiments of the present disclosure. Or at least some of the functionality of one or more of the modules may be combined with, and implemented in, at least some of the functionality of other modules. According to embodiments of the present disclosure, at least one of the acquisition module 510, the presentation module 520, and the generation module 530 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in hardware or firmware, such as any other reasonable manner of integrating or packaging the circuitry, or in any one of or a suitable combination of any of three implementations of software, hardware, and firmware. Or at least one of the acquisition module 510, presentation module 520 and generation module 530 may be at least partially implemented as a computer program module which, when executed, performs the corresponding functions.
Fig. 6 schematically illustrates a block diagram of an electronic device adapted to implement a cloud native standard application engineering template generation method, according to an embodiment of the present disclosure.
As shown in fig. 6, an electronic device 900 according to an embodiment of the present disclosure includes a processor 901 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. The processor 901 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. Processor 901 may also include on-board memory for caching purposes. Processor 901 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic device 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other by a bus 904. The processor 901 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the program may be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the disclosure, the electronic device 900 may also include an input/output (I/O) interface 905, the input/output (I/O) interface 905 also being connected to the bus 904. The electronic device 900 may also include one or more of the following components connected to the I/O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output portion 907 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 908 including a hard disk or the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 909 is also connected to the I/O interface 905 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 909, so that a computer program read therefrom is installed into the storage section 908 as needed.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs that, when executed, implement the cloud native standard application engineering template generation method according to the embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 902 and/or RAM 903 and/or one or more memories other than ROM 902 and RAM 903 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. When the computer program product runs in a computer system, the program code is used for enabling the computer system to realize the cloud native standard application engineering template generation method provided by the embodiment of the disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, via communication portion 909, and/or installed from removable medium 911. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 909 and/or installed from the removable medium 911. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. These examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (10)

1. A cloud native standard application engineering template generation method, the method comprising:
Responding to Yun Yuansheng application wizard opening instructions, obtaining wizard page configuration from standard engineering nodes, wherein the standard engineering nodes are pre-configured with a template standard warehouse, and the template standard warehouse comprises a plurality of standard engineering templates;
rendering a guide page according to the guide page configuration item; and
And generating an engineering template file package according to the decision item data determined by the user on the guide page.
2. The method of claim 1, wherein the decision item data comprises an engineering architecture type, a financial generic technology component, and a typical configuration package, and wherein generating the engineering template package from the decision item data determined by the user on the wizard page comprises:
Receiving decision item data determined by a user on a guide page;
Splicing the uniform resource locator according to the decision item data;
downloading template engineering to a standard engineering node according to the uniform resource locator; and
And receiving an engineering template file packet returned by the standard engineering node.
3. The method of claim 2, wherein receiving decision term data determined by the user on the wizard page comprises:
and receiving decision item data determined by a user accessing the page through the web end or the development tool interaction end.
4. The method of claim 2, wherein downloading the template project to the standard project node according to the uniform resource locator comprises:
Rendering and constructing an engineering template main frame according to the engineering framework type;
Acquiring a reusable code corresponding to the financial universal technical component;
replacing configuration parameters of the engineering template main frame according to the typical configuration package; and
And assembling and packaging the reusable codes and the replaced configuration parameters to generate an engineering template file package.
5. The method of claim 4, wherein the engineering architecture types include B/S architecture, micro-service architecture, and batch architecture, and wherein constructing an engineering template mainframe according to the engineering architecture type rendering comprises:
determining a corresponding standard engineering node according to the engineering architecture type;
obtaining a target standard engineering template from the standard engineering node; and
And constructing an engineering template main frame according to the target standard engineering template.
6. The method of claim 4, wherein the obtaining the reusable code corresponding to the financial universal technology component comprises:
Initiating a request to a reusable code platform according to a financial universal technology component determined by a user on a guide page;
And receiving the financial universal technology component returned by the reusable code platform and the reusable code corresponding to the financial universal technology component.
7. A cloud native standard application engineering template generation device, the device comprising:
The system comprises an acquisition module, a standard engineering node and a template standard warehouse, wherein the acquisition module is used for responding to an opening instruction of Yun Yuansheng application wizards and acquiring wizard page configuration from the standard engineering node, the standard engineering node is pre-configured with the template standard warehouse, and the template standard warehouse comprises a plurality of standard engineering templates;
the display module is used for rendering the guide page according to the guide page configuration item; and
And the generating module is used for generating an engineering template file package according to the decision item data determined by the user on the guide page.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more computer programs,
Characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, realizes the steps of the method according to any one of claims 1-6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, realizes the steps of the method according to any one of claims 1-6.
CN202410592125.1A 2024-05-13 2024-05-13 Cloud native standard application engineering template generation method and device Pending CN118394331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410592125.1A CN118394331A (en) 2024-05-13 2024-05-13 Cloud native standard application engineering template generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410592125.1A CN118394331A (en) 2024-05-13 2024-05-13 Cloud native standard application engineering template generation method and device

Publications (1)

Publication Number Publication Date
CN118394331A true CN118394331A (en) 2024-07-26

Family

ID=91984723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410592125.1A Pending CN118394331A (en) 2024-05-13 2024-05-13 Cloud native standard application engineering template generation method and device

Country Status (1)

Country Link
CN (1) CN118394331A (en)

Similar Documents

Publication Publication Date Title
CN111221521B (en) Method, device, computer system and readable storage medium for generating log code
US9274784B2 (en) Automatic deployment and update of hybrid applications
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
CN113778848A (en) Test code generation method, device, computer system and medium
US10915378B1 (en) Open discovery service
US20200326931A1 (en) Federated Framework for Container Management
CN115982491A (en) Page updating method and device, electronic equipment and computer readable storage medium
CN114237651A (en) Installation method and device of cloud native application, electronic equipment and medium
CN115599386A (en) Code generation method, device, equipment and storage medium
CN113419740A (en) Program data stream analysis method and device, electronic device and readable storage medium
CN114791885A (en) Interface test method, device, equipment and medium
US20200097260A1 (en) Software application developer tools platform
CN116756016A (en) Multi-browser testing method, device, equipment, medium and program product
US20200081700A1 (en) Intention-based command optimization
CN113805877B (en) Project engineering construction method and device based on IDEA plug-in
CN114816361A (en) Method, device, equipment, medium and program product for generating splicing project
CN118394331A (en) Cloud native standard application engineering template generation method and device
CN114677114A (en) Approval process generation method and device based on graph dragging
CN115033634A (en) Data acquisition method, data acquisition device, electronic equipment and medium
CN113326079A (en) Service version switching method, switching device, electronic equipment and storage medium
CN113656041A (en) Data processing method, device, equipment and storage medium
CN113360232A (en) Task processing method and device, electronic equipment and storage medium
CN113535188A (en) Privatization deployment method and device
CN113360417B (en) Test method, session modifier, electronic device and medium
CN114363172B (en) Decoupling management method, device, equipment and medium for container group

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination