This article aims to share experience and welcome your comments
1. Second kill 2. Grab coupons 3. Interface idempotency check
Summary: grab resources
1. Single lock -- > to distributed lock
synchronized () is no longer described here
1.1. Based on opsforvalue() Setifabsent() implementation
Posted by millwardt on Thu, 20 Jan 2022 20:37:22 +0100
Distributed lock - Implementation Based on Redisson aspect
We have learned from the previous two articles Implementation based on Database as well as Redis based implementation We learned about the implementation of distributed locks from the database and Redis levels. In this article, we learn about distributed locks from the aspect of re ...
Posted by hmogan on Fri, 14 Jan 2022 18:20:45 +0100
Redisson distributed interlocking RedissonMultiLock objects based on Redis can associate multiple RLock objects into an interlocking, and each RLock object instance can come from different redisson instances. Of course, this is the introduction of the official website. What is it? Let's take a look at the use and source code of int ...
Posted by JustinM01 on Tue, 04 Jan 2022 15:25:42 +0100
Application of cache and distributed lock
1. Cache application
Cache usage scenario:
In order to improve the system performance, we usually put some data into the cache to speed up access, while the database only undertakes the data dropping work
So what data is suitable for caching?
The requirements for immediacy and data consistency are n ...
Posted by billynastie2007 on Mon, 22 Nov 2021 15:33:09 +0100