Spring cloud-based micro-service construction method

A construction method and micro-service technology, applied in the field of program control devices, can solve problems such as lack of peripheral solutions such as registration and discovery, lack of peripheral monitoring integration solutions, and lack of peripheral security management solutions.

Inactive Publication Date: 2018-08-24
国家电网有限公司客户服务中心
View PDF2 Cites 62 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Disadvantages of existing technologies: lack of peripheral solutions such as registration and discovery, lack of peripheral mo

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Spring cloud-based micro-service construction method
  • Spring cloud-based micro-service construction method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0060] A method for building microservices based on Spring cloud, including the following process:

[0061] (1) Parent creation: Create a parent project for unified management of Maven dependencies in the project and add SpringBoot dependencies.

[0062] (2) Service discovery and registration:

[0063] Service discovery is one of the key principles in microservice architecture. It is difficult and fragile to manually configure each client or some form of agreement; using Eureka can guarantee A and P in CAP theory (that is, availability and partition fault tolerance) ;

[0064] The specific steps of service discovery and registration are as follows:

[0065] Build a sub-module for service registration under the parent project, add dependencies on Eureka in the configuration file to create the registry service; add annotations @EnableEurekaServer, @EnableEurekaClient to the startup class code of the registry project, and run it directly The main method of the startup class of...

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 relates to a Spring cloud-based micro-service construction method. The method includes the following processes: (1) parent item creating; (2) service discovery and registration; (3) a service provider and a service consumer; (4) service fusing; (5) a configuration center; (6) API gateway setting; (7) distributed transaction consistency management; and (8) use of Docker to construct amicro-service. Spring Boot is used to develop the application micro-service, and functions of service discovery, service consumption, service fusing, an api gateway, the unified configuration center,distributed transaction consistency management and container construction are realized.

Description

Technical field: [0001] The invention relates to a program control device, and further relates to a Spring cloud-based microservice construction method. Background technique: [0002] The first point emphasized by the microservice architecture is that the business system needs to be thoroughly componentized and service-oriented. The original single business system will be split into multiple small applications that can be independently developed, designed, run, and maintained. These small applications complete interaction and integration through services. Each small application is completely independent from the front-end web UI, to the control layer, logic layer, database access, and database. It is more appropriate to use the term small application instead of components. In addition to completing its own business functions, each small application also needs to consume services exposed by other external applications. At the same time, it also releases its own capabilities ...

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
no application Login to view more
IPC IPC(8): G06F8/30
CPCG06F8/315
Inventor 张才俊李子乾马永波程飞飞王清源王乐之孙晋龙李伟东
Owner 国家电网有限公司客户服务中心
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products