Redis or Zookeeper for distributed locks?

Why use distributed locks? Before discussing this issue, let's take a look at a business scenario: System A is an e-commerce system. At present, it is deployed on A machine. There is an interface for users to place orders. However, users must check the inventory before placing orders to ensure that the inventory is sufficient. Because the sy ...

Posted on Sun, 05 Dec 2021 08:54:30 -0500 by sean paul

See how FusionInsight Spark supports the multi instance feature of JDBC server

Absrtact: the HA scheme with multi master instance mode can not only avoid the problem of service interruption during active / standby switching and realize no or less service interruption, but also improve the concurrency ability by horizontally expanding the cluster. This article is shared from Huawei cloud community< FusionInsight Spar ...

Posted on Wed, 01 Dec 2021 12:47:39 -0500 by lurius

Use the package officially provided by Zookeeper for zk server connection and circular monitoring

1. Code examples and explain running phenomena 1.1. Introduce the corresponding jar package <dependency> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> <version>3.7.0</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.c ...

Posted on Mon, 29 Nov 2021 13:00:44 -0500 by Liquidedust

Maven, Redis, and Kafka installation and configuration

Maven installation and configuration 1, Download and install go to https://Download the latest version of Maven at maven.apache.org/download.cgi 2, Custom storage directory Extract the file to D:\Program Files\Apache\maven directory 3, Environment variable configuration New environment variable MAVEN_HOME, assignment D:\Program Files\A ...

Posted on Mon, 29 Nov 2021 03:57:45 -0500 by Sarok

ZooKeeper cluster deployment

I. Experimental objectives (1) Learn about ZooKeeper distributed application coordination services. (2) Use three machines to build a ZooKeeper cluster. (3) Use ZooKeeper cluster. II. Experimental analysis 2.1 planning nodes IP host name node 192.168.32.140 zookeeper1 Cluster node 192.168.32.141 zookeeper2 Cluster node 192.168.32.142 ...

Posted on Fri, 26 Nov 2021 01:37:16 -0500 by mcl

7. Hadoop3.3.1 HA High Availability Cluster QJM (based on Zookeeper, NameNode High Availability + Yarn High Availability)

Previous 1. CentOS7 hadoop3.3.1 Installation (single machine distributed, pseudo distributed, distributed)2. Implementation of HDFS by JAVA API3. MapReduce programming examplesIV. Zookeeper3.7 Installation5. Shell operation of Zookeeper6. Java API Operations zookeeper Node) Setup of Hadoop3.3.1 HA High Availability Cluster (NameNode High ...

Posted on Mon, 22 Nov 2021 20:33:21 -0500 by Hendricus

Hard Steel Spring Source-50,000 Words Comb Spring Core Principles

Preface Learn technology, not only to understand the principles, but also to be good at summarizing, but also to learn to apply, only in this way, you can become a true master. Say nothing but go straight to dry! Spring Core Interfaces and Classes The spring framework solves a very critical problem that allows you to manage the ...

Posted on Sat, 20 Nov 2021 15:08:51 -0500 by paragkalra

Zookeeper source code analysis - Leader node election process

preface: The above analyzes the main process of starting in Zookeeper cluster mode, one of which is the election of Leader nodes. Since all transaction type requests in Zookeeper are executed by the Leader node, Leader election is very important. This paper will look at the timing and execution process of Leader election. 1. Role of zookee ...

Posted on Sat, 30 Oct 2021 19:59:41 -0400 by wstran

02_Eureka service registration and discovery, Zookeeper service registration and discovery

3. Eureka service registration and discovery Global brain map structure 3.1 Eureka Basics 3.1.1 what is service governance What is service governance Spring Cloud encapsulates the Eureka module developed by Netflix to realize service governance In the traditional rpc remote invocation framework, it is complex to manage the depende ...

Posted on Wed, 20 Oct 2021 00:50:41 -0400 by forcer

Introduction to registry -- zookeeper analysis

The above articles introduce the knowledge related to RPC calls. This time, let's learn about the principle and practice of the registry. We mainly introduce from the following aspects: Function and design analysis of Registration CenterOpen source registry selectionIn depth analysis of Nacos registryIn depth analysis of Zookeeper implementati ...

Posted on Mon, 11 Oct 2021 18:49:49 -0400 by gordo2dope