NOTE

ZooKeeper Overview

What ZooKeeper is, how to install and use it, its core principles, source-code analysis, and references.

ZooKeeperCreated Updated 1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

1. What Is ZooKeeper

  • It is a distributed coordination service framework that provides distributed data-consistency solutions.
    • The consistency here refers to CP in CAP.md. ZooKeeper guarantees eventual consistency, so more precisely, ZooKeeper is actually based on BASE theory.
  • It is mainly used to solve data-management problems commonly encountered in distributed applications. It can be used for scenarios such as distributed locks, service registries, and cluster high availability (master election).

2. ZooKeeper Installation

ZooKeeper Installation.md

3. ZooKeeper Usage

ZooKeeper Master Election.md ZooKeeper Distributed Lock.md ZooKeeper Service Registry.md

4. ZooKeeper Principles

4.1. File System

File System.md

4.2. Node Characteristics

Node Characteristics.md

4.3. Event-Watching Mechanism

ZooKeeper Watcher Principles.md

4.4. ZAB Protocol

ZAB Protocol.md

5. ZooKeeper Source-Code Analysis

Compiling and Starting ZooKeeper Source Code.md

6. References

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub