Micro-service governance method and device

A micro-service and policy technology, applied in the field of micro-service architecture, can solve the problems of increasing code maintenance difficulty and operation and maintenance complexity, and achieve the effects of reducing code error rate, improving efficiency, and reducing complexity

A micro-service and policy technology, applied in the field of micro-service architecture, can solve the problems of increasing code maintenance difficulty and operation and maintenance complexity, and achieve the effects of reducing code error rate, improving efficiency, and reducing complexity

CN112506709AActive Publication Date: 2021-03-16北京航天智造科技发展有限公司

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Micro-service governance method and device
  • Micro-service governance method and device
  • Micro-service governance method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0040] In the microservice architecture, service calls are changed from local calls to remote calls. Service consumer A needs to query the address of service provider B through the registration center, and then initiate the call. This seemingly simple process may encounter a variety of accidents such as registry center downtime, service provider B’s service downtime, service consumer A and registry center network disconnection, service consumer A and service provider B network disconnection, etc. Due to the situation, service consumer A cannot successfully call service provider B, and then the microservice system crashes due to the avalanche effect.

[0041] At present, t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a micro-service governance method and device. The method comprises the steps: transmitting a micro-service registration request to a registration center through a predefined YAML template, configuring a micro-service according to the governance strategy type of the micro-service when the micro-service registration succeeds, and when the configured micro-service is called, restarting the configured micro-service container according to the governance strategy type corresponding to the configured micro-service under the condition that a micro-service code does not need tobe modified; According to the invention, a user can be helped to focus on the development of business logic, code logic such as load balancing, fusing treatment, current limiting treatment, fault tolerance treatment and degradation treatment in the aspect of micro-service treatment does not need to be considered, the code development efficiency of the user is improved, the code error rate is reduced, and the complexity is reduced.

Description

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
16 Mar 2021
Publication
CN112506709A