Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data Consistency Method for Distributed Service Discovery Cluster in Microservice Architecture

A distributed service and service discovery technology, applied in the field of distributed service discovery clusters, can solve problems such as difficult to meet real-time service requirements and difficult implementation, and achieve data consistency, strong real-time performance, and simple methods

Active Publication Date: 2022-05-20
江阴逐日信息科技有限公司
View PDF5 Cites 0 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 Microservice Architecture
  • Data Consistency Method for Distributed Service Discovery Cluster in Microservice Architecture
  • Data Consistency Method for Distributed Service Discovery Cluster in Microservice 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 microservice architecture, which includes the following steps: when a client service instance starts up, select a service discovery node from the service discovery node cluster as a Leader node Make a connection and send your own service information to the Leader node. Other service discovery nodes in the service discovery node cluster serve as Follower nodes. The service information includes service name, IP address, port number, current status of the service instance, data type of the service instance, and Leader node. Node ID, data version number, the time when data is written to a service discovery node, the time when data is written to the service discovery node cluster, and whether the data is submitted; the Leader node stores service information in a tree structure; the Leader node copies the service information to other Follower 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 Patents(China)
IPC IPC(8): H04L67/51H04L67/10H04L67/1095H04L43/10
CPCH04L67/10H04L67/1095H04L43/10H04L67/51
Inventor 王伟张文毅
Owner 江阴逐日信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products