spring boot integrated redis

It is convenient to integrate common NO SQL with Springboot following the principle of "convention is greater than configuration". This example makes a simple demo with redis, using Redis's set and get commands. Introduce dependency packages for redis. <dependency> <groupId>or ...

Posted on Sun, 05 Jul 2020 12:08:07 -0400 by TLawrence

009 - generation method of distributed ID

effect Unique identification of data and information in distributed cluster system target Global uniqueness: duplicate ID number is not allowed. Since it is the only identification, this is the most basic requirement. Trend increasing: in MySQL InnoDB engine, clustered index is used. Because most ...

Posted on Sun, 28 Jun 2020 01:06:53 -0400 by plzhelpme

Redis series - bloon filter

When we use Redis as cache, one of the problems we need to consider is cache penetration. There are many types of cache penetration, and different types have different solutions. As one of the solutions, the bloon filter is used. The bloom filter is mainly used to determine whether an element is contai ...

Posted on Sat, 27 Jun 2020 02:42:46 -0400 by methodlessman

Sensitive word filtering: AOP + annotation + DFA algorithm

preface In terms of sensitive word filtering, we should say that it's big or small. Generally legal users will not have a big problem, but some illegal users deliberately engage in your business, it is not very friendly! After all, now the network is so developed, what matters to the Internet, the im ...

Posted on Fri, 26 Jun 2020 21:22:22 -0400 by jasonbullard

Super detailed construction of Redis cluster under Linux (centos7)

This blog is based on the single node installation of redis. If you have not installed a single node small partner, please refer to this blog: https://blog.csdn.net/weixin_44422604/article/details/106876756 1, Building a redis cluster (cache cluster) 1. The redis on node1 has been installed. Now, stop ...

Posted on Thu, 25 Jun 2020 01:52:30 -0400 by Spaceman-Spiff

Deploy enterprise's own Docker Hub mirror accelerator

background Docker Hub sometimes encounters difficulties in retrieving mirrors in China. Generally, the network is slow and takes a long time. It is very likely that the connection is broken and the mirror cannot be pulled out.At this point, you can configure the Mirror Accelerator.Many cloud service ...

Posted on Tue, 23 Jun 2020 21:22:27 -0400 by radarhill

Duplicate submissions, how do you handle them?

This morning, a new colleague, Xiao Wang, suddenly asked me, "What is idempotency, Zhou Ge?"Then I explained to him that idempotency means that no matter how many requests you make, the result will be the same.When it comes to idempotency, you have to repeat the submission button. In theory, this is the same data. The database should ...

Posted on Tue, 23 Jun 2020 21:12:08 -0400 by mania

RabbitMQ: RabbitMQ delay queue, message delay push

Application scenario At present, the common application software has the shadow of message delay push, which is also widely used, for example: Taobao automatically confirms the receipt within seven days. After we sign in the goods, the logistics system will delay sending a message to the payment syst ...

Posted on Tue, 23 Jun 2020 06:10:01 -0400 by anish

Server side rendering Next project summary

preface Github address Welcome to check and learn together, progress together, another star refill~ In this paper, I refer to Mr. jokcy's React16.8+Next.js+Koa2 development of Github full stack project , record for later learning. 🙂 introduce Next.js It is a lightweight rendering application fram ...

Posted on Mon, 22 Jun 2020 23:32:00 -0400 by p2003morris

Redis getting started - Jedis operating redis

This article mainly introduces the use of redis command line, the software version used: Java 1.8.0_191,Redis 5.0.8,Jedis 3.3.0. 1. Introduce dependency <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>3.3.0</version> </dependency> 2. Basic opera ...

Posted on Fri, 19 Jun 2020 22:43:17 -0400 by bsamson