What is Apache ZooKeeper?

Source: Internet
Author: User
Tags zookeeper

Apache Zookeeper is a service that is used by clusters (node groups) to coordinate between themselves and to maintain shared data through robust synchronization techniques. Zookeeper itself is a distributed application that provides services for writing to distributed applications.

The common services provided by zookeeper are as follows:

    • Naming Service -Identifies the nodes in the cluster by name. It is similar to DNS, but only for nodes.

    • Configuration Management -joins the latest and most recent system configuration information for the node.

    • Cluster Management -join/Leave nodes in the cluster and node state in real time.

    • election algorithm -election of a node as a leader for coordination purposes.

    • Lock and Sync service -locks data while modifying data. This mechanism helps you perform automatic failback when connecting to other distributed applications, such as Apache HBase.

    • highly reliable Data registry -data can be obtained even when one or several nodes are closed.

Distributed applications offer a number of benefits, but they also throw up some complex and difficult-to-solve challenges. The Zookeeper framework provides a complete mechanism to overcome all challenges. Race conditions and deadlocks are handled using the fail-Safe synchronization method . Another major drawback is the inconsistency of data, zookeeper using atomic parsing.

Benefits of Zookeeper

The following are the benefits of using zookeeper:

    • A simple distributed coordination process

    • Synchronization -the mutual exclusion and collaboration between server processes. This process helps Apache hbase with configuration management.

    • An orderly message

    • serialization -encodes the data according to a specific rule. Ensure that the application runs consistently. This method can be used in mapreduce to coordinate the queue to execute a running thread.

    • Reliability

    • atomicity -The data transfer is completely successful or fails completely, but no transaction is part.

What is Apache ZooKeeper?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.