Analysis of Redis Cache Penetration, Cache Avalanche and redis Concurrency

It is common to use redis as a cache, but there may be a series of problems after using redis, especially when the amount of data is large. Some classical problems are as follows: (1) Data consistency between caches and databases Distributed environments (not to mention stand-alone) are very prone ...

Posted on Wed, 14 Aug 2019 02:24:21 -0700 by Rodis

Redis Cluster Data Migration Single Instance Scheme

Catalog Preface install Configuration file changes Start migrating Preface There are many methods for synchronous migration of Redis cluster, such as redis-port,redis-migrate-tool and other tools. This paper mainly talks about the migration of CentOS from cluster to single instance through redis ...

Posted on Thu, 01 Aug 2019 23:13:15 -0700 by raghavan20

[Redis] Java Redis Tool Class

I won't tell you what Redis is. (Tool classes written a month ago, have been forgotten to share, is a relatively complete Java-Redis tool class) Go straight to the code. The code for configuring Redis in spring is given first. When you use other classes, just use annotations to inject automatically. redis.properties ##Access address ...

Posted on Sat, 29 Jun 2019 12:42:47 -0700 by possiblyB9

Distributed Lock Based on redis to Realize "Second Kill"

Business scenarios The so-called secondkill, from the business point of view, is a short time for multiple users to "scramble" for resources, where resources are commodities in most of the secondkill scenarios; from the business abstraction, technical point of view, secondkill is the operation of multiple threads on resources, so ...

Posted on Fri, 14 Jun 2019 19:31:15 -0700 by Hellbringer2572

Redis implements centralized management of parameters

Serial articles Zookeeper implements centralized management of parameters JMS Implements Centralized Management of Parameters Redis implements centralized management of parameters Preface Last document JMS Implements Centralized Management of Parameters Using JMS as the middle layer and JMS publishing and subscribing function, the centr ...

Posted on Wed, 29 May 2019 06:05:17 -0700 by SpiderSprog

[SpringBoot Series 4] SpringBoot customizes its own bean s

Cause: The more I use SpringBoot, the more I like it, but when SpringBoot goes wrong, I can't do it because the packaging is too high. Then there was a previous requirement, using String RedisTemplate provided by SpringBoot, which I wanted to customize. The following code. 1    private boolean enableTransactionSupport = false; 2 pri ...

Posted on Sat, 11 May 2019 11:53:25 -0700 by wonderman

Redis-12 Redis pipeline

Article directory Summary Java API operation Redis Pipeline Spring operation Redis Pipeline Code Summary Redis transaction problems, in the transaction Redis provides a queue, which can be batch task exec ution queue, so that the performance is relatively high, but using multi ___________ Exc transaction commands are ove ...

Posted on Fri, 10 May 2019 09:05:40 -0700 by GoSharks

Redis Learning Cache

Redis Learning Cache Preface In the previous study, we learned about the use of Jedis and Spring-redis-data. These contents mainly use Redis as a database directly. Next, we learn Redis from another perspective, using Redis as a cache. In the case of using Redis, a large part of the scenario is using Redis as a cache. Redi ...

Posted on Tue, 07 May 2019 03:15:38 -0700 by derzok

Current Limiting Strategy for Distributed System

Preceding text Current Limiting Strategy for Distributed Systems (I) This paper introduces the principle and basic usage scenario of system current limiting. I can watch it on the home page. This article will introduce how to limit current in application access layer (Nginx) and distributed application. Application Access Layer Cur ...

Posted on Mon, 22 Apr 2019 18:54:34 -0700 by cullouch

Spring+Reids subscription key expiration notification

Project requirements: The data lifetime of redis cache expires, reminding users to update the cache   Step one: Configuration to turn on Reids notification function Method 1: Modify the redis/redis.conf configuration file and add the following settings notify-keyspace-events Ex Method 2: Connect redis client and execute th ...

Posted on Fri, 29 Mar 2019 02:45:29 -0700 by Valera