Use of Redis Stream type

1, Background Recently, after looking at the knowledge of redis, I found that a new data type Stream has been generated in redis5, which is somewhat similar to the design of kafka and can be used as a simple message queue. 2, Characteristics of Stream type in redis It is persistent and can ensure no data loss. Support message multicast and ...

Posted by teanza on Tue, 09 Nov 2021 10:28:27 +0100

Explanation of Redis database

catalogue introduction 1, Relational database and non relational database (1) , relational database (2) , non relational database (3) , relational database and non relational database (1) Different data storage methods (2) . different expansion modes (3) Support for transactional is different (4) Background of non relational database ...

Posted by RyanSF07 on Tue, 09 Nov 2021 00:44:16 +0100

Redis's study notes day02_ Basic data type

As a data structure storage system in memory, Redis can be used as database, cache and message middleware. Its value supports many types of data structures. The basic data structures include: strings, hashes, lists, sets and sorted sets. These five data structures are often used in our work and often asked during the interview. Therefore, maste ...

Posted by rbastien on Fri, 05 Nov 2021 04:15:03 +0100

In depth interpretation of Redis data type parsing - ZipList

Data type analysis of Redis source code - ZipList The current Redis analysis version is 6.2, which should be noted. ZipList, a compressed list, can contain multiple nodes at will. Infrastructure ZipList Compress the list. Its overall layout, < zlbytes > < zltail > < zllen > < entry > < entry >... < entry &g ...

Posted by jpaloyo on Thu, 04 Nov 2021 09:38:22 +0100

SpringBoot integrates Redis to implement caching (automatic caching + manual aop caching)

demo address: https://gitee.com/pdh_gitee/redis-cache-demo.git. Redis must be available locally, which is the premise. All demo s are tested on windows. In the spring boot project, you can usually use the automatic cache policy, or you can use the RedisTemplate class to operate redis, and redis can be configured (of course, this is trou ...

Posted by kslagdive on Thu, 28 Oct 2021 08:53:09 +0200

Spring security uses redis to achieve single sign on

preface This paper uses springsecurity oauth2 + redis to realize single sign on. Now, if you want to use springsecurity to realize single sign on, the more popular method is to use jwt. Although jwt has many advantages and can carry a lot of information, it is stateless, and the server does not need to save its information, so there is a ...

Posted by aximbigfan on Fri, 22 Oct 2021 10:03:43 +0200

redis decentralization

1, Redis Cluster Redis Cluster is a distributed solution officially provided by redis. When encountering bottlenecks such as memory, concurrency and traffic, Cluster architecture can be used to achieve the purpose of load balancing. Official documents: https://redis.io/topics/cluster-tutoria 1. Why use redis cluster cluster? 1.first Redis Sing ...

Posted by josemi on Tue, 19 Oct 2021 23:15:21 +0200

RabbitMQ -- idempotent, priority queue, inert queue

Idempotency concept The results of one request or multiple requests initiated by the user for the same operation are consistent, and there will be no side effects due to multiple clicks. The simplest example is payment. The user pays after purchasing goods, and the payment deduction is successful. However, when the result is returned, th ...

Posted by hkucsis on Tue, 19 Oct 2021 21:33:10 +0200

[redis] use redis to easily process longitude and latitude coordinate point data

After Redis 3.2, geographic coordinate data management is supported. Add the given coordinate elements (latitude, longitude, name) to the specified key. These data will be stored in an ordered set. You can calculate the distance between two coordinate points through GEORADIUS, or query the data within a coordinate radius using GEORADIUS and GEO ...

Posted by al3x8730 on Mon, 18 Oct 2021 08:16:41 +0200

Linux Enterprise Operation and maintenance 6.6 - redis deployment and master-slave switching, Redis+Mysql read-write separation

catalogue Introduction to Redis redis compilation and installation   1. redis configuration of server1 2. redis installation of server2   3. Configuring redis for server3 3, redis master-slave replication 4, Sentine master-slave automatic switching   5, redis cluster Redis cluster summary 1. Cluster construction Build ...

Posted by willieklein on Wed, 13 Oct 2021 16:10:58 +0200