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 (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
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.
Operate on redis through jedis (the Java client that ...
Posted by Rushyo on Sat, 28 Dec 2019 09:10:58 -0800
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
Posted by ksduded on Sat, 14 Dec 2019 10:51:38 -0800
Read write separation of redis cluster
1. Cluster deployment
In this article, we will not elaborate on how to deploy the master-slave cluster. In general, slaveOf configuration is used for initialization configuration.
2. Integrating with springboot to realize read-write separation
The call layer read-write separation is realized by annotatio ...
Posted by lunarul on Tue, 10 Dec 2019 22:34:33 -0800
Copyright notice: This is the original article of the blogger. It can't be reproduced without the permission of the blogger. Welcome to my blog https://blog.csdn.net/smooth00/article/details/72843748
1. Create a new script in loadrunner (take loadrunner 11 as an example in this paper). The protoco ...
Posted by ccalzaretta on Tue, 10 Dec 2019 16:50:46 -0800
We know that in the process of Java programming, if external resources (file, database connection, network connection, redis, etc.) are opened, we must manually close these external resources after they are used.
Because the external resources are not managed by the JVM, we can't enjoy the garbage collection mechanism of the JVM. If we don't ma ...
Posted by bladecatcher on Tue, 10 Dec 2019 16:08:38 -0800
Today, I learned about Jedis, and then I made a case, but there was a mistake, and then I Baidu didn't solve it all night. I thought to see if I could have a big guy to help me see where the problem was. Baidu was a bit confused all night. Please help me out. I want to thank you very much in this place. Let's see. Thank you~
Here are the case r ...
Posted by Loafin on Mon, 09 Dec 2019 20:13:50 -0800
First, we will create a RedisPool class in our project
The code is as follows:
* @author Chakid
* @since 2018-10-30 20:15
public class RedisP ...
Posted by Virii on Mon, 09 Dec 2019 11:21:05 -0800
Reference link: https://www.cnblogs.com/linjiqin/p/8003838.html
There are three ways to implement distributed lock: 1. Optimistic database lock; 2. redis based; 3. zookeeper based.
redis server is a single thread operation, which perfectly avoids the problem of multithreading synchronization and realizes atomicity.
First of all, ...
Posted by freshrod on Sat, 07 Dec 2019 12:19:12 -0800