Redis from entry to mastery (VIII. Redis cluster)

This article introduces the Redis Cluster cluster, and briefly introduces the implementation of the cluster. It is mainly a specific practical part: cluster startup, failover, adding nodes, removing nodes Basic concepts of Redis cluster Redis's cluster mode provides data fragmentation and ensures the availability of each partition. Each node of ...

Added by jdorsch on Thu, 25 Jun 2020 14:10:22 +0300

Using Redis to implement the cut-to-program operation

This project is a Spring boot project Redis Cutting Programming Target: Add a comment to the method to cache when querying Method: Custom Note+AOP Section Programming step Say nothing but go directly to the code demonstration Step One Definition Notes @Retention(RetentionPolicy.RUNTIME) @Target( ...

Added by Bad HAL 9000 on Tue, 23 Jun 2020 05:27:47 +0300

Detailed explanation of Docker Dockerfile instructions and practical cases

Dockerfile introduces and commonly used instructions, including FROM, RUN, COPY, ADD, EXPOSE, WORKDIR, etc. in fact, dockerfile has powerful functions and provides more than ten instructions.   About Dockerfile Dockerfile is a text file used to build an image. The text content contains instructions and instructions required to build an image. ...

Added by programguru on Sun, 21 Jun 2020 11:49:45 +0300

MyBlog background development

Java back end interface and Vue front end 1. See the effect first publish an article Background login Blog details Java back end interface development: Using springboot+mybaitsPlus+shiro+jwt+lombok+redis; database mysql5.7+ Here, we use IDEA to develop the background interface. It's easy to create a ...

Added by sergio-pro on Sat, 20 Jun 2020 10:11:20 +0300

Redis deep adventure application

Article catalog install Infrastructure string set Quotation marks Options lock obtain release exists expire System clock Various key operations Expiration algorithm colony list quicklist rpush rpop lpop lpush lindex lrange ltrim llen blpop brpop hash set zset zrange zrevrange zcard Curren ...

Added by ralba1998 on Thu, 18 Jun 2020 06:11:24 +0300

How to Design High Performance Distributed Locks

What is a distributed lock? In a JVM, where multiple threads are concurrent, we can use synchronous or Lock locks to ensure that only one thread can modify shared variables or execute code blocks at a time.However, our services are deployed on a distributed cluster basis, and for some shared resources, the use of Java locks in a distributed en ...

Added by gersh on Wed, 17 Jun 2020 19:51:19 +0300

Method of Using Redis to Count Web UV s

Article Directory Preface thinking HyperLogLog Use Redis command action Working with Java code The Principle and Feature of HyperLog Implementation Implement HyperLog using Java Summary Preface Web site UV refers to the amount of Unique Visitor visited by independent users of a Web site, that ...

Added by BlueSkyIS on Tue, 16 Jun 2020 03:56:18 +0300

Distributed Lock+Redis for Cluster Business Data Caching

Article Directory Distributed Lock 1. Distributed Lock Implementation 2. Distributed Lock Using redis Learning optimization summary Problems in the redis cluster state: Solving distributed locks using redisson 1. Import dependent service-util 2. Configure redisson Reentrant Lock Test Code Dis ...

Added by dev99 on Wed, 10 Jun 2020 19:17:31 +0300

spring session + redis to realize distributed session

introduction In general, in order to solve a single point of failure, web applications in the production environment will be deployed on multiple platforms, so there will be a problem. When we log in, we will store the login information in the session. If we rely on the session in the native web con ...

Added by mouloud2001 on Tue, 09 Jun 2020 05:20:25 +0300

Simple use of redis distributed lock

RedisLock -- make Redis distributed lock simple catalog 1. Project introduction 2. Fast use 2.1 introducing maven coordinates 2.2 register RedisLock 2.3 use 3. Participation and contribution 4. Contact the author 5. Open source protocol 1. Project introduction This project mainly simplifies the operation of redis distributed transact ...

Added by work_it_work on Sat, 06 Jun 2020 05:57:21 +0300