Tags: [advanced] [Redis] [ZooKeeper]
What is the difference between redis distributed locks and zk distributed locks?
This question has high requirements for the interviewer. It should not only understand the implementation method, but also master the principle. So the answer to the question is divided into many levels ...
Posted by alvinchua on Wed, 09 Feb 2022 13:55:27 +0100
In the era of WebServer, Jedis direct connection is mostly used in the code to operate Redis server, so people will package a tool class in the project for Jedis. However, in the era of microservice integration SpringBoot, letstructure (underlying Netty, NIO mode) is used. We only need to pay attention to the use of RedisTemplate, but there are ...
Posted by suvarthi on Tue, 08 Feb 2022 03:35:51 +0100
redis silver I
To make a digression, recently, the epidemic situation in the capital of China is very serious. We are all in the current of the times. This is not for individuals. I hope you can protect yourself and have fun every day.
Statement: refer to the Internet, and leave a message if there is any dispute. Standing on the s ...
Posted by Stanley90 on Thu, 25 Jun 2020 11:19:57 +0200
Five basic types of Redis
Note: Note arrangement source: B station UP master maniac said Java
Official document: Redis is an open source (BSD licensed) in memory data structure storage system, which can be used as database, cache and message middleware.
It supports many types of data structures, such ...
Posted by pplexr on Mon, 22 Jun 2020 10:19:45 +0200
Foreword: When we need to operate on redis, we need to start the redis-server service first, then start the redis-cli client to connect to the redis server to operate on it, or we can connect redis directly with the visual operation tool to operate on it.But what should we do if we need java programs to ...
Posted by boonika on Thu, 11 Jun 2020 18:11:27 +0200
The company has a piece of business that needs to run the timer business to process data. Background uses springBoot to develop, springBoot integration timer task is very simple, use
Scheduled is configured to use cron, and a business is executed 45 minutes per hour, because the background is cluster deployed, and the front end is respon ...
Linux Installation of Redis
1. Preparing the installation package
2. Unzip the installation packagetar zxvf redis-5.0.5.tar.gz
3. Enter the folder you just unzipped and enter the make command
4. After waiting for the above process to complete, enter the make install command
5. Run. / Redis server under the redis/src / folder to start Redis
Posted by Bob_PHP_Builder on Sat, 09 May 2020 19:12:10 +0200
redis is a key value storage system. Similar to Memcached, it supports more value types, including string, list, set, Zset and hash. In the actual work, the data needs to be stored in the form of objects, and the implementation is as follows:
For redis configuration, please refer to http://blog.csdn.net/leo187/article/details/78704811
Posted by endersix on Mon, 04 May 2020 17:53:44 +0200
Now, the microservice projects developed use more distributed locks, so some records are made for the self-determined implementation of distributed locks.*In the actual project, you can use the RLock lock of the Redisson framework directly.
Create a springboot redis project springboot-redis-demo
Add dependency package
Posted by dionsweet on Tue, 28 Apr 2020 16:15:39 +0200
The scene of students choosing courses is similar to that of buying train tickets. Baidu summed up four ways
1. Thread lock. With synchronized, the performance drops sharply.
java itself is multithreaded. It's not a wise choice to use it as a single thread.
At the same time, if you add synchronized to distributed deployment, you cannot control ...
Posted by phonydream on Thu, 23 Apr 2020 18:07:48 +0200