Oversold 100 bottles of Feitian Maotai! Is it because Redis distributed locks are improperly used?

Using distributed locks based on Redis is nothing new today. This article is mainly based on the accident analysis and solution caused by redis distributed lock in our actual project. The rush purchase orders in our project are solved by distributed locks. Once, the operation conducted a rush purchase activity of Feitian Maotai, with 100 bott ...

Posted by terandle on Wed, 09 Feb 2022 11:53:43 +0100

I understand the principle of geohash and practice the practical design ideas. The interviewer won't laugh at me!

preface Hello, guys, I'm amu! A programmer who likes to share technical points through actual project practice! Have you ever encountered the scene of being ridiculed by the interviewer; Before, there was a junior who just graduated from primary school (Internet cafe in University, temporary cramming after graduation) who was interviewed in a ...

Posted by michaelpalmer7 on Wed, 09 Feb 2022 00:45:00 +0100

Perfect, Redis can also cluster like this!!!

Introduction to Redis cluster Redis is an open source key value storage system. Due to its outstanding performance, most Internet enterprises use it for server-side cache. Before version 3.0, Redis only supported single instance mode. Although it supported master-slave mode and sentinel mode deployment to solve single point of failure, now I ...

Posted by exec1 on Tue, 08 Feb 2022 12:04:37 +0100

Too strong! The four mainstream current limiting strategies can be implemented through redis

introduction In web development, function is the cornerstone. In addition to function, peacekeeping and protection are the top priority. Because during the operation of the website, the business may be abnormal due to the sudden traffic, and may also be maliciously attacked by othersTherefore, our interface needs to limit the traffic. Commonly ...

Posted by drewbie on Tue, 08 Feb 2022 04:56:18 +0100

[Redis] beginner's Guide - how does Redis work in real life?

In the era of WebServer, Jedis direct connection is mostly used in the code to operate Redis server, so people will package a tool class in the project for Jedis. However, in the era of microservice integration SpringBoot, letstructure (underlying Netty, NIO mode) is used. We only need to pay attention to the use of RedisTemplate, but there are ...

Posted by suvarthi on Tue, 08 Feb 2022 03:35:51 +0100

Redis operation Python series, redis basic command set | CSDN creation punch in

Reading guide Set type is a set of string type, which is characterized by disordered and non repetitive set elements. Each set can store 232 - 1 elements (more than 4 billion) at most. Set type mainly has the following application scenarios. 1. Collection of friends / followers / fans / interested people The unique feature of set typ ...

Posted by mclamais on Tue, 08 Feb 2022 00:31:28 +0100

IDEA to quickly create a SpringBoot project

1 objectives SpringBoot project can be created quickly (without writing any configuration files)Introduction to the basic principles of SpringBootIntroduction and use of SpringBoot configuration fileSpringBoot integrates Mybatis, Redis and timerSpring boot sends Http requestTesting in SpringBootSpring boot packaged deployment 2 create a Spring ...

Posted by catlover on Tue, 08 Feb 2022 00:16:26 +0100

Redis operation Python series, redis basic command list | CSDN creation punch in

Reading guide The list type is a simple list of strings, sorted in insertion order. Each list can store up to 232 - 1 elements (more than 4 billion). The list types mainly include the following application scenarios. Personal use is more non paged data lists, or lists with less changes. 1. Message queue List type lpop and rpush (or co ...

Posted by SsirhC on Mon, 07 Feb 2022 00:22:52 +0100

Redis from mastery to entry -- detailed explanation of data type Zset implementation source code

Introduction to Zset Redis ordered collection, like Set collection, is also a collection of string elements, and duplicate members are not allowed. The difference is that each element is associated with a score of type double. redis sorts the members of the collection from small to large through scores. Members of an ordered set are unique ...

Posted by jarosciak on Sun, 06 Feb 2022 07:04:19 +0100

Redis learning notes redis underlying data structure

In the figure mentioned in the previous section, we know that you can use the type and encoding attributes of redisObject objects. It can determine the main underlying data structures of Redis: SDS, QuickList, ZipList, HashTable, IntSet and ZskipList. 1, Simple dynamic string (SDS) Let's first look at how the traditional C language stores stri ...

Posted by Clerma on Sat, 05 Feb 2022 19:48:36 +0100