Micro service registration method and micro service registration system

A registration system and microservice technology, applied in the microservice registration method and system field, can solve the problems of consuming a large network resource registration center server, system paralysis, etc., and achieve the effect of avoiding system paralysis and reducing consumption

Active Publication Date: 2016-04-20
STATE GRID INFORMATION & TELECOMM GRP +2
View PDF3 Cites 146 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the industry mostly adopts a centralized distributed service architecture. Service providers register microservices to the registry server, and service consumers obtain the list of microservices from the registry server. Once there is a problem with the registry server, service registration and discovery cannot take effect. The whole system will be paralyzed; and all microservices will remotely register with a registration center server. When the number of microservices is too large, it will consume a lot of network resources and put a lot of pressure on the registration center server

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
  • Micro service registration method and micro service registration system
  • Micro service registration method and micro service registration system
  • Micro service registration method and micro service registration system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0056] The embodiment of the present invention discloses a microservice registration method and system, so as to prevent the system from being paralyzed when there is a problem with the registration center server.

[0057] see figure 1 , a microservice registration method provided by an embodiment of the present invention starts a registration center on each node in the cluster, including:

[0058] S101. The registration center receives the registration request info...

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 embodiment of the invention discloses a micro service registration method and a micro service registration system, wherein one registration center is started on each node in a cluster, and the method comprises the following steps that: the registration center receives registration request information transmitted by a local micro service corresponding to the registration center, wherein a registration information carried by the registration request information comprises micro service access address information, service providing information and service consumption information; the registration center adds the registration information to a hash table of the registration center; and the registration center synchronizes the registration information of all the micro services in the local hash table to other registration centers except the registration center itself in the cluster. With the mode of starting one registration center on each node in the cluster provided by the embodiment of the invention, maintaining one highly available registration center is not necessary, and if one of the registration centers is crashed, other registration centers in the cluster cannot be affected, and risk of breakdown of system caused by crash of only one registration center is avoided effectively.

Description

technical field [0001] The present invention relates to the technical field of microservice registration, and more specifically, to a microservice registration method and system. Background technique [0002] The software architecture model of "big platform + micro-application" realizes simplified management by dismantling the "big system" into many "micro-services" and distributing them on multi-node clusters. At present, the industry mostly adopts a centralized distributed service architecture. Service providers register microservices to the registry server, and service consumers obtain the list of microservices from the registry server. Once there is a problem with the registry server, service registration and discovery cannot take effect. The whole system will be paralyzed; and all microservices register remotely with a registry server. When the number of microservices is too large, it will consume a lot of network resources and put a lot of pressure on the registry serv...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L9/06H04L29/06
CPCH04L9/0643H04L63/08H04L65/40
Inventor 王亚玲王涛王胜金逸王宝令崔蔚李春歧刘彬
Owner STATE GRID INFORMATION & TELECOMM GRP
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