Tag

reentrancy

1 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Nov 7, 2023 · Backend Development

Implementing Distributed Locks with Redis: Principles, Challenges, and Optimizations

This article explains why traditional local locks fail in distributed systems, surveys common distributed‑lock approaches, and provides a step‑by‑step guide to building a robust Redis‑based lock in Java—including expiration handling, UUID safety, Lua‑script atomicity, re‑entrancy, automatic renewal, and the RedLock algorithm—while comparing its performance against plain local locks.

Distributed LockJavaLua
0 likes · 17 min read
Implementing Distributed Locks with Redis: Principles, Challenges, and Optimizations
Architecture & Thinking
Architecture & Thinking
May 30, 2023 · Backend Development

Mastering Distributed Locks with Redis: Techniques, Commands, and Best Practices

This article explains the concept of distributed locks, outlines various implementation strategies, and dives deep into Redis-based solutions—including SETNX, GET, GETSET, EXPIRE, and Lua scripting—to achieve mutual exclusion, safety, reentrancy, and automatic lock release in high‑performance systems.

Backend developmentDistributed LockHigh Availability
0 likes · 10 min read
Mastering Distributed Locks with Redis: Techniques, Commands, and Best Practices
High Availability Architecture
High Availability Architecture
May 10, 2023 · Backend Development

Understanding Distributed Locks: Features, Implementations, and Best Practices

This article explains why distributed locks are needed, outlines their five essential properties, compares common implementation methods such as database, ZooKeeper, and Redis locks, and provides Java code examples for acquiring, releasing, re‑entering, and safely extending locks with watchdog mechanisms.

ConcurrencyDistributed LockJava
0 likes · 20 min read
Understanding Distributed Locks: Features, Implementations, and Best Practices