CN111949338A - Service arrangement method based on micro-service - Google Patents
Service arrangement method based on micro-service Download PDFInfo
- Publication number
- CN111949338A CN111949338A CN202010797645.8A CN202010797645A CN111949338A CN 111949338 A CN111949338 A CN 111949338A CN 202010797645 A CN202010797645 A CN 202010797645A CN 111949338 A CN111949338 A CN 111949338A
- Authority
- CN
- China
- Prior art keywords
- service
- node
- microservice
- nodes
- task
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
Abstract
The invention discloses a service arranging method based on micro-services, which relates to the field of service arranging. The invention arranges the basic service through nodes with different functions, does not need to develop codes again when the process is changed, can flexibly and quickly adapt to the change of the process, ensures high availability of the service through a plurality of instances of the registration service, can check and monitor the instance state of the service through a process monitoring visual interface, and quickly positions the problem.
Description
Technical Field
The invention relates to the field of service arrangement, in particular to a service arrangement method based on micro-services.
Background
With the rapid development of software in recent years and the spread of flowers, security manufacturers continuously optimize their own abilities and provide a number of excellent services. However, in the face of the increasing complexity of social security events, a single security manufacturer provides services which cannot meet the requirements of public security investigation personnel, and multiple security systems need to comprehensively and cooperatively inquire out case related clues, so that case solving clues can be formed through manual screening and judgment. Not only does this consume labor and time, but there may be serious problems such as missing key clues due to human negligence.
How to provide services provided by the current manufacturers in the shortest time, the service users are provided with relevant critical clues for solving the case by facing the challenge of complex operation brought by different services, and the improvement of the case solving efficiency is an urgent problem to be solved.
The existing implementation schemes mainly include the following two types: the first is to execute a fixed service execution flow by experience, each service input parameter and output parameter is fixed, the scheme completely depends on the fixed flow, if the flow changes, dynamic switching cannot be completed, and redevelopment is needed. The other scheme is to execute the flow service through the existing flow service, but the method can only see which node the current flow is executed to when the flow execution fails, and the failure reason cannot be judged, so that the problem of positioning is not facilitated.
The defects of the prior art are as follows: redevelopment is needed when the flow is changed; the reason of failure cannot be quickly positioned when the flow calling fails; efficient and stable support for orchestration services is not possible.
Therefore, those skilled in the art are dedicated to develop a method for arranging services based on microservices, which avoids the disadvantages of the schemes 1 and 2, avoids redevelopment of the adjustment services due to process changes, and can quickly locate the cause of failure in the process of executing the process.
Disclosure of Invention
In view of the above-mentioned defects in the prior art, the technical problem to be solved by the present invention is how to quickly perform flow arrangement, quickly locate the cause of service failure by monitoring the flow, and ensure high availability of service through multiple instances.
In order to achieve the purpose, the invention provides a service arranging method based on micro-services, which combines a plurality of basic services through a task node, a branch node, a synchronous node and a connecting node to form arranged services.
Further, the basic service includes a request parameter and a response parameter.
Further, the request parameters include a request path, a request header and a request body.
Further, the response parameter includes a response code and a response result.
Further, the base service and one or more instances of the orchestrated service are registered with a registry.
Further, the task node serves as a base.
Further, the task node is a scheduled service.
Further, the branch node automatically selects the next task node to be executed according to the value of the input parameter.
Further, the synchronous node can select a plurality of task nodes to execute synchronously.
Further, the connecting node connects a plurality of task nodes under the synchronization node.
Further, service orchestration is performed through a visualization interface.
Further, the process is managed in the visualization interface, and the process comprises the operations of executing suspension, retrying, re-executing and the like.
The service arrangement method based on the micro-service is applied to carry out service arrangement, when the flow changes, codes do not need to be developed again, only the adjustment is needed on a visual interface, and the operation is simple; multiple instances of the service can be registered in a registration center to achieve high availability; and a flow monitoring visual interface is provided, the service instance state, the input parameters and the output result of each task node can be checked, and the execution failure node is marked in the flow chart, so that the problem can be quickly positioned.
The conception, the specific structure and the technical effects of the present invention will be further described with reference to the accompanying drawings to fully understand the objects, the features and the effects of the present invention.
Drawings
FIG. 1 is an overall frame diagram of the present invention;
FIG. 2 is a principal business flow diagram of the present invention;
FIG. 3 is a task node flow diagram of the present invention;
FIG. 4 is a branch node flow diagram of the present invention;
fig. 5 is a flow chart of a synchronizing, connecting node of the present invention.
Detailed Description
The technical contents of the preferred embodiments of the present invention will be more clearly and easily understood by referring to the drawings attached to the specification. The present invention may be embodied in many different forms of embodiments and the scope of the invention is not limited to the embodiments set forth herein.
In the drawings, structurally identical elements are represented by like reference numerals, and structurally or functionally similar elements are represented by like reference numerals throughout the several views. The size and thickness of each component shown in the drawings are arbitrarily illustrated, and the present invention is not limited to the size and thickness of each component. The thickness of the components may be exaggerated where appropriate in the figures to improve clarity.
Fig. 1 and fig. 2 show an overall framework diagram and a main business flow diagram of the present invention.
In the service orchestration subsystem of the service open capability platform, first, the basic service of the vendor accessing the capability service platform is configured, including the request parameter and the response parameter of the service. The request parameters comprise a request path, a request header and a request body, and the response parameters comprise a response code and a response result. These basic services are the basis of the services to be orchestrated, by which we can organize into new services in any combination.
And then selecting the basic service to be arranged through the visual interface to start the service flow arrangement. On the basis of basic service, a task node, a branch node, a synchronous node and a connecting node are designed. Through the combination of the task nodes, the branch nodes, the synchronous nodes and the connecting nodes, a plurality of basic services are arranged to form a new service.
Basic service: basic services are the root of service arrangement, and one or more instances of the existing services need to be registered in a registry through a service capability open platform, so that high availability of the services is achieved. While requiring basic information for configuring the service.
Fig. 3 is a flow chart of a task node.
The task node can be a basic service or a programmed service. The input parameter name and the output parameter name of the task node need to be defined, whether the process is continuously executed downwards when the task is failed to be executed is determined, and the time-out time for executing the process, the time-out strategy to be executed in time-out, the retry time, the retry strategy, the current limiting times and the like are also included. The task nodes are executed in series.
Fig. 4 shows a flow chart of the branch node.
The branch node can select a plurality of task nodes, automatically select the next task node to be executed according to the value of the input parameter, and simultaneously can support the expression operation result as the input parameter.
Fig. 5 is a flow chart of a synchronization node and a connection node.
The synchronous node: a plurality of task nodes can be selected, the task nodes are synchronously executed, the task execution efficiency is improved, and then the task nodes are connected through the connecting nodes. There must be a connecting node behind each synchronization node.
Connecting the nodes: and connecting a plurality of task nodes under the synchronous node, and appointing an output result after the task nodes are executed.
Through the four types of nodes, any complex flow service can be compiled. And inputting input parameters according to the arranged flow, automatically judging the current node type and the input parameter value by the system, executing according to the flow sequence, and assembling and outputting according to a set output result.
After the flow is started, the flow can be managed on the visual interface, and the management comprises the operations of executing suspension, retrying, re-executing and the like.
The foregoing detailed description of the preferred embodiments of the invention has been presented. It should be understood that numerous modifications and variations could be devised by those skilled in the art in light of the present teachings without departing from the inventive concepts. Therefore, the technical solutions available to those skilled in the art through logic analysis, reasoning and limited experiments based on the prior art according to the concept of the present invention should be within the scope of protection defined by the claims.
Claims (10)
1. A service arranging method based on micro-service is characterized in that a plurality of basic services are combined through task nodes, branch nodes, synchronous nodes and connecting nodes to form arranged services.
2. The microservice-based service orchestration method according to claim 1, wherein the base service comprises a request parameter and a response parameter.
3. The microservice-based service orchestration method according to claim 2, wherein the request parameters comprise request path, request header, and request body.
4. The microservice-based service orchestration method according to claim 2, wherein the response parameters comprise a response code and a response result.
5. The microservice-based service orchestration method according to claim 2, wherein the base service and one or more instances of the orchestrated service are registered with a registry.
6. The microservice-based service orchestration method according to claim 2, wherein the task node is a base service.
7. The microservice-based service orchestration method according to claim 2, wherein the task node is the orchestrated service.
8. The microservice-based services orchestration method according to claim 2, wherein the branch node automatically selects the task node to be executed next according to the value of an input parameter.
9. The microservice-based services orchestration method according to claim 2, wherein the synchronization node can select a plurality of the task nodes to execute synchronously.
10. The microservice-based services orchestration method according to claim 9, wherein the connecting node connects the plurality of task nodes under the synchronization node.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010797645.8A CN111949338A (en) | 2020-08-10 | 2020-08-10 | Service arrangement method based on micro-service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010797645.8A CN111949338A (en) | 2020-08-10 | 2020-08-10 | Service arrangement method based on micro-service |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111949338A true CN111949338A (en) | 2020-11-17 |
Family
ID=73333170
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010797645.8A Pending CN111949338A (en) | 2020-08-10 | 2020-08-10 | Service arrangement method based on micro-service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111949338A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113703971A (en) * | 2021-08-18 | 2021-11-26 | 西安电子科技大学 | Network function arrangement method based on micro service in multi-edge cooperative computing platform |
CN114237628A (en) * | 2022-02-25 | 2022-03-25 | 卓望数码技术(深圳)有限公司 | Microservice arranging and calling method and device, computer equipment and storage medium |
CN115373949A (en) * | 2022-10-24 | 2022-11-22 | 杭州比智科技有限公司 | Method and system for developing configured service interface |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106846226A (en) * | 2017-01-19 | 2017-06-13 | 湖北省基础地理信息中心(湖北省北斗卫星导航应用技术研究院) | A kind of space time information assembling management system |
US20190306256A1 (en) * | 2016-12-15 | 2019-10-03 | Huawei Technologies Co., Ltd. | Service orchestration method and apparatus, and server |
CN110532020A (en) * | 2019-09-04 | 2019-12-03 | 中国工商银行股份有限公司 | A kind of data processing method of micro services layout, apparatus and system |
-
2020
- 2020-08-10 CN CN202010797645.8A patent/CN111949338A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190306256A1 (en) * | 2016-12-15 | 2019-10-03 | Huawei Technologies Co., Ltd. | Service orchestration method and apparatus, and server |
CN106846226A (en) * | 2017-01-19 | 2017-06-13 | 湖北省基础地理信息中心(湖北省北斗卫星导航应用技术研究院) | A kind of space time information assembling management system |
CN110532020A (en) * | 2019-09-04 | 2019-12-03 | 中国工商银行股份有限公司 | A kind of data processing method of micro services layout, apparatus and system |
Non-Patent Citations (1)
Title |
---|
宣程: "基于微服务的API管理平台设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, pages 138 - 467 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113703971A (en) * | 2021-08-18 | 2021-11-26 | 西安电子科技大学 | Network function arrangement method based on micro service in multi-edge cooperative computing platform |
CN113703971B (en) * | 2021-08-18 | 2024-02-23 | 西安电子科技大学 | Network function arrangement method based on micro-service in multi-edge cooperative computing platform |
CN114237628A (en) * | 2022-02-25 | 2022-03-25 | 卓望数码技术(深圳)有限公司 | Microservice arranging and calling method and device, computer equipment and storage medium |
CN115373949A (en) * | 2022-10-24 | 2022-11-22 | 杭州比智科技有限公司 | Method and system for developing configured service interface |
CN115373949B (en) * | 2022-10-24 | 2023-04-07 | 杭州比智科技有限公司 | Method and system for developing configured service interface |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111949338A (en) | Service arrangement method based on micro-service | |
CN107291565B (en) | Operation and maintenance visual automatic operation platform and implementation method | |
CN108432208A (en) | A kind of arranging service method, apparatus and server | |
CN110543328B (en) | Cross-platform component management method, system, terminal and storage medium based on Ambari | |
CN103530231A (en) | Application program testing method and system based on service process control | |
CN111158708A (en) | Task arrangement engine system | |
CN108255592A (en) | A kind of Quartz clusters timing task processing system and method | |
EP2493083A1 (en) | Method, device and service control point (scp) for data disaster tolerance preprocessing | |
CN110138876A (en) | Task deployment method, apparatus, equipment and platform | |
CN112115044A (en) | Automatic testing method and system for electric power information communication equipment | |
CN109656569A (en) | Multi-environment application dispositions method, equipment, storage medium and device | |
CN109697078A (en) | Restorative procedure, big data cluster and the container service platform of non-high availability component | |
CN113747150B (en) | Method and system for testing video service system based on container cloud | |
CN115185496A (en) | Service arrangement method based on Flowable workflow engine | |
JP2008523756A (en) | Viewing configuration status | |
CN105930181A (en) | Runtime interface integration method based on plug-in mechanism | |
CN112948077A (en) | Batch processing method, device, equipment and storage medium | |
JP2017016507A (en) | Test management system and program | |
CN106294037A (en) | Strike-machine method of testing and device | |
CN111026424A (en) | Service updating method and device | |
CN112486503A (en) | Deployment delivery method for distributed applications | |
CN106598870A (en) | Cross-component transaction consistency testing method and system | |
CN115993977A (en) | Application deployment method and device | |
CN113568842B (en) | Automatic testing method and system for batch tasks | |
CN112418796B (en) | Sub-process task node activation method and device, electronic equipment and storage medium |
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 |