Tagged articles

redisson

173 articles · Page 2 of 2
Bin's Tech Cabin
Bin's Tech Cabin
Jul 1, 2022 · Backend Development

Mastering Redis Distributed Locks: From Basics to Advanced Redlock Strategies

This comprehensive guide walks through the fundamentals, pitfalls, and advanced implementations of Redis distributed locks—including basic SETNX usage, safe lock release with Lua scripts, re‑entrant lock design, timeout handling, Redlock debates, and practical Redisson integration—providing Java developers with actionable patterns for reliable concurrency control.

Distributed LockJavaLua
0 likes · 25 min read
Mastering Redis Distributed Locks: From Basics to Advanced Redlock Strategies
Architect's Tech Stack
Architect's Tech Stack
Jun 27, 2022 · Backend Development

Why Redis Expiration and RabbitMQ Dead‑Letter Queues Are Unsuitable for Delayed Tasks and Recommended Alternatives

The article explains why using Redis key‑expiration notifications or RabbitMQ dead‑letter queues for delayed task execution is risky, compares several common approaches, and recommends reliable solutions such as dedicated message‑queue schedulers, Redisson delay queues, or time‑wheel implementations with proper compensation mechanisms.

Delayed TasksMessage QueueRabbitMQ
0 likes · 9 min read
Why Redis Expiration and RabbitMQ Dead‑Letter Queues Are Unsuitable for Delayed Tasks and Recommended Alternatives
Top Architect
Top Architect
Jun 26, 2022 · Backend Development

Choosing Reliable Solutions for Delayed Task Execution in E‑commerce Systems

The article evaluates common delayed‑task implementations such as message‑queue scheduling, Redis expiration listening, RabbitMQ dead‑letter queues, time wheels, and Redisson delay queues, highlighting their drawbacks and recommending robust backend approaches for reliable order‑closure processing.

Delayed TasksRabbitMQbackend-architecture
0 likes · 9 min read
Choosing Reliable Solutions for Delayed Task Execution in E‑commerce Systems
MaGe Linux Operations
MaGe Linux Operations
Jun 25, 2022 · Backend Development

Why Redis Expiration and RabbitMQ Dead‑Letter Queues Fail for Delayed Tasks – Safer Alternatives

This article examines why using Redis key‑space expiration listeners, RabbitMQ dead‑letter queues, and in‑memory time wheels are unreliable for precise delayed‑task execution, and recommends more robust solutions such as dedicated message‑queue delay features and Redisson DelayQueue with fallback mechanisms.

Delayed TasksRabbitMQRedis
0 likes · 6 min read
Why Redis Expiration and RabbitMQ Dead‑Letter Queues Fail for Delayed Tasks – Safer Alternatives
Java Captain
Java Captain
Jun 23, 2022 · Backend Development

Choosing the Right Delayed Task Implementation: Avoid Redis Expiration and RabbitMQ Dead‑Letter Queues

This article evaluates common delayed‑task solutions such as RocketMQ, Pulsar, Redisson DelayQueue, Redis expiration listeners, RabbitMQ dead‑letter queues, and time wheels, highlighting their drawbacks and recommending reliable approaches for accurate order‑closing tasks in e‑commerce systems.

Delayed TasksMessage QueueRabbitMQ
0 likes · 7 min read
Choosing the Right Delayed Task Implementation: Avoid Redis Expiration and RabbitMQ Dead‑Letter Queues
58 Tech
58 Tech
May 10, 2022 · Backend Development

Understanding Distributed Locks: Java Native Locks, RedissonLock, RedLock, and WLock – Concepts, Algorithms, and Source Code Analysis

This article explains the need for distributed locks, compares Java native and JUC locks, details Redis‑based implementations such as RedissonLock and RedLock, introduces the WLock solution with WPaxos and RocksDB, and provides complete source‑code walkthroughs for lock acquisition and release.

Distributed LockJava concurrencyWLock
0 likes · 31 min read
Understanding Distributed Locks: Java Native Locks, RedissonLock, RedLock, and WLock – Concepts, Algorithms, and Source Code Analysis
IT Services Circle
IT Services Circle
Apr 28, 2022 · Fundamentals

Using Bloom Filters with Redis and Redisson: Theory, Installation, and Practical Code Samples

This article explains the concept of Bloom filters, their probabilistic behavior and limitations, demonstrates how to integrate them into Redis via the RedisBloom module, and provides complete Java/Redisson examples for creating, populating, and querying Bloom filters to prevent cache penetration and duplicate processing.

Cache PenetrationCachingData Structures
0 likes · 12 min read
Using Bloom Filters with Redis and Redisson: Theory, Installation, and Practical Code Samples
vivo Internet Technology
vivo Internet Technology
Mar 23, 2022 · Backend Development

Understanding the Time Wheel Mechanism in Dubbo and Redisson

The article explains why a time‑wheel scheduler outperforms traditional timers, describes single‑ and multi‑layer wheel designs, and walks through Apache Dubbo’s HashedWheelTimer implementation—including TimerTask, Timeout, bucket and worker components—showing its use in Dubbo heartbeats and Redisson lock renewal.

DubboJavaScheduling
0 likes · 23 min read
Understanding the Time Wheel Mechanism in Dubbo and Redisson
Java Backend Technology
Java Backend Technology
Mar 13, 2022 · Backend Development

Why Native Java Locks Fail in Distributed Systems and How Redis & Zookeeper Solve It

This article explains the inventory oversell problem caused by Java's JVM‑local locks in multi‑machine deployments, introduces distributed locks as a solution, and compares practical implementations using Redis (including RedLock and Redisson) and Zookeeper (with Curator), providing code snippets, deployment considerations, and a pros‑cons analysis to guide technology selection.

Distributed LockRedisZookeeper
0 likes · 19 min read
Why Native Java Locks Fail in Distributed Systems and How Redis & Zookeeper Solve It
Java Backend Technology
Java Backend Technology
Mar 8, 2022 · Operations

Avoid Common Redis Distributed‑Lock Pitfalls and Fix Them

This article explains why naive Redis lock usage can cause non‑atomic operations, forgotten releases, lock‑stealing, re‑entrancy, read‑write contention, segmentation, timeout, master‑slave failures, and offers practical Java/Redisson/Lua solutions to make distributed locks reliable.

Distributed LockJavaLua
0 likes · 20 min read
Avoid Common Redis Distributed‑Lock Pitfalls and Fix Them
dbaplus Community
dbaplus Community
Feb 27, 2022 · Backend Development

Avoid Common Pitfalls When Using Redis Distributed Locks

This article examines the hidden dangers of Redis distributed locks—including non‑atomic operations, forgotten releases, accidental unlocking of others, massive request failures, re‑entrancy, lock competition, timeout handling, and master‑slave replication issues—while providing practical Java code examples and mitigation strategies.

JavaRedisbest practices
0 likes · 22 min read
Avoid Common Pitfalls When Using Redis Distributed Locks
Code Ape Tech Column
Code Ape Tech Column
Feb 10, 2022 · Databases

Redis Distributed Lock: Seven Correct Implementation Schemes

This article explains why distributed locks are needed in high‑concurrency scenarios, defines their essential properties, and systematically presents seven Redis‑based locking solutions—including SETNX+EXPIRE, timestamp values, Lua scripts, extended SET options, unique‑value verification, Redisson’s watchdog, and the Redlock algorithm—detailing their code examples, advantages, and drawbacks.

Distributed LockLuaRedlock
0 likes · 12 min read
Redis Distributed Lock: Seven Correct Implementation Schemes
Java Interview Crash Guide
Java Interview Crash Guide
Jan 26, 2022 · Backend Development

How to Build a High‑Performance Redis Delay Queue with SpringBoot

This article explains the design, implementation, and optimization of a Redis‑based delay queue using SpringBoot, Redisson, and distributed locks, covering use cases, architecture, data structures, job lifecycle, core code snippets, and future improvements for reliability and scalability.

Message QueueRedisdelay queue
0 likes · 15 min read
How to Build a High‑Performance Redis Delay Queue with SpringBoot
Top Architect
Top Architect
Jan 22, 2022 · Databases

Differences Among Jedis, Redisson, and Lettuce and Their Usage in Spring Boot

This article compares the Java Redis clients Jedis, Redisson, and Lettuce, explains their distinct features and thread‑safety models, and provides detailed Spring Boot configuration and code examples for using RedisTemplate, RedissonClient, and annotation‑based caching to implement distributed locks, hash operations, and cache management.

CachingJavaJedis
0 likes · 13 min read
Differences Among Jedis, Redisson, and Lettuce and Their Usage in Spring Boot
Architecture Digest
Architecture Digest
Jan 11, 2022 · Backend Development

Implementing Distributed Locks with Redis and Redisson Watchdog Mechanism

This article explains how to implement a distributed lock using Redis by setting a unique key-value pair, handling expiration, addressing lock timeout issues, and leveraging Redisson's watchdog mechanism with automatic renewal, including detailed code examples for tryLock, subscription, and renewal processes.

Distributed LockJavaRedis
0 likes · 9 min read
Implementing Distributed Locks with Redis and Redisson Watchdog Mechanism
Java High-Performance Architecture
Java High-Performance Architecture
Jan 6, 2022 · Backend Development

Mastering Redis Distributed Locks: Strategies, Pitfalls, and Redisson Watchdog

Redis distributed locks rely on a key-value marker with unique client IDs, expiration times, and careful release checks; the article explores lock timeout challenges, automatic renewal via watchdog mechanisms, Redisson's tryLock implementation, Lua‑based renewal scripts, and best practices to avoid deadlocks and resource waste.

Distributed LockJavaRedis
0 likes · 11 min read
Mastering Redis Distributed Locks: Strategies, Pitfalls, and Redisson Watchdog
Sohu Tech Products
Sohu Tech Products
Jan 5, 2022 · Backend Development

Implementing Distributed Locks with Redis and Redisson

This article explains how to implement a distributed lock using Redis, discusses challenges with lock expiration, describes automatic renewal techniques such as watchdog mechanisms, and provides detailed Java code examples of Redisson's tryLock and renewal processes.

Distributed LockJavaRedis
0 likes · 12 min read
Implementing Distributed Locks with Redis and Redisson
Top Architect
Top Architect
Dec 27, 2021 · Backend Development

Redis Distributed Lock Implementation and Redisson Watchdog Mechanism

This article explains how to implement a Redis-based distributed lock, discusses the challenges of lock expiration, introduces automatic renewal strategies such as watchdogs, and provides detailed Redisson tryLock and renewal code examples for reliable concurrency control.

JavaRedisWatchdog
0 likes · 12 min read
Redis Distributed Lock Implementation and Redisson Watchdog Mechanism
IT Architects Alliance
IT Architects Alliance
Dec 17, 2021 · Databases

Comparison of Jedis, Redisson, and Lettuce and Their Integration with Spring Boot

This article compares the three popular Java Redis clients—Jedis, Redisson, and Lettuce—detailing their differences in threading, I/O, and feature sets, and provides comprehensive Spring Boot configuration and code examples for using StringRedisTemplate, RedissonClient, and Spring Cache annotations to implement caching and distributed locks.

JavaJedisRedis
0 likes · 11 min read
Comparison of Jedis, Redisson, and Lettuce and Their Integration with Spring Boot
Programmer DD
Programmer DD
Oct 9, 2021 · Databases

Mastering Redis Locks: From SETNX to RedLock and Redisson

This article explains the fundamentals of Redis locking mechanisms, covering SETNX usage, the pitfalls of naive implementations, Lua‑based atomic unlock scripts, the Redisson client library, and the RedLock algorithm, while providing practical code examples and diagrams to illustrate each concept.

Distributed LockLuaRedis
0 likes · 10 min read
Mastering Redis Locks: From SETNX to RedLock and Redisson
Architect
Architect
Oct 4, 2021 · Backend Development

Common Pitfalls and Best Practices of Redis Distributed Locks

Redis distributed locks are widely used for ensuring mutual exclusion in distributed systems, but improper implementation can cause issues such as non‑atomic operations, forgotten releases, lock stealing, high contention, re‑entrancy problems, timeout handling, and master‑slave failures; this article explains each pitfall and offers practical solutions and code examples.

Distributed LockJavaLock Pitfalls
0 likes · 21 min read
Common Pitfalls and Best Practices of Redis Distributed Locks
Architecture Digest
Architecture Digest
Oct 2, 2021 · Databases

Understanding Redis Locks: setnx, RedLock, Redisson and Best Practices

This article explains how Redis locking works, covering the setnx command, the importance of using unique values, atomic unlock via Lua scripts, the Redisson client features, and the RedLock distributed algorithm, while highlighting common pitfalls and practical recommendations.

Distributed LockLua ScriptRedis
0 likes · 10 min read
Understanding Redis Locks: setnx, RedLock, Redisson and Best Practices
MaGe Linux Operations
MaGe Linux Operations
Oct 1, 2021 · Backend Development

Mastering Redis Distributed Locks: From SetNX to RedLock and Redisson

This article explores the most common Redis locking mechanisms—SetNX, RedLock, and Redisson—detailing their principles, pitfalls, and implementation nuances, including code examples, Lua scripts for atomic unlocks, and best‑practice recommendations for building reliable distributed locks in backend systems.

Backend DevelopmentDistributed LockRedis
0 likes · 11 min read
Mastering Redis Distributed Locks: From SetNX to RedLock and Redisson
Top Architect
Top Architect
Oct 1, 2021 · Backend Development

Understanding Redis Locks: setnx, Redisson, and RedLock

This article explains how Redis locking works by detailing the setnx command, its modern usage with the SET command and PX expiration, common pitfalls, safe unlocking with unique values and Lua scripts, and introduces Redisson's lock implementations and the RedLock algorithm for distributed environments.

Backend DevelopmentRedisRedlock
0 likes · 10 min read
Understanding Redis Locks: setnx, Redisson, and RedLock
Code Ape Tech Column
Code Ape Tech Column
Sep 30, 2021 · Operations

Common Pitfalls and Best Practices of Redis Distributed Locks

This article examines the typical mistakes when using Redis distributed locks—such as non‑atomic operations, forgetting to release locks, releasing others' locks, lock starvation, re‑entrancy issues, lock granularity, timeout handling, and master‑slave replication problems—and provides practical solutions and code examples for each scenario.

distributed-lockpitfallsredisson
0 likes · 21 min read
Common Pitfalls and Best Practices of Redis Distributed Locks
Top Architect
Top Architect
Sep 29, 2021 · Backend Development

Implementing Distributed Locks with Redis and Redisson in Spring Boot

This article explains the challenges of high‑concurrency inventory deduction, demonstrates why simple synchronized locks fail in distributed environments, and walks through multiple solutions—from basic SETNX locks to Redisson’s advanced distributed lock implementation—highlighting pitfalls, expiration handling, and trade‑offs with alternatives like Zookeeper.

CAP theoremRedisSpring Boot
0 likes · 15 min read
Implementing Distributed Locks with Redis and Redisson in Spring Boot
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 26, 2021 · Backend Development

Understanding Distributed Locks with Redis and Redisson: Concepts, Implementation, and RedLock Algorithm

This article explains what distributed locks are, their requirements, how to implement them using Redis commands and the Redisson library in Java, and introduces the RedLock algorithm for multi‑node fault‑tolerant locking, complete with code examples and practical considerations.

Distributed LockJavaRedis
0 likes · 28 min read
Understanding Distributed Locks with Redis and Redisson: Concepts, Implementation, and RedLock Algorithm
Programmer DD
Programmer DD
Aug 22, 2021 · Backend Development

Mastering Distributed Locks with Redis: From Basics to Redisson

This article walks through the evolution of Redis‑based distributed locks, illustrating common pitfalls and step‑by‑step improvements—from simple set‑if‑absent locks to atomic UUID checks and Lua‑scripted releases, culminating in a robust Redisson solution.

Distributed LockJavaRedis
0 likes · 8 min read
Mastering Distributed Locks with Redis: From Basics to Redisson
Top Architect
Top Architect
Jul 18, 2021 · Backend Development

Implementing Distributed Locks with Redis and Redisson in Java

The article explains why Java's synchronized lock cannot be used for distributed scenarios, demonstrates how to build a Redis‑based distributed lock with setIfAbsent, discusses pitfalls such as server crashes and lock expiration, and presents robust solutions including atomic expiration, thread‑ID verification, lock renewal, and Redisson usage.

JavaRedisconcurrency
0 likes · 6 min read
Implementing Distributed Locks with Redis and Redisson in Java
Su San Talks Tech
Su San Talks Tech
Jul 12, 2021 · Backend Development

Master Redisson: Simplify Distributed Locks in Spring Boot

This tutorial explains how to integrate Redisson into a Spring Boot application to implement robust distributed locks, covering Redisson's architecture, configuration, code examples, lock types, watchdog mechanism, and practical testing procedures for reentrant, read‑write, and semaphore locks.

RedisSpring Bootredisson
0 likes · 13 min read
Master Redisson: Simplify Distributed Locks in Spring Boot
macrozheng
macrozheng
Jun 15, 2021 · Backend Development

Mastering Redisson: Seamless Distributed Locks in Spring Boot

This tutorial explains what Redisson is, how it extends Redis with powerful distributed data structures and lock mechanisms, and provides step‑by‑step Spring Boot integration, code examples, and detailed testing of re‑entrant, read‑write, and semaphore locks.

Distributed LockJavaRedis
0 likes · 15 min read
Mastering Redisson: Seamless Distributed Locks in Spring Boot
Wukong Talks Architecture
Wukong Talks Architecture
May 21, 2021 · Backend Development

Using Redisson for Distributed Locks in Spring Boot

This article explains how to integrate Redisson into a Spring Boot application to implement various Redis‑based distributed synchronization primitives—including re‑entrant locks, read‑write locks, and semaphores—while covering configuration, code examples, the watchdog mechanism, and practical testing procedures.

JavaRedisSpring Boot
0 likes · 12 min read
Using Redisson for Distributed Locks in Spring Boot
Architecture Digest
Architecture Digest
Dec 27, 2020 · Backend Development

Implementing Distributed Locks with Redis, Redisson, and Zookeeper

This article explains the concepts and practical implementations of distributed locks, comparing local JVM locks with Redis‑based locks (including atomic SETNX/SETEX and Lua scripts), Redisson's high‑level API, and Zookeeper's sequential‑node approach, and provides Java code examples for each solution.

Distributed LockJavaZookeeper
0 likes · 13 min read
Implementing Distributed Locks with Redis, Redisson, and Zookeeper
360 Quality & Efficiency
360 Quality & Efficiency
Dec 25, 2020 · Backend Development

Evolution of Redis Distributed Locks and Redisson Implementation Analysis

This article explains how distributed lock requirements arise when scaling from monolithic to multi‑server architectures, reviews the evolution of Redis‑based locking mechanisms from simple SETNX to Lua scripts and Redisson's advanced features, and provides detailed source‑code analysis of Redisson's lock, unlock, and lock acquisition implementations.

Redisconcurrencylock
0 likes · 12 min read
Evolution of Redis Distributed Locks and Redisson Implementation Analysis
MaGe Linux Operations
MaGe Linux Operations
Nov 15, 2020 · Backend Development

Why Distributed Locks Matter: Redis vs Zookeeper Explained

This article examines the stock‑oversell problem in high‑concurrency e‑commerce systems, explains why native JVM locks fail in multi‑machine deployments, and compares practical distributed‑lock solutions using Redis (including RedLock and Redisson) and Zookeeper (with Curator), highlighting their advantages, drawbacks, and selection guidelines.

Distributed Lockbackendconcurrency
0 likes · 18 min read
Why Distributed Locks Matter: Redis vs Zookeeper Explained
Java Backend Technology
Java Backend Technology
Nov 12, 2020 · Backend Development

Why Java Locks Fail in Distributed Systems and How Redis & Zookeeper Fix Them

Java’s built‑in synchronization mechanisms work only within a single JVM, leading to inventory‑oversell problems when scaling an e‑commerce service across multiple machines, so developers turn to distributed lock solutions such as Redis (with RedLock or Redisson) and Zookeeper (using ordered and temporary nodes) to ensure global mutual exclusion.

CuratorDistributed LockJava concurrency
0 likes · 19 min read
Why Java Locks Fail in Distributed Systems and How Redis & Zookeeper Fix Them
ITPUB
ITPUB
Nov 9, 2020 · Backend Development

Why Distributed Locks Matter: Solving Inventory Oversell with Redis and Zookeeper

The article explains how a single‑machine Java lock can cause inventory oversell in a distributed e‑commerce system, introduces the concept of a global distributed lock, and compares practical implementations using Redis (including RedLock and Redisson) and Zookeeper (with Curator), highlighting their trade‑offs and selection guidelines.

Distributed LockRedisZookeeper
0 likes · 17 min read
Why Distributed Locks Matter: Solving Inventory Oversell with Redis and Zookeeper
Java Captain
Java Captain
Nov 7, 2020 · Backend Development

Why Use Distributed Locks? Implementations with Redis and Zookeeper

The article explains the stock‑oversell problem in a single‑machine e‑commerce system, shows why native Java locks fail in multi‑node deployments, and then details practical distributed‑lock solutions using Redis (including SET NX PX, Lua‑based release, RedLock algorithm and Redisson) and Zookeeper (ephemeral sequential nodes and Curator), before comparing their advantages, drawbacks, and offering selection guidance.

Distributed LockZookeeperconcurrency
0 likes · 17 min read
Why Use Distributed Locks? Implementations with Redis and Zookeeper
Top Architect
Top Architect
Sep 29, 2020 · Backend Development

Implementing Distributed Locks with Redisson in Spring Boot

This article demonstrates how to integrate Redisson with Spring Boot to create Redis‑based distributed locks, provides Maven dependency configuration, shows a Spring @Configuration class for Redisson, offers a utility wrapper for lock operations, and includes a REST controller with a concurrent test to illustrate correct locking behavior versus no‑lock scenarios.

Distributed LockJavaSpring Boot
0 likes · 8 min read
Implementing Distributed Locks with Redisson in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Sep 22, 2020 · Backend Development

Understanding Distributed Locks: Redis vs Zookeeper Implementations

This article explains why native Java locks fail in multi‑node deployments, introduces the concept of a distributed lock, and compares two popular implementations—Redis (including RedLock and Redisson) and Zookeeper (with Curator)—detailing their mechanisms, code examples, advantages, drawbacks, and practical selection guidance.

Distributed LockRedisZookeeper
0 likes · 18 min read
Understanding Distributed Locks: Redis vs Zookeeper Implementations
Top Architect
Top Architect
Sep 13, 2020 · Backend Development

Java Distributed Caching with Redis and Redisson

This article explains why caching is essential for Java distributed applications, introduces Redis as an in‑memory data store, and demonstrates how the Redisson framework provides distributed cache implementations—including RMapCache, Spring Cache integration, and JCache support—complete with code examples and configuration details.

JCacheJavadistributed cache
0 likes · 8 min read
Java Distributed Caching with Redis and Redisson
Sohu Tech Products
Sohu Tech Products
Sep 2, 2020 · Backend Development

Implementing Distributed Locks with Redis and Redisson: Abstraction, Auto-Release, and Fault Tolerance

This article explains how to use Redis and Redisson for distributed locking, introduces an abstract DistributedLock interface for flexible implementations, demonstrates automatic lock release with functional callbacks, and discusses fallback strategies and monitoring to ensure reliability in backend systems.

Distributed LockJavaRedis
0 likes · 5 min read
Implementing Distributed Locks with Redis and Redisson: Abstraction, Auto-Release, and Fault Tolerance
Programmer DD
Programmer DD
Aug 27, 2020 · Backend Development

Unlocking Redisson: How Distributed Locks Work Under the Hood

This article walks through configuring Redisson with Maven, demonstrates a simple distributed lock example using Sentinel, lists the Redis commands and Lua script semantics involved, and provides a detailed source‑code analysis of the RLock interface, tryLock, unlock, and forceUnlock methods.

Distributed LockLuaRedis
0 likes · 13 min read
Unlocking Redisson: How Distributed Locks Work Under the Hood
MaGe Linux Operations
MaGe Linux Operations
Jul 29, 2020 · Backend Development

How to Build Safe Distributed Locks with Redis and Redisson

This article explains why simple SETNX/EXPIRE commands can cause deadlocks, shows how to achieve atomic lock operations with Lua scripts or the Redis SET command, and demonstrates how to use the Redisson library for re‑entrant, auto‑renewing distributed locks in Java.

Distributed LockLua ScriptRedis
0 likes · 8 min read
How to Build Safe Distributed Locks with Redis and Redisson
Top Architect
Top Architect
Jul 13, 2020 · Databases

Understanding Redis Distributed Locks: setnx, Redisson, and RedLock

This article explains the fundamentals and pitfalls of using Redis for distributed locking, covering the setnx command, the SET command with NX and PX options, Lua‑based lock scripts, Redisson’s lock implementations, and the RedLock algorithm, along with practical code examples.

Distributed LockLuaRedis
0 likes · 12 min read
Understanding Redis Distributed Locks: setnx, Redisson, and RedLock
Laravel Tech Community
Laravel Tech Community
Jul 4, 2020 · Databases

Redisson 3.13.2 Released with New Features and Bug Fixes

Redisson version 3.13.2, a Java‑based Redis client with in‑memory data grid capabilities officially recommended by Redis, has been released, introducing sharding support via ShardedRedisson, new CLUSTERDOWN error handling, added configuration methods to RedisNode, and numerous bug fixes covering sentinel handling, cache clearing, SSL reconnection, and more.

Bug FixesIn-Memory Data GridJava
0 likes · 2 min read
Redisson 3.13.2 Released with New Features and Bug Fixes
Architecture Digest
Architecture Digest
Jul 4, 2020 · Databases

Understanding Redis Locks: setnx, RedLock, and Redisson

This article explains the fundamentals of Redis locking mechanisms, including the setnx command, the RedLock algorithm, and how the Redisson Java client implements distributed locks with Lua scripts, highlighting pitfalls, best practices, and code examples for safe lock acquisition and release.

JavaLuaRedis
0 likes · 10 min read
Understanding Redis Locks: setnx, RedLock, and Redisson
Top Architect
Top Architect
Jun 15, 2020 · Backend Development

Redisson Distributed Lock: Maven Setup, Simple Usage, Redis Commands, Lua Script Semantics, and Source Code Analysis

This article presents a concise Redisson distributed‑lock example with Maven configuration, demonstrates basic lock usage, enumerates the Redis commands and Lua script semantics involved, and provides a detailed walkthrough of the relevant Java source code, highlighting key implementation details.

Backend DevelopmentDistributed LockJava
0 likes · 14 min read
Redisson Distributed Lock: Maven Setup, Simple Usage, Redis Commands, Lua Script Semantics, and Source Code Analysis
Architect's Tech Stack
Architect's Tech Stack
Jun 11, 2020 · Backend Development

Understanding Redis Distributed Locks: setnx, RedLock, and Redisson

This article explains how Redis can be used for distributed locking, covering the setnx command, the SET command with NX and PX options, common pitfalls, Lua‑based atomic unlock scripts, the Redisson client, and the RedLock algorithm for achieving reliable locks across multiple nodes.

Backend DevelopmentDistributed LockRedis
0 likes · 10 min read
Understanding Redis Distributed Locks: setnx, RedLock, and Redisson
Programmer DD
Programmer DD
Jun 11, 2020 · Backend Development

Mastering Redis Distributed Locks: From SETNX to RedLock and Redisson

This article explores Redis locking mechanisms, explaining the SETNX command, its limitations, the use of PX for timeouts, Lua scripts for atomic unlocks, and introduces Redisson’s advanced lock implementations including RedLock, while highlighting practical pitfalls and best‑practice recommendations for reliable distributed synchronization.

LuaRedisRedlock
0 likes · 11 min read
Mastering Redis Distributed Locks: From SETNX to RedLock and Redisson
Java Captain
Java Captain
May 25, 2020 · Backend Development

Implementing Distributed Locks with Redisson in Spring Boot

This article demonstrates how to integrate Redisson with Spring Boot to create Redis‑based distributed locks, covering Maven dependencies, YAML configuration, a Redisson configuration class, utility methods for locking and unlocking, and a sample controller that simulates concurrent access to verify lock behavior.

Distributed LockJavaRedis
0 likes · 8 min read
Implementing Distributed Locks with Redisson in Spring Boot
Architecture Digest
Architecture Digest
Apr 12, 2020 · Backend Development

Implementing Distributed Locks with Redisson

This article explains the principles, design considerations, and code implementation of Redisson's distributed lock, covering mutual exclusion, deadlock prevention, performance, reentrancy, watchdog auto‑extension, Lua scripting, and potential pitfalls in Redis sentinel setups.

JavaRedisWatchdog
0 likes · 8 min read
Implementing Distributed Locks with Redisson
Java Captain
Java Captain
Dec 20, 2019 · Backend Development

Using Redisson for Distributed Caching in Java Applications

This article explains why caching is essential for Java distributed applications, introduces Redis and Redisson, and demonstrates how to implement distributed caches using Redisson Maps, Spring Cache integration, and the JCache API with practical code examples.

JCacheJavaRedis
0 likes · 6 min read
Using Redisson for Distributed Caching in Java Applications
Didi Tech
Didi Tech
Mar 28, 2019 · Backend Development

Distributed Locks: Concepts, Evolution, and Implementation Strategies

Distributed locks provide mutual exclusion across multiple nodes in scalable, reliable systems, and can be implemented via simple Redis SETNX/EX patterns, ZooKeeper’s EPHEMERAL_SEQUENTIAL znodes with watches, or Redisson’s advanced Java‑centric primitives, each offering distinct trade‑offs in simplicity, consistency, and feature richness.

Distributed LockJavaRedis
0 likes · 21 min read
Distributed Locks: Concepts, Evolution, and Implementation Strategies
Programmer DD
Programmer DD
Feb 27, 2019 · Backend Development

Mastering Redis Distributed Locks with Redisson: From Simple Locks to Redlock

This article explains how to implement ordinary Redis distributed locks and the advanced Redlock algorithm using Redisson across single‑node, sentinel, and cluster architectures, provides complete Java code examples, and addresses common questions about expiration, high availability, and comparisons with Zookeeper.

Distributed LockJavaRedis
0 likes · 11 min read
Mastering Redis Distributed Locks with Redisson: From Simple Locks to Redlock
Programmer DD
Programmer DD
Feb 20, 2019 · Fundamentals

Mastering Redis Redlock: A Deep Dive into Distributed Lock Implementation

This article explains the classic Redis distributed lock using SETNX and Lua, highlights its pitfalls, introduces the advanced Redlock algorithm with step‑by‑step acquisition and release procedures, and provides concrete Java Redisson code examples, illustrating how to implement reliable distributed locks across multiple Redis nodes.

Distributed LockJavaRedis
0 likes · 12 min read
Mastering Redis Redlock: A Deep Dive into Distributed Lock Implementation
dbaplus Community
dbaplus Community
Nov 2, 2017 · Databases

What Makes Alibaba’s ApsaraCache, Codis, and Redisson Stand Out in the Redis Ecosystem?

This article summarizes key insights from the Redis track at the Cloud Xi Conference, covering Alibaba Cloud ApsaraCache's unique features, Redis Enterprise's market dominance and modules, Codis's evolution and asynchronous migration techniques, and Redisson's advanced Java client capabilities for distributed caching and locking.

ApsaraCacheCachingCodis
0 likes · 12 min read
What Makes Alibaba’s ApsaraCache, Codis, and Redisson Stand Out in the Redis Ecosystem?