ZooKeeper-based distributed service state consistency maintenance method and device
A distributed service and consistent technology, applied in the computer field, can solve problems such as insufficient performance, fault tolerance, and scalability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] Such as figure 1 As shown, the present invention is realized by the following technical solutions: a distributed service state consistency maintenance method based on ZooKeeper, which is mainly divided into two parts:
[0056] The task of the first part is to build and maintain the persistent nodes in the global data space of the ZooKeeper cluster, which is used to save the basic information of the developed services in the service integration framework system, including the following steps:
[0057] (1) The service registry creates the root node services of the global data space on the ZooKeeper cluster;
[0058] (2) When performing the service registration operation, the service registration center creates corresponding persistent nodes under the root node according to the service namespace, version number and other information: namespace nodes seu and sat; service name node Radar under the namespace node seu , the service name node Sonar under the namespace node sat...
Embodiment 2
[0064] Such as figure 2 The process shown is composed of service registry, service consumer and service instance. The service registry creates persistent nodes and maintains basic information of services. Service providers and service consumers create temporary nodes to maintain the survival status of service providers and service consumers. The whole process starts with service registration.
[0065] exist figure 2 In the running process of the shown embodiment, a service named Radar already exists in the original system, and there are two service versions 1.0 and 2.0, and the 1.0 version service named Sonar is registered in the sat namespace of the ZooKeeper global data space under the node. Or, since there is no service with the same name as the service Sonar under the seu namespace node, it can also be registered under the seu namespace node.
Embodiment 3
[0067] Such as image 3 In the running process shown, two service providers of version 2.0 of the Radar service are first run, and the service consumer sid is bound to the service provider Radar 1. After the Radar 1 service is shut down, the temporary node in the ZooKeeper global data space is deleted, and the service consumer is rebound to the service provider Radar 2.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com