Distributed RPC framework_ Apache Dubbo

Evolution of software architecture The development of software architecture has experienced the evolution process from single architecture, vertical architecture, SOA architecture to micro service architecture. Let's learn about these architectures respectively. Monomer architecture Architecture description All in one Architecture advant ...

Posted by Steffen on Thu, 10 Feb 2022 20:23:00 +0100

kafka2.6.0 installation configuration

kafka installation record: Official website: http://kafka.apache.org/downloads.html 1. Download yum install -y wget wget https://mirrors.bfsu.edu.cn/apache/kafka/2.6.0/kafka_2.12-2.6.0.tgz 2. Decompression: tar -zxvf kafka_2.12-2.6.0.tgz -C /opt/ 3. Change of name mv kafka_2.12-2.6.0 kafka 4. Create files cd kafka Create un ...

Posted by juschillinnow on Thu, 10 Feb 2022 13:58:48 +0100

ZooKeeper distributed lock case

catalogue  1. Distributed lock case implemented by native Zookeeper 1) Distributed lock implementation 2) Distributed lock test 2. Case of distributed lock implemented by cursor framework 1) Problems in the development of native Java API 2) Cursor is a special framework for solving distributed locks, which solves the problem ...

Posted by sitestem on Thu, 03 Feb 2022 20:46:02 +0100

First knowledge of distributed lock: analysis of ZooKeeper distributed lock principle and practical case

First knowledge of distributed lock (II): analysis of ZooKeeper distributed lock principle and practical cases It's not easy to write. Praise and collect attention so that you can see it next time. Thank you for your support ~ Last time we talked about using Mysql database to realize distributed locking. It is relatively simple to implem ...

Posted by mattvenables on Tue, 01 Feb 2022 01:27:39 +0100

springcloud note 3 registration centers eureka, zookeeper and consumer

1, eureka 1. Server pom file Add Eureka server <!--eureka-server--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> </dependency> yaml file # eureka clusters register with each ...

Posted by angelcool on Mon, 31 Jan 2022 20:44:52 +0100

Zookeeper, the registry of microservices

Recommended reading: Java Xiaobai advanced architect learning route 1, Introduction ZooKeeper is a distributed, open-source distributed application coordination service. It is an open-source implementation of Chubby of Google and an important component of Hadoop and Hbase. It is a software that provides consistency services for distri ...

Posted by LiamProductions on Sun, 30 Jan 2022 23:11:27 +0100

Concurrent programming -- three implementation methods of distributed lock

Understanding of using distributed locks Each distributed lock has its advantages and disadvantages. In extreme cases, such as NPC, there may be wrong results and it is unsafe, as shown in the figure below (both clients think they have obtained the lock), NPC refers to Network Delay; Process Pause, Process Pause (GC) [such as JAVA GC]; Clock ...

Posted by Gump on Sat, 29 Jan 2022 04:59:24 +0100

Transaction log and snapshot files for zookeeper 07 zookeeper

We have discussed snapshots, transaction logs, and storage devices. In this section, we will discuss how to implement these functions on the file system. There are two types of data stores: transaction log files and snapshot files. Both types of files are saved to the local file system in the form of ordinary files. The transaction log is writ ...

Posted by nick1 on Tue, 25 Jan 2022 13:08:28 +0100

dubbo source code analysis 1: rpc asynchronous to synchronous

summary I haven't seen you for a long time. How are you recently? The project that has been in a hurry for a month has finally been completed. You can learn something in your spare time. Today, let's take a look at dubbo's asynchronous to synchronous. The reason for this is that there is a need for asynchronous to synchronous conversion in ...

Posted by barrowvian on Tue, 25 Jan 2022 06:33:15 +0100

Install zookeeper, kafka, druid with docker to ingest data

All data in Druid is organized into segments, which are data files, usually up to millions of rows per segment. Loading data in Druid is called ingestion and includes reading data from the source system and creating segments based on that data. In most ingestion methods, loading data is done by the MiddleManager process. Druid data is stor ...

Posted by jmcc on Sat, 22 Jan 2022 06:30:48 +0100