Introduction to Redis architecture design

Redis master-slave replication brief introduction The read-write capability supported by a single redis is still limited. At this time, we can use multiple redis to improve the concurrent processing capability of redis. How these redis cooperate requires a certain architecture design. Here, we first analyze and implement the master / slave arch ...

Posted by playa4real on Tue, 15 Feb 2022 05:21:30 +0100

Redis cluster mode high availability practice

1, PrefaceThis paper builds Redis cluster service.<img src="https://www.altitude.xin/typora/image-20211108171613912.png" alt="image-20211108171613912" style="zoom:33%;" />2, Single machine simulationSingle machine simulation refers to simulating operation on a single physical machine or virtual machine to maximize the restoration of the i ...

Posted by fI_Ux on Mon, 14 Feb 2022 10:40:56 +0100

Design and implementation of Redis 7.0 Multi Part AOF

Introduction: This paper will explain in detail some shortcomings of the existing AOF mechanism in Redis and the design and implementation details of Multi Part AOF introduced in Redis 7.0.As a very popular in memory database, Redis can have very high read and write performance by saving data in memory. However, once the process exits, all Redi ...

Posted by Thoaren on Mon, 14 Feb 2022 10:18:08 +0100

Microservices have everything from code to k8s deployment (v. home stay service)

We will use a series to explain the complete practice of microservices from requirements to online, from code to k8s deployment, from logging to monitoring. The whole project uses the micro services developed by go zero, which basically includes go zero and some middleware developed by relevant go zero authors. The technology stack used is bas ...

Posted by billybathgate on Mon, 14 Feb 2022 04:06:41 +0100

Bloom filter [proposed by bloom in 1970; Redis cache penetration solution]

What is a bloom filter Bloom Filter was proposed by a young man named bloom in 1970. It has been 50 years since then. It is actually a very long binary vector and a series of random mapping functions. Everyone should know that the stored data is either 0 or 1, and the default is 0. It is mainly used to judge whether an element is in a set. 0 ...

Posted by arun_php on Sun, 13 Feb 2022 17:37:23 +0100

Redis common command notes

1, Common commands for keys keys * View all current key exists key Judge a key Does it exist type key View your key What type is it del key Delete the specified key data unlink key according to value Select non blocking delete to delete only keys from keyspace If the metadata is deleted, the real deletion will be carried out in subsequent asyn ...

Posted by vbzoom.com on Fri, 11 Feb 2022 22:06:07 +0100

C # use Redis to store and query data of fans and friends

Due to the development needs, add the fan attention module   In the relationship of friends' attention, there are mainly the above three states, namely: My fans My follow mutual The design idea is as follows: General idea: we use zset in redis to complete the whole function. The reason is that zset has the functions of sorting (we should ...

Posted by knowram on Fri, 11 Feb 2022 21:43:12 +0100

Overview of Redis data types

Redis official website: https://redis.io Redis Chinese official website: http://www.redis.cn The following is an overview of Redis data types, which can be read intuitively by using code blocks. 1, Base point 1. There are 16 Redis databases by default, and the first one is used by default. Use select to switch databases. 2. The default port ...

Posted by rroc on Fri, 11 Feb 2022 19:49:51 +0100

Introduction to redis storage data structure in redis

redis is an in memory database based on key value. The so-called kv storage or kv database means that the data in it is stored one-to-one, in which key is the only index. This structure is generally based on hash table, with high efficiency and search complexity of O(1). However, hashmap is not omnipotent. With the increase of the amount of ...

Posted by potato on Thu, 10 Feb 2022 23:22:19 +0100

A series of tough interviews -- what's the difference between redis distributed locks and zk distributed locks?

  Tags: [advanced] [Redis] [ZooKeeper] 1. Ask What is the difference between redis distributed locks and zk distributed locks? 2. Analysis This question has high requirements for the interviewer. It should not only understand the implementation method, but also master the principle. So the answer to the question is divided into many levels ...

Posted by alvinchua on Wed, 09 Feb 2022 13:55:27 +0100