Redis Chapter 4 distributed lock principle + native implementation code
Redis Chapter 4 implementation of distribution lock and Lua script + native code implementation
In the previous article, redistribute was introduced. The application of redistributed in distributed locks is very simple and convenient, but redistribute itself is a encapsulated framework. In this section, we explore the implementation of Redis's ...
Added by bothwell on Mon, 31 Jan 2022 21:44:49 +0200
[RabbitMQ] message response -- ack mechanism
catalogue
Message response
concept
Automatic response
Method of message response
Multiple explanation
Manual response implementation
1. Prepare tools
2. Producers
3. Two consumers with different sleep time
4. Effect display
Messages automatically rejoin the queue
Effect demonstration:
Message response
concept
It may take some ...
Added by Blockis on Mon, 31 Jan 2022 12:00:41 +0200
Source code analysis of Offset management module OffsetManager of Kafka
Inside Kafka, there is a__ consumer_ The topic of offsets. This topic mainly saves the offset of each consumption group to the consumption of the partition under the topic, that is, to which offset it is consumed. In order to realize the function of offset management of consumption group, when a consumer obtains a message, it is necessary for t ...
Added by Braveheart on Sun, 30 Jan 2022 20:57:22 +0200
High availability of RabbitMQ cluster for beginners
RabbitMQ cluster
rabbitmq has three modes, but the cluster mode is two.
As follows: the first mock exam is that single machine does not cluster, and runs rabbitmq alone. I've been using it before
Normal mode: the default mode. Take two nodes (A and B) as an example When the message enters the Queue of node A and the consumer consumes from ...
Added by webrajesh on Sun, 30 Jan 2022 02:55:01 +0200
[ZStack] automatic test system 3 -- model-based test
Model testing system is a sub project of ZStack woodpecker. Through the finite state machine and behavior selection strategy, it can generate random API operations and run until a defect or predefined exit condition is encountered. ZStack relies on model testing to test boundary use cases that are difficult to meet in the real world, and comple ...
Added by s_shrum on Sat, 29 Jan 2022 15:02:06 +0200
Microservice 5: service registration and discovery (practice)
★ micro service series
Microservices 1: microservices and its evolution history
Microservice 2: microservice panoramic architecture
Microservice 3: microservice splitting strategy
Microservice 4: service registration and discovery
Microservice 5: service registration and discovery (practice)
1 service registry
Previously, we introduced several ...
Added by evanluke on Sat, 29 Jan 2022 08:28:17 +0200
Maven has a variety of fancy builds, and can print executable Jar packages without SpringBoot
The packaged plug-in of Spring Boot is very cool to use. It can directly type the source code and all dependencies into a Jar package, and it can also run directly in Java Jar. What if a non Spring Boot project wants to make an executable Jar package?
Don't panic, Maven is an old building tool. It's not easy to get this done!
Here a ...
Added by crunchyfroggie on Fri, 28 Jan 2022 04:42:37 +0200
Microservice architecture | 4.1 detailed explanation of Ribbon based load balancing
preface
reference material: <Spring Microservices in Action> Principle and practice of Spring Cloud Alibaba microservice "Spring cloud framework development tutorial in Silicon Valley of station B" Zhou Yang
Spring Cloud Ribbon is a set of client-side load balancing tools based on Netflix Ribbon; Provide the software loa ...
Added by watsonowen on Thu, 27 Jan 2022 18:56:19 +0200
Configuration and implementation of Spring Cloud Sleuth distributed link request tracking
1, What is Sleuth distributed link request tracking
Official website: https://github.com/spring-cloud/spring-cloud-sleuth
In the microservice framework, a request initiated by the client will be called by multiple different service nodes in the back-end system to produce the final request result. Each request will form a complex distribut ...
Added by noobcody on Thu, 27 Jan 2022 18:54:08 +0200
elasticsearch combined with canal to build master-slave replication architecture and integrate the actual battle of canal
catalogue
preface
Build canal
preface
Previously, we have built elasticsearch and elasticsearch head and integrated spring data elasticsearch. The following is the need to use canal to connect mysql and elasticsearch in series.
Build canal
First, we go to GitHub to find the warehouse of canal, and we can see the working principle of ca ...
Added by rgpayne on Thu, 27 Jan 2022 10:37:27 +0200