A brief introduction to ZooKeeper (1)

I have never used ZooKeeper before. With reference to this blog post, we will briefly introduce what ZooKeeper is, how to download and install ZooKeeper, and the overall overview of ZooKeeper. They will serve as searchlights in the dark to indicate our direction.

Introduction

Let's take a look at ZooKeeper's official website: https://zookeeper.apache.org/

ZooKeeper is an open-source distributed coordination service created by Yahoo and an open-source implementation of Google. ZooKeeper is a high-performance distributed data consistency solution. It encapsulates those complex and error-prone distributed consistency services to form an efficient and reliable primitive set, and provides a series of easy-to-use interfaces to user use.

download link

ZooKeeper download address: http://mirror.bit.edu.cn/apache/zookeeper/

For learning ZooKeeper, we can download its latest stable version: zookeeper-3.4.8.tar.gz, download it and extract it directly to the corresponding path.

Typical application scenarios

  1. Cluster maintenance (master election)
  2. Configuration management (publishing and subscribing of data)
  3. Distributed lock
  4. Distributed queue
  5. naming service

For these contents, we will introduce them in detail later, so I won't say much here.

Advantage

  1. Open source code 
    We can learn more about ZooKeeper through the source code of ZooKeeper, expand the function of response and combine with our own projects, and continuously improve our capabilities.
  2. It is a distributed coordination service that solves the problem of distributed data consistency 
    1. sequential consistency
    2. atomicity
    3. single view
    4. reliability
    5. real-time
  3. high performance
  4. We can solve some practical problems in distributed applications by calling the interface provided by zookeeper

Overview of ZooKeeper

write picture description here

Summarize

This article is here today, and we have an understanding of zookeeper as a whole. In the next blog, we will introduce the basic concepts of zookeeper in detail.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325748396&siteId=291194637