Delivery method, device and medium for micro-service integrated product

文档序号:1936803 发布日期:2021-12-07 浏览:14次 中文

阅读说明:本技术 一种微服务集成产品的交付方法、设备及介质 (Delivery method, device and medium for micro-service integrated product ) 是由 柯桓 于 2021-08-25 设计创作,主要内容包括:本申请公开了一种微服务集成产品的交付方法、设备及介质,应用在微服务集成产品的交付系统中,交付系统包括产品模块、交付引擎模块、交付定义模块、交付模块,方法包括:通过产品模块确认交付系统中的微服务集成产品的产品信息;通过交付引擎模块确认微服务集成产品的交付方式,并将交付方式发送至交付定义模块,交付方式至少包括对微服务集成产品进行交付时,交付系统后端产生的指令;通过交付定义模块对交付方式进行编排,创建相应的任务节点,并根据任务节点确定微服务集成产品的交付流程;通过交付模块执行交付流程,并对交付流程进行监控。(The application discloses a delivery method, equipment and medium of a micro-service integrated product, which are applied to a delivery system of the micro-service integrated product, wherein the delivery system comprises a product module, a delivery engine module, a delivery definition module and a delivery module, and the method comprises the following steps: confirming the product information of the microservice integrated product in the delivery system through the product module; confirming a delivery mode of the micro-service integrated product through a delivery engine module, and sending the delivery mode to a delivery definition module, wherein the delivery mode at least comprises an instruction generated at the rear end of a delivery system when the micro-service integrated product is delivered; arranging delivery modes through a delivery definition module, creating corresponding task nodes, and determining a delivery flow of the microservice integrated product according to the task nodes; and executing the delivery flow through the delivery module, and monitoring the delivery flow.)

1. The delivery method of the microservice integrated product is applied to a delivery system of the microservice integrated product, the delivery system comprises a product module, a delivery engine module, a delivery definition module and a delivery module, and the method comprises the following steps:

confirming, by the product module, product information of a microservice integrated product in the delivery system;

confirming a delivery mode of the microservice integrated product through the delivery engine module, and sending the delivery mode to the delivery definition module, wherein the delivery mode at least comprises an instruction generated by the rear end of the delivery system when the microservice integrated product is delivered;

arranging the delivery modes through the delivery definition module, creating corresponding task nodes, and determining the delivery flow of the microservice integrated product according to the task nodes;

and executing the delivery flow through the delivery module, and monitoring the delivery flow.

2. The method of claim 1, wherein after confirming product information of the microservice integrated product in the delivery system with the product module, the method further comprises:

binding and relying on the basic data and the flow data of the microservice integrated product through the product module;

determining environmental data and components associated with the functional modules of the microservice integration product through the binding process;

and determining the existing dependency relationship of the functional module through the dependency processing.

3. The method of claim 1, wherein the confirming, by the delivery engine module, the delivery manner of the microservice integrated product comprises:

determining, by the delivery engine module, delivery behavior including, but not limited to, initiating machine scripts, sending machine instructions for remote communications, network API requests.

4. The method according to claim 1, wherein determining a delivery flow of the microservice integrated product according to the task node specifically comprises:

determining the task nodes of the microservice integrated product according to the delivery mode, determining the execution sequence of the task nodes, and determining the delivery process according to the execution sequence;

and monitoring the delivery process of the microservice integrated product through the task node, determining the emergency of the delivery process, and checking the task node corresponding to the emergency.

5. The method of claim 4, further comprising:

determining a plurality of delivery flows of the microservice integrated product, determining the task node corresponding to each delivery flow, and carrying out process isolation on the plurality of delivery flows.

6. The method of claim 1, wherein the delivery system further comprises a product management module and an order management module, the method further comprising:

confirming product registration information of a maintainer on the microservice integrated product according to the product information, and maintaining the product registration information through the product management module;

and confirming order information of the micro-service integrated product through the order management module, confirming client information and product authorization information corresponding to the order information, and determining a delivery network request according to the order information.

7. The method of claim 1, wherein the delivery system further comprises a traffic port, the method further comprising:

determining product initialization information of the microservice integrated product through the service port, and determining product function information of the microservice integrated product;

and determining the purchase demand of the microservice integrated product, and determining an application order according to the purchase demand.

8. The method of claim 7, further comprising:

checking whether the applied order is in compliance through the delivery system, and if the applied order is in compliance, determining the corresponding delivery process according to the applied order;

and automatically executing the corresponding delivery process according to the application order.

9. A microservice integrated product delivery apparatus, comprising:

at least one processor; and the number of the first and second groups,

a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,

the memory stores instructions executable by the at least one processor to enable the delivery device of the one microservice integration product to:

confirming, by the product module, product information of a microservice integrated product in the delivery system;

confirming a delivery mode of the microservice integrated product through the delivery engine module, and sending the delivery mode to the delivery definition module, wherein the delivery mode at least comprises an instruction generated by the rear end of the delivery system when the microservice integrated product is delivered;

arranging the delivery modes through the delivery definition module, creating corresponding task nodes, and determining the delivery flow of the microservice integrated product according to the task nodes;

and executing the delivery flow through the delivery module, and monitoring the delivery flow.

10. A non-transitory computer storage medium storing computer-executable instructions, the computer-executable instructions configured to:

confirming, by the product module, product information of a microservice integrated product in the delivery system;

confirming a delivery mode of the microservice integrated product through the delivery engine module, and sending the delivery mode to the delivery definition module, wherein the delivery mode at least comprises an instruction generated by the rear end of the delivery system when the microservice integrated product is delivered;

arranging the delivery modes through the delivery definition module, creating corresponding task nodes, and determining the delivery flow of the microservice integrated product according to the task nodes;

and executing the delivery flow through the delivery module, and monitoring the delivery flow.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a medium for delivering a microservice integrated product.

Background

At present, large integrated tools on the market are mostly used in manufacturers, which is equivalent to the internal butt joint of products. However, because the existing micro-service and cloud computing technologies are fast iterated and do not settle into a standardized and generalized delivery tool, most cloud products can greatly depend on the selected technology, and even in the delivery and deployment process, problems are caused by the type selection technology. In addition, some framework integration products on the market at present need manual approach to implement manual deployment, and most deployment tools are semi-finished products or process operation documents.

Disclosure of Invention

In order to solve the above problem, the present application proposes a delivery method of a microservice integrated product, which is applied in a delivery system of the microservice integrated product, wherein the delivery system comprises a product module, a delivery engine module, a delivery definition module and a delivery module, and the method comprises: confirming, by the product module, product information of a microservice integrated product in the delivery system; confirming a delivery mode of the microservice integrated product through the delivery engine module, and sending the delivery mode to the delivery definition module, wherein the delivery mode at least comprises an instruction generated by the rear end of the delivery system when the microservice integrated product is delivered; arranging the delivery modes through the delivery definition module, creating corresponding task nodes, and determining the delivery flow of the microservice integrated product according to the task nodes; and executing the delivery flow through the delivery module, and monitoring the delivery flow.

In one example, after confirming, by the product module, product information of a microservice integrated product in the delivery system, the method further comprises: binding and relying on the basic data and the flow data of the microservice integrated product through the product module; determining environmental data and components associated with the functional modules of the microservice integration product through the binding process; and determining the existing dependency relationship of the functional module through the dependency processing.

In one example, confirming, by the delivery engine module, a delivery manner of the microservice integrated product specifically includes: determining, by the delivery engine module, delivery behavior including, but not limited to, initiating machine scripts, sending machine instructions for remote communications, network API requests.

In one example, determining a delivery process of the microservice integrated product according to the task node specifically includes: determining the task nodes of the microservice integrated product according to the delivery mode, determining the execution sequence of the task nodes, and determining the delivery process according to the execution sequence; and monitoring the delivery process of the microservice integrated product through the task node, determining the emergency of the delivery process, and checking the task node corresponding to the emergency.

In one example, the method further comprises: determining a plurality of delivery flows of the microservice integrated product, determining the task node corresponding to each delivery flow, and carrying out process isolation on the plurality of delivery flows.

In one example, the delivery system further comprises a product management module and an order management module, the method further comprising: confirming product registration information of a maintainer on the microservice integrated product according to the product information, and maintaining the product registration information through the product management module; and confirming order information of the micro-service integrated product through the order management module, confirming client information and product authorization information corresponding to the order information, and determining a delivery network request according to the order information.

In one example, the delivery system further comprises a traffic port, the method further comprising: determining product initialization information of the microservice integrated product through the service port, and determining product function information of the microservice integrated product; and determining the purchase demand of the microservice integrated product, and determining an application order according to the purchase demand.

In one example, the method further comprises: checking whether the applied order is in compliance through the delivery system, and if the applied order is in compliance, determining the corresponding delivery process according to the applied order; and automatically executing the corresponding delivery process according to the application order.

In another aspect, the present application provides a delivery apparatus for microservice integrated products, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the delivery device of the microservice integration product to: confirming, by the product module, product information of a microservice integrated product in the delivery system; confirming a delivery mode of the microservice integrated product through the delivery engine module, and sending the delivery mode to the delivery definition module, wherein the delivery mode at least comprises an instruction generated by the rear end of the delivery system when the microservice integrated product is delivered; arranging the delivery modes through the delivery definition module, creating corresponding task nodes, and determining the delivery flow of the microservice integrated product according to the task nodes; and executing the delivery flow through the delivery module, and monitoring the delivery flow.

In another aspect, the present application provides a non-transitory computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to: confirming, by the product module, product information of a microservice integrated product in the delivery system; confirming a delivery mode of the microservice integrated product through the delivery engine module, and sending the delivery mode to the delivery definition module, wherein the delivery mode at least comprises an instruction generated by the rear end of the delivery system when the microservice integrated product is delivered; arranging the delivery modes through the delivery definition module, creating corresponding task nodes, and determining the delivery flow of the microservice integrated product according to the task nodes; and executing the delivery flow through the delivery module, and monitoring the delivery flow.

According to the method, the delivery request is subjected to unified standardization standard in a mode of building an independent middleware system, and the delivery of the micro-service integration type products under various scenes is supported in a mode of building a custom model, wherein the delivery mode comprises but is not limited to API (application programming interface) request, script deployment, environment copying and the like. The method and the system can freely perfect the service function according to the technical characteristics in the aspect of products, and deliver the tasks with high complexity such as deployment and the like to a delivery tool to complete. And after the micro service products are butted according to the deployment flow of the unified standard of the delivery tool, the delivery tool can be used for uniformly coordinating and completing the integrated deployment and butt joint work of the products. Each product only needs to provide detailed information, resources, environment and other conditions or requirements for the delivery tool, and opens a related information acquisition or retrieval mode, and functional environment docking integration is not required to be completed among the products.

The delivery method of the micro-service integrated product is not limited by a cloud deployment framework on the market, and mainly solves the cloud product deployment problem on the system or platform level, so that the method can not conflict with any current framework and can support all cloud product deployment frameworks on the system level.

The delivery method of the micro-service integrated product is mainly based on system scripting language, remote communication and network API requests, a delivery behavior engine is researched and developed on the basis of the prior art, related technical behaviors or operations are arranged or simulated, operation and maintenance implementing personnel are simulated through code and script integration to manually deploy various cloud products, the method is not limited to market general use or self-research, and finally the delivery tool is used for replacing a high-difficulty manual deployment delivery flow.

Drawings

The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:

FIG. 1 is a schematic flowchart illustrating a method for delivering a microservice integrated product according to an embodiment of the present application;

FIG. 2 is a schematic structural diagram of a delivery system of a microservice integrated product in an embodiment of the present application;

fig. 3 is a schematic diagram of a delivery apparatus for microservice integrated product according to an embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.

As shown in fig. 1, an embodiment of the present application provides a delivery method for a microservice integrated product, which is applied in a delivery system for the microservice integrated product, where the delivery system includes a product module, a delivery engine module, a delivery definition module, and a delivery module, and the method includes:

s101: confirming, by the product module, product information of a microservice integrated product in the delivery system.

And the product personnel binds the product information of the micro-service integrated product with the delivery system through the product module. And managing the product information of the microservice integrated product through a product module of the delivery system.

S102: and confirming the delivery mode of the microservice integrated product through the delivery engine module, and sending the delivery mode to the delivery definition module, wherein the delivery mode at least comprises an instruction generated by the rear end of the delivery system when the microservice integrated product is delivered.

The delivery engine module establishes a delivery mode with a system level as a reference, and establishes an optimal construction mode according to a system command, a script language and a network service from low to high to realize the construction of delivery operation behaviors. The production personnel provide the delivered scenes and requirements for the microservice integrated product through the product module, such as: and a delivery engine module provides a delivery abstract model for the product according to the scene and the requirement, namely commands and actions for actually completing the delivery of the product.

S103: and arranging the delivery modes through the delivery definition module, creating corresponding task nodes, and determining the delivery flow of the microservice integrated product according to the task nodes.

The delivery method provided by the delivery engine module is arranged through the delivery definition module, and the delivery method required by the product is created according to the delivery method, namely the delivery flow required to be started for delivering the micro-service integrated product and the number of task nodes required by each delivery flow.

S104: and executing the delivery flow through the delivery module, and monitoring the delivery flow.

The delivery module acquires the delivery flow of the order management module, executes the delivery flow, and records the log information generated in the delivery flow so as to monitor the delivery flow of the product through the delivery module, wherein the monitoring range comprises the functions of checking the delivery progress, recording the log information, adjusting the delivery parameters and the like.

In one embodiment, the product personnel provide product information of the microservice integrated product through the product module, the product information including product name, product description, product delivery description information, and the like. After the product information is confirmed, the product module binds or processes the basic data and the flow data of the microservice integrated product. Binding refers to the association of a portion of a product with respect to environmental data or components, such as: the lack of the associated information can cause the product to be incapable of being delivered and the associated information needs to be checked before delivery is executed. Dependency refers to a dependency that confirms the presence of a functional module within a product

In one embodiment, the delivery engine module is used as the core of the delivery system, and the integration realizes various operation behaviors including starting machine scripts, sending machine instructions through remote communication, requesting network API and the like. Machine script refers to system-level commands such as: cmd command of Windows system and shell of Linux system

The command is a command which is carried by a system without installing any software, and can realize an underlying command. By remote communication is meant communication that can be by means of remote communication tools, such as: secure Shell (SSH) protocol to enable inter-machine data transmission or file transfer. A network API request refers to accessing a specified url network address. For example: a product authorization control center is set up, and in the first step, an external network address is required to be accessed to download an installation file;

secondly, using a system command to install files, opening a machine designated port for communication use of a product authorization control center, starting the control center and generating an authorization file; and thirdly, sending the authorization file to other machines needing to control the authorization by using SSH.

In one embodiment, the delivery definition module is a delivery flow that is required to assemble the microservice integrated product by orchestrating the behavioral functions provided by the delivery engine module. The delivery process of the product is realized by combining task nodes, such as: the remote network request and the start script can be used as an independent task node.

Or a series of operation behaviors are customized according to the product complexity as a task node. And if all the task nodes in one delivery flow are normally finished, the task flow is considered to be finished, and if all the delivery flows are normally finished, the product delivery is considered to be finished. Through the delivery mode of the task node, the following effects can be realized: first, the execution order is determined. The delivery of the product requires a multi-step operation to be carried out, for example: in the linux system, the execution of a module installation file needs three steps of file copying, file authorization and file execution, the sequence of the three steps cannot be changed, and the next step can be executed only after the previous step is successfully executed. Second, logs are logged and checks are monitored. Any emergency may occur when the delivery process is automatically executed, so the task segments are likely to be disassociated, for example: and the antivirus software and the database software are installed at the same time, so that two task flows can be respectively carried out by combining the task nodes without mutual influence, thereby saving time and realizing transaction isolation.

In one embodiment, the delivery system of the microservice integrated product further comprises a product management module aiming at the diversity of delivery scenes of various products and modules from different companies in daily work and simultaneously reducing the operation complexity of product delivery. Through the product management module, a maintainer of the product confirms product registration information of the microservice integrated product according to resource conditions, wherein the product registration information comprises: product domain name, delivery address, parameter field, etc. And managing and maintaining the product registration information through a product management module.

The delivery system of the microservice integrated product also comprises an order management module. The order management module is used for confirming sales order information of the product, identifying and sorting customer information and product authorization information, finally generating a network request for product delivery, and supplementing and completing a delivery process according to the network request.

In one embodiment, as shown in fig. 2, the delivery system deploys in a Docker mirror deployment + mySQL database mode and opens a service port. Product personnel can upload product initialization information to a delivery system in a mode of prefabricating through an API or a database, wherein the product initialization information comprises a product name, product pricing rules, a product delivery mode and the like. Because most of company delivery products are deployed in the public cloud and the functional module packaging is completed, the delivery modes are all network API requests, and relevant module delivery work can be completed only by sending customer information and purchasing details.

After the product information is confirmed, the product staff issues the latest function module condition of the product, and the salesperson contacts the customer to confirm the purchase service requirement and integrates the purchase service requirement into an application order. The salesperson refers to a role of a realization paradigm scene of product delivery and is responsible for collating business requirements of a client side. Since a complete product may have multiple modules, but the customer only purchases individual modules, the sales staff is required to perform business combing in a real scene.

In one embodiment, the implementer sends the application order to the delivery system through an API. And after receiving the application order, the delivery system checks and identifies the data in the application order and confirms whether the information is in compliance. And if the information of the applied order is in compliance, converting and recording the applied order as product delivery information, and supplementing to finish the delivery process. After the delivery process is generated, the process can be automatically started, and the delivery time can be determined by manual control of implementers through an API (application program interface). Aiming at micro-service products with simpler structures, the product delivery step can be automatically executed after the delivery flow is generated. And for products which are long in deployment time, need to allocate resources, are large in the number of authorized modules and need to be delivered in an online-offline coordinated manner, delivery operation is performed after the relevant delivery conditions are checked by implementing personnel to be free from problems.

As shown in fig. 3, an embodiment of the present application further provides a delivery apparatus for a microservice integrated product, including:

at least one processor; and the number of the first and second groups,

a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,

the memory stores instructions executable by the at least one processor to enable the delivery device of the one microservice integration product to:

confirming, by the product module, product information of a microservice integrated product in the delivery system;

confirming a delivery mode of the microservice integrated product through the delivery engine module, and sending the delivery mode to the delivery definition module, wherein the delivery mode at least comprises an instruction generated by the rear end of the delivery system when the microservice integrated product is delivered;

arranging the delivery modes through the delivery definition module, creating corresponding task nodes, and determining the delivery flow of the microservice integrated product according to the task nodes;

and executing the delivery flow through the delivery module, and monitoring the delivery flow.

An embodiment of the present application further provides a non-volatile computer storage medium storing computer-executable instructions, where the computer-executable instructions are configured to:

confirming, by the product module, product information of a microservice integrated product in the delivery system;

confirming a delivery mode of the microservice integrated product through the delivery engine module, and sending the delivery mode to the delivery definition module, wherein the delivery mode at least comprises an instruction generated by the rear end of the delivery system when the microservice integrated product is delivered;

arranging the delivery modes through the delivery definition module, creating corresponding task nodes, and determining the delivery flow of the microservice integrated product according to the task nodes;

and executing the delivery flow through the delivery module, and monitoring the delivery flow.

The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.

The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.

It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种处理业务请求的方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!