Major manufacturers are using EhCache. Where is it better than Redis?

Story backgroundWith the decline of hardware price, people rely more and more on hardware. I even heard that the code is not important. If not, add machines. For example, the use of cache is usually based on virtual machine memory, disk storage and Middleware (Redis memory). We all know that the most suitable is the best, but in practice, it is ...

Posted by unlishema.wolf on Wed, 15 Dec 2021 18:38:32 +0100

What if the query is too slow - add cache

preface Many friends may encounter a large amount of data, and your interface query is particularly slow. If so, there are many processing schemes, such as changing your serial query to parallel query, optimizing sql and indexing. Finally, there is no way to add cache. Because caching will cause the cached data to be different from the data in ...

Posted by pacmon on Wed, 15 Dec 2021 15:27:56 +0100

Bloom filter solves cache breakdown problem

Cache penetration problem? Cache penetration: it is specified to use some nonexistent key s for a large number of queries on Redis, resulting in failure to hit. Each request will be sent to the persistence layer for query, resulting in great pressure on the database. What are the solutions? Implement flow restriction on our service interface ...

Posted by yzerman on Wed, 15 Dec 2021 03:23:31 +0100

[Redis] Redis cache penetration, cache breakdown and cache avalanche solutions

1, Redis cache penetration, cache breakdown and cache avalanche solutions The conventional use of Redis as a solution will not be described here, but directly cut into the topic. How did Redis's cache penetration, cache breakdown and cache avalanche come from? How? If you don't have a preliminary understanding and use of Redis, you can re ...

Posted by ultrus on Tue, 14 Dec 2021 05:47:11 +0100

Implementing distributed locks with Go + Redis

Why do I need distributed locks User orders Lock uid to prevent repeated orders. Inventory deduction Lock inventory to prevent oversold. Balance deduction Lock the account to prevent concurrent operations. When sharing the same resource in a distributed system, distributed locks are often needed to ensure the consistency of ...

Posted by herrin on Tue, 14 Dec 2021 03:26:53 +0100

Introduction, installation and data type of Redis [Redis Chapter 1]

1. Introduction to NoSQL development 1.1 technology development NoSQL: mainly used to solve performance related problems. 1. Monomer Era However, with the rapid increase in the amount of data, the application server will have CPU and memory pressure, and the database service will have IO pressure. 2. Solve CPU and memory pressure ...

Posted by jvanv8 on Sat, 11 Dec 2021 08:34:40 +0100

Five data structures and real application scenarios of Redis

preface If you are asked what data structures redis has, you can certainly name five basic data structures: string, hash, list, set and Zset You may also know that it has three special data structure types: Geospatial, hyperlog and Bitmap. But if you ask what data structures you use in your actual project. Do you think most of them just us ...

Posted by laurus on Fri, 10 Dec 2021 01:51:49 +0100

Implementing Redis distributed lock from zero to one coding

Some students are so pissing. You can understand it. If you don't do it yourself, how can you understand it thoroughly? Let's do it together! Usage scenario and model selection The distributed multi node deployment mode makes it possible for shared variables to be operated at the same time. In case of data consistency requirements, global loc ...

Posted by phifgo on Thu, 09 Dec 2021 07:03:02 +0100

SpringBoot+Mybatis uses Redis as the secondary cache to implement and solve the problem that the cache [call clear() method] cannot be updated when deleting / modifying / adding.

1, Build environment Configure Maven.Spring boot integrates Redis.SpringBoot integrates Mybatis. The parent pom.xml file is as follows: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven ...

Posted by JustGotAQuestion on Thu, 09 Dec 2021 02:21:30 +0100

Redis can easily implement the second kill system

This article is transferred from: Le byteThis article mainly explains: RedisFor more Java related information, you can pay attention to the official account number: 999Cache cacheCache conceptA cache is a replica set of original data stored on a computer for easy access.Common caching scenarios for Web projectsBuffer breakdownConcept:For some k ...

Posted by sunnyvatsal on Thu, 09 Dec 2021 02:05:46 +0100