Play Redis - Introduction to Redis

Play Redis - Introduction to Redis Introduction to Redis 1. Overview of Redis 2. Redis usage scenarios 3. Basic Types Four SpringBoot Integrated Redis (1) Introducing dependencies (2) yml configuration (3) Injection Template starts (4) Write Config classes (5) Writing service classes Introdu ...

Posted on Thu, 04 Jun 2020 11:54:06 -0700 by ~J~R~R

Redis-based Distributed Lock Implementation

Preface This article focuses on how Redis-based distributed locking is implemented. It refers to a number of articles written by big guys and summarizes distributed locking. Overview of Distributed Locks In a multithreaded environment, in order to ensure that a block of code can only be accessed by one thread at a time, we can usua ...

Posted on Thu, 28 May 2020 17:50:56 -0700 by outsidaz

About Laravel ORM caching the Model::find method

When working on a project some time ago, you want to cache the Model::find method without changing the method signature. And want to be plug and play. 1. First, let's see what the framework does when we call the find method? Find the code of Illuminate\Database\Eloquent\Model, search find, there is no such method. It seems to be leaving__ Call ...

Posted on Wed, 27 May 2020 07:12:29 -0700 by stanleybb

Using redis exporter to monitor the performance of redis cluster

There are three modes of redis cluster: master-slave, sentinel and cluster. About the introduction and deployment of these three modes, other articles also have related introduction. I have completed the deployment of the three modes with reference to other blogs, and the blog address is in the comment area.At present, redis uses the master-sl ...

Posted on Tue, 26 May 2020 04:52:09 -0700 by rawb

JVM in-depth understanding - memory tuning and GC logging

CPU Tall Analysis Generally available ps -Lfp pid ps -mp pid -o THREAD, tid, time top -Hp pid [root@redis webapps]# top -Hp 22272 top - 10:09:30 up 9 days, 22:10, 1 user, load average: 0.00, 0.00, 0.00 Tasks: 30 total, 0 running, 30 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, ...

Posted on Sun, 24 May 2020 17:24:29 -0700 by hubbardude

Analysis of Redis master-slave replication

How does Redis master-slave replication work? Do you know how to keep high performance while synchronizing data? https://redis.io/topics/replication Note that based on the latest version of redis 5, the slave term and configuration item have been officially changed to replica. In fact, they refer to slave nodes. Basic process of master- ...

Posted on Thu, 21 May 2020 03:19:07 -0700 by sri.sjc

Redis High Availability Cluster Practice

1. Environmental Instructions redis version: Redis-5.0.8System version: Redhat6.8 Host IP redispri1 110.50.1.55 redispri2 110.50.1.56 redispri3 110.50.1.57 redisbck1 110.50.1.57 redisbck2 110.50.1.59 redisbck3 110.50.1.60 2. Build a redis highly available cluster Each node closes NetworkManager, selinux=disable # /etc/init.d ...

Posted on Mon, 18 May 2020 09:34:46 -0700 by kansaschuck

Kong extends jwt plug-in to add blacklist verification

Kong Jwt plugin with blacklist extend Official jwt plug-in , keep token expiration and signature verification, add query redis blacklist database according to jti, and implement forced offline. Extended functions Optimize the configuration parameters, delete the token obtained from cookie, support the token obtained from url and header, ...

Posted on Fri, 15 May 2020 07:15:22 -0700 by Consolas

Multi dimensional current limiting of gateway

github https://github.com/marcosbarbero/spring-cloud-zuul-ratelimit Spring cloud zuul ratelimit description Spring cloud zuul ratelimit is an extension of distributed current limiting strategy integrated with zuul Restrict the flow of the requested target URL (for example, how many times a URL can be called per minute) Restrict the ...

Posted on Thu, 14 May 2020 01:25:46 -0700 by visonardo

Java fresh e-commerce platform - API interface in fresh e-commerce to prevent parameter tampering and replay attacks (Applet / APP)

Java fresh e-commerce platform - API interface in fresh e-commerce to prevent parameter tampering and replay attacks (Applet / APP) Note: at present, all the system architectures are based on the system architecture of front-end and back-end separation, so it is impossible to avoid the need for services to provide external API, so how to ensure ...

Posted on Wed, 13 May 2020 19:18:08 -0700 by El Ornitorrico