How to implement redis distributed lock

Distributed lock is a way to control the synchronous access of shared resources between distributed systems. In the distributed system, they often need to coordinate their actions. If different systems or different hosts of the same system share one or a group of resources, when accessing these resources, they often need to be mutually exclusiv ...

Posted by Jeroen_nld on Fri, 10 Apr 2020 23:02:20 -0700

[Java Series 004] don't underestimate Redis distributed lock

Hello, I'm miniluo. For positions requiring distributed experience, interviewers always like to ask questions about distributed locks. Recently, I have the honor to participate in the company's interview, and I often ask about the knowledge of distributed locks. Most of the candidates' answers are more limited to using, and they have not though ...

Posted by Sekka on Sun, 05 Apr 2020 01:39:05 -0700

How to integrate Redis cluster in Spring

In the last article, I talked about--- How to build a redis cluster? Let the cluster have the capacity expansion of fragmented data memory and the high availability of sentry . Today, I'll show you how Spring integrates Redis cluster First of all, I'd like to tell you about the characteristics of segmentation and sentry: 1. The main function ...

Posted by Xoom3r on Mon, 23 Mar 2020 23:53:00 -0700

rabbitmq Series Dead Letter Queue

1. What is the Dead Letter Queue When a message becomes a dead letter in one queue, it is re publish ed to another switch, which is called a dead letter switch. A private switch delivers a dead letter to a queue, which is a dead letter queue.The principle is as follows: There are three situations when a message becomes dead letter: Message re ...

Posted by uluru75 on Sun, 22 Mar 2020 18:58:17 -0700

Redis distributed lock implementation and error case analysis

Recently, I looked at the knowledge of distributed locks. They are still used more in practice, because in the case of high concurrency, if they are not suitable for distributed locks, the data will definitely have problems, such as the problem of seconds killing commodity inventory in e-commerce pla ...

Posted by friendlylad on Mon, 16 Mar 2020 00:45:52 -0700

Flink notes: Flink data saving redis (custom Redis Sink)

This paper mainly introduces the process that Flink reads Kafka data and sinks (Sink) data to Redis in real time. Through the following link: Flink official documents , we know that the fault tolerance mechanism for saving data to Redis is at least once. So we use idempotent operation and the principle ...

Posted by quak on Wed, 19 Feb 2020 20:38:23 -0800

Redis learning note 1: redis builds a simple back end of article voting website.

Restrictions: If an article gets at least 200 support votes, it is considered to be an interesting article. If the website publishes 1000 articles every day, and 50 of them meet the requirements of interesting articles, what the website has to do is to put these 50 articles in the top 100 of the art ...

Posted by namasteaz on Wed, 15 Jan 2020 03:43:27 -0800

Spring+redis sentinel master-slave switch

Spring+redis sentinel master-slave switch (failover) redis sentinel configuration reference: http://www.cnblogs.com/yjmyzz/p/redis-sentinel-sample.html Reference for the integration of redis sentinel and spring: http://www.cnblogs.com/yjmyzz/p/integrate-redis-with-spring.html For redis object caching, please refer to the abov ...

Posted by n00b Saibot on Tue, 31 Dec 2019 10:21:24 -0800

Usage of five basic types of redis

redis storage format We all know the storage types supported by redis (String/List/Hash/Set/SortedSet), but not necessarily used in our work. I hope that through this article, we can know how to use redis in java and how to operate these data types by redis. Basic Usage Operate on redis through jedis (the Java client that ...

Posted by Rushyo on Sat, 28 Dec 2019 09:10:58 -0800

Real time log analysis by Flume+Kafka+SparkStreaming+Redis+Mysql ip access times

Novice learning, if there are mistakes, please correct, thank you! 1. Start zookeeper and kafka, and set a topic as test fkss. For the convenience of observation, I added it through kafka manager 2. Configure Flume and start it. The listening file is / home / czh / docker-public-file/testplume.log, which is sent to kafka a ...

Posted by ksduded on Sat, 14 Dec 2019 10:51:38 -0800