Payment transaction limit

  1, Background Technology stack: Redis+Lua Double eleven is a festival that belongs to e-commerce rather than operators. However, goose has no choice but to be on duty. After zero, the flow of the payment system rises for half an hour, and then it runs stably. With a serious and responsible attitude, I'd better stick to it all night. I ...

Posted by yuws on Thu, 11 Nov 2021 10:05:33 -0800

Second kill system based on SpringBoot, Redis and RabbitMQ

Second kill system based on SpringBoot, Redis and RabbitMQ The main problems solved by seckill system: concurrent reading and concurrent writing. The core optimization concept of concurrent reading is to minimize the number of users "reading" data from the server, or let them read less data; The processing principle of concurr ...

Posted by swissmissflash on Wed, 10 Nov 2021 10:26:18 -0800

Redis data structure

Redis data structure catalogueRedis data structureRedis multi databaseRedis basic operation commandsRedis general operation commandRedis core objectRedis database supports five data types:StringsHash (hash)List (string list)Set (string set)ZSet (ordered string set) Redis multi database Redis server has 16 databases (0 ~ 15). Database 0 is us ...

Posted by 1042 on Tue, 09 Nov 2021 10:47:22 -0800

Alibaba P6 Interviewer: how does Redis implement distributed locks? What if the lock expires?

Principle of Redis implementing distributed lockWe talked about the application of Redis in the actual business scenario. Now let's learn about the application of Redisson functional scenario, that is, the implementation scenario of distributed locks that we often use.The concept of distributed lock will not be described in this paper.• in ...

Posted by mfindlay on Mon, 08 Nov 2021 23:44:17 -0800

Redis Foundation (Deployment and Common Commands)

1. Introduction to Redis Redis is an open source NoSQL database written in C.Redis runs in memory and supports persistence (storage on disk). It uses key-value storage as an indispensable part of the current distributed architecture.Redis server program is a single process modelRedis services can start multiple Redis processes simultaneo ...

Posted by stolzyboy on Mon, 08 Nov 2021 14:50:14 -0800

Redis learning notes 7: master-slave replication and sentinel

Author: Grey Original address: Redis learning notes 7: master-slave replication and sentinel What are the problems with single machine, single node and single instance Redis? It is easy to cause single point of failure, so how to solve it? Active / standby mode At the same time, read-write separation can be realized Each node here is ...

Posted by Paddy on Mon, 08 Nov 2021 04:21:32 -0800

Kubernetes(k8s) deploy redis cluster cluster

Redis Cluster provides a method to run redis installation, in which data   Automatically partition between multiple redis nodes. Redis Cluster also provides a certain degree of availability during partitioning, which is actually the ability to continue operation when some nodes fail or fail to communicate. However, if a major failure occur ...

Posted by freeheader on Fri, 05 Nov 2021 18:52:27 -0700

Redis implements current limiting in three ways

In the face of more and more high concurrency scenarios, the display of current limit is particularly important. Of course, there are many ways to implement current limiting. Redis has very powerful functions. I have practiced three ways with redis, which can be implemented in a relatively simple way. Redis can not only limit current, but also ...

Posted by markbett on Thu, 04 Nov 2021 22:48:13 -0700

Detailed explanation of RedisTemplate method

maven dependency <!--redis--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <!--<version>2.1.4.RELEASE</version>--> </dependency> <dependency> ...

Posted by ITEagle03 on Thu, 04 Nov 2021 14:41:41 -0700

2021-11-04 ③ Redis service, data persistence and the most detailed explanation of the whole network

Data persistence That is, save the data to a permanent storage device (such as disk). 1. redis persistence – two methods I redis Two persistence methods are provided: RDB(Redis DataBase)and AOF(Append Only File). RDB (Redis DataBase): generate snapshots of redis stored data at different time points and store them on disks and oth ...

Posted by dptr1988 on Thu, 04 Nov 2021 12:52:34 -0700