Redis introduction and installation

Redis (Remote Dictionary Server), that is, the remote dictionary service, is an open source service using ANSI C language Write, support network, memory based and persistent log type, key value database , and provides API s in multiple languages Redis's role: In memory storage, persistence (RDB and AOF)Efficient and can be used for cachin ...

Posted by mforan on Fri, 14 Jan 2022 21:11:50 +0100

Redis cluster of redis

1. Defects of sentinel mode In sentinel mode, there is still only one Master node. Sentinel mode does not relieve write pressure when concurrent write requests are large. 2. Redis cluster concept (1) A distributed network service cluster composed of multiple Redis servers; (2) There are multiple Master master nodes in the cluster, and each ...

Posted by chadowch on Fri, 14 Jan 2022 10:27:36 +0100

Alibaba cloud Redis development specification

1, Key value design 1. key name design (1) [suggestion]: readability and manageability Prefix the business name (or database name) (to prevent key conflicts) and separate them with colons, such as business name: Table Name: id ugc:video:1 (2) [suggestion]: simplicity On the premise of ensuring semantics, control the length of keys. When the ...

Posted by gruzaw on Fri, 14 Jan 2022 04:44:31 +0100

docker builds redis cluster

1docker install redis standalone 1 Download Image [root@db01 ~]#docker pull redis 2 create mount profile [root@db01 ~]#mkdir -p /application/redis/conf [root@db01 ~]#touch /application/redis/conf/redis.conf 3 create an instance and start: Map the 6379 of the virtual machine to the 6379 of docker, give the container a name called redis, hang t ...

Posted by DeeDee2010 on Thu, 13 Jan 2022 15:24:31 +0100

Ah Chang teaches you to build Redis cluster through docker

1, Foreword Ah Chang summarized and recorded here how to build a cluster of redis hash slot partition solutions through docker [3 master and 3 slave] Knowledge involved: redisdocker basic instructionlinuxHash slot partition 2, Theory Before building, you need to know three partition algorithms built in the redis cluster: hash remai ...

Posted by trygve on Wed, 12 Jan 2022 11:23:03 +0100

Common problems in redis development - cache penetration - cache avalanche - redis brain crack

Common problems in redis development - cache penetration - cache avalanche - redis brain crack - cache breakdown preface In our daily development, we all use the database to store data. Because there is usually no high concurrency in general system tasks, it seems that there is no problem. However, once the demand for a large amount of ...

Posted by DickDeeds on Wed, 12 Jan 2022 02:17:01 +0100

Redis string

character stringThe standard form of string in C language is NULL(0x \ 0 in hexadecimal) as the terminator. If you want to obtain the length of string, you need to use strlen standard library function. The algorithm complexity of this function is O(n), and you need to traverse the whole string. Redis can't afford such a slow speed,Therefore, th ...

Posted by somethingorothe on Tue, 11 Jan 2022 19:31:46 +0100

Redis master-slave replication

concept Master Slave replication refers to copying data from one Redis server to other Redis servers. The former is called master/leader and the latter is called slave/follower; Data replication is unidirectional and can only be from master node to Slave node. Master mainly writes, Slave mainly reads. Master-slave copy, read-write separation! ...

Posted by jamesgrayking on Tue, 11 Jan 2022 04:14:34 +0100

Redis data types and commands and Java usage

Basic data type Specific details can be accessed directly Redis official website , here is only the command summary String binary safe stringLists: a collection of string elements sorted by insertion order. They are basically linked lists.Sets: a collection of non repeating and unordered string elements.Sorted sets (ZSets), similar to Sets, b ...

Posted by Rushyo on Mon, 10 Jan 2022 23:01:27 +0100

AWS redis data non real time migration

1, Background Because a set of environment is to be migrated to aws redis, it was originally intended to upload rdb to s3, and then use s3 seed to load rdb files into the new cluster when creating a new cluster. This is more convenient and fast, but there are two problems. One is that creation fails when large rdb files are applied, and the ot ...

Posted by kts on Mon, 10 Jan 2022 20:00:47 +0100