Distributed micro-service registration and calling method based on broadcast

A microservice and distributed technology, applied in the field of information processing, can solve the problems of low system stability and reliability, unavailability, short microservices, etc., to improve business processing capabilities, improve work efficiency, and achieve consistency. Effect

Active Publication Date: 2020-09-01
OCEAN UNIV OF CHINA
View PDF11 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The main problem faced by the existing registration and invocation mechanism of microservices using centralized nodes is: once the registration center serving as the central node fails, all microservices connected to the central node will be unavailable. Therefore, the entire The stability and reliability of the system are not high
However, this master node election mechanism will cause short-term unavailability of microservices during the re-election of the master node, and the fault tolerance of the system is not high

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
  • Distributed micro-service registration and calling method based on broadcast
  • Distributed micro-service registration and calling method based on broadcast
  • Distributed micro-service registration and calling method based on broadcast

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0038] In this embodiment, distributed deployment is adopted for the registration center, and the registration center and load balancer are respectively deployed on all hosts deployed with microservices, so that each host is both a server and a client. Configure each host to use the UDP-based message broadcast mechanism to broadcast microservice registration and invocation information in the network, so as to realize self-registration and self-discovery of microservices on each registration center.

[0039] In this embodiment, the host may be a container, a virtual machine, a physical host, or the like.

[0040] Combine below Figure 2-Figure 5 , detailing the specific workflow of the broadcast-based distributed microservice registration and invoking method of this embodiment.

[0041] (1) Broadcast registration of microservices

[0042] Such...

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 distributed micro-service registration and calling method based on broadcast. The method comprises the following steps that a registration center is registered in each host deployed with micro-service; when a new micro-service is registered in a certain host, the host sends a registration broadcast to the network to notify other hosts in the network to update the micro-service list in the registration center; when a caller calls the micro-service, the caller initiates a query broadcast to the network; the host deployed with the homonymous micro-service initiates a response to the network, and provides the current load condition of the host and the deployed micro-service information; and after receiving the response, the caller selects a proper host through the load balancer according to the current load conditions of different hosts, transmits a request parameter to the selected host, and calls the micro-service. According to the invention, a distributed and decentralized micro-service registration mechanism is adopted, so that registration and calling of other micro-services are not influenced after one registration node is offline due to a fault, and theavailability of the micro-services is improved.

Description

technical field [0001] The invention belongs to the technical field of information processing, and in particular relates to a method for registering and invoking microservices. Background technique [0002] Microservice architecture is the main architecture of large-scale distributed systems. The form of microservice architecture is to decouple large single application by decomposing functions into discrete microservices. The advantage is that a large single Applications and services are split into several or even dozens of tiny application components (microservices). During application development and maintenance, application components can be developed separately to speed up the development process. [0003] Under the microservice architecture, the registration center is required to provide the discovery function of microservices, that is, to tell the caller which microservices are currently available for calling. At present, the registration center under the microservice...

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): H04W4/06H04W28/08H04W60/00H04L29/08
CPCH04W4/06H04W28/08H04W60/00H04L67/10H04L67/51
Inventor 侯瑞春周志明陶冶石硕于树松宫会丽丁香乾孟宇
Owner OCEAN UNIV OF CHINA
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