Data consistency method for distributed service discovery cluster in micro-service architecture

A distributed service and service discovery technology, applied in the field of distributed service discovery cluster, can solve problems such as difficulty in implementation and difficult to meet real-time requirements of services, and achieve the effect of strong real-time performance, data consistency, and simple method.

Active Publication Date: 2020-01-07
江阴逐日信息科技有限公司
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there is currently no distributed consensus algorithm that is effective for service discovery. It is difficult to implement these algorithms directly and it is difficult to meet the real-time requirements of service discovery.

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
  • Data consistency method for distributed service discovery cluster in micro-service architecture
  • Data consistency method for distributed service discovery cluster in micro-service architecture
  • Data consistency method for distributed service discovery cluster in micro-service architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0027] Such as figure 1 and 2 As shown, this embodiment provides a data consistency method for a distributed service discovery cluster in a microservice architecture, which includes the following steps:

[0028] When the client-side service instance starts, choose a service discovery node from the service discovery node cluster as the leade...

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 data consistency method for a distributed service discovery cluster in a micro-service architecture. The method comprises the following steps: when a service instance of a client is started, any one service discovery node is selected from the service discovery node cluster as a Leader node for connection; sending the own service information to the Leader node; other service discovery nodes in the service discovery node cluster are used as Flower nodes; wherein the service information comprises a service name, an IP address, a port number, a service instance current state, a service instance data type, a Leader node ID, a data version number, time for writing data into a certain service discovery node, time for writing the data into a service discovery node clusterand a state whether the data is submitted or not; the Leader node stores the service information in a tree structure; and the Leader node copies the service information to other Folower nodes.

Description

technical field [0001] The present invention relates to the field of distributed service discovery cluster technology in microservice architecture, in particular to a data consistency method for distributed service discovery cluster in microservice architecture, which simplifies the algorithm while ensuring the data consistency of cluster nodes by improving the Raft algorithm process. Background technique [0002] Since its introduction, the microservice architecture has been favored by system designers because of its good flexibility and scalability, and has gradually become a mainstream solution in the design of enterprise-level information system architecture. Service discovery is one of the core components of the microservice architecture, and its high availability has become an important factor affecting the overall stability of the entire microservice architecture. Single-point deployment of service discovery will not only bring about performance bottlenecks, but may ...

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): H04L29/08H04L12/26
CPCH04L67/10H04L67/1095H04L43/10H04L67/51
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