Skip to content
Tagged articles

Distributed Locks

18 articles · Page 1 of 1
macrozheng
macrozheng
Nov 1, 2026 · Cloud Native

Nacos 3.3: AI Agent Registry, MCP Lifecycle, DNS Discovery & Spring Boot 4 Support

Nacos 3.3.0 introduces protocol-neutral AI agent registry, shared AI resource retrieval, unified MCP lifecycle management, optional DNS service discovery, distributed locks with watchdog renewal, dynamic plugin management, default client authentication, and Spring Boot 4/Jackson 3 compatibility, along with numerous enhancements and bug fixes.

AI agentConfiguration ManagementDNS
0 likes · 32 min read
Nacos 3.3: AI Agent Registry, MCP Lifecycle, DNS Discovery & Spring Boot 4 Support
IT Services Circle
IT Services Circle
Oct 5, 2026 · Databases

Redis Distributed Locks: 7 Critical Pitfalls and How to Avoid Them

This article details seven common pitfalls in Redis distributed locking, covering atomic acquisition, ownership verification, lease expiration, watchdog limitations, replication risks, Redlock assumptions, and the need for fencing tokens, with code examples and comparisons to ZooKeeper and etcd.

Distributed LocksMartin KleppmannRedLock
0 likes · 32 min read
Redis Distributed Locks: 7 Critical Pitfalls and How to Avoid Them
Yumin Fish Harvest
Yumin Fish Harvest
Oct 2, 2026 · Backend Development

Concurrent Write Correctness: Choosing Between Conditional Updates, Pessimistic/Optimistic Locks, and Distributed Locks

This article analyzes four concurrency control patterns — conditional updates, pessimistic locking, optimistic locking with version numbers, and distributed locks — using inventory deduction, order editing, and third-party push examples. It explains when each pattern applies, how to combine them with idempotency, and provides concrete SQL and Redis implementations.

Distributed LocksIdempotencyRedis
0 likes · 32 min read
Concurrent Write Correctness: Choosing Between Conditional Updates, Pessimistic/Optimistic Locks, and Distributed Locks
CodeOnCode
CodeOnCode
Sep 28, 2026 · Backend Development

Don't Blame Redis: Mixed GC Pauses Extend Lock Hold Times in G1

This article explains how frequent G1 Mixed GC pauses, not Redis slowness, cause distributed lock waits by stalling lock-holding threads, and details a six-step troubleshooting process linking GC logs, business logs, and heap analysis to identify large objects, compensation tasks, and unbounded local caches as root causes.

Distributed LocksG1 GCHumongous Objects
0 likes · 19 min read
Don't Blame Redis: Mixed GC Pauses Extend Lock Hold Times in G1
LuTiao Programming
LuTiao Programming
Sep 22, 2026 · Backend Development

Beyond Distributed Locks: Three-Layer Idempotency for Spring Boot Order APIs

The article demonstrates why distributed locks alone fail to guarantee idempotency in Spring Boot order APIs, and presents a three-layer solution combining Idempotency-Key with request fingerprinting, Redis SET NX for fast duplicate interception, and a database unique constraint as the ultimate safeguard against duplicate orders even after crashes or Redis failures.

API DesignDistributed LocksIdempotency
0 likes · 25 min read
Beyond Distributed Locks: Three-Layer Idempotency for Spring Boot Order APIs
Internet Backend Architecture Stack
Internet Backend Architecture Stack
Aug 17, 2026 · Backend Development

Microservice Distributed Locks: Solving Timeout, Mis-deletion, Renewal & Redlock Pitfalls

This article provides a comprehensive guide to distributed locks in microservices, covering why local locks fail, four fatal flaws of basic implementations, advanced manual locks with Lua scripts, watchdog auto-renewal, Redisson production usage, Redlock for high availability, and a real-world seckill overselling case study.

Distributed LocksLua ScriptRedLock
0 likes · 10 min read
Microservice Distributed Locks: Solving Timeout, Mis-deletion, Renewal & Redlock Pitfalls
Zhuanzhuan Tech
Zhuanzhuan Tech
Jun 4, 2025 · Backend Development

A Comprehensive Guide to Redisson Distributed Locks in Java

This article explains Redisson's various distributed lock mechanisms—including watchdog, reentrant lock, multi‑lock, read‑write lock, semaphore, RedLock, and CountDownLatch—detailing their principles, usage patterns, code examples, and best‑practice recommendations for robust backend concurrency control.

ConcurrencyDistributed LocksJava
0 likes · 16 min read
A Comprehensive Guide to Redisson Distributed Locks in Java
Architect
Architect
Sep 21, 2023 · Databases

Redis Deep Dive: 20 Classic Interview Questions Explained

This article provides a comprehensive technical walkthrough of Redis, covering its core concepts, data structures, performance tricks, caching pitfalls, persistence options, high‑availability architectures, distributed locking mechanisms, and consistency strategies, all illustrated with concrete examples and code snippets.

CachingDistributed LocksHigh Availability
0 likes · 50 min read
Redis Deep Dive: 20 Classic Interview Questions Explained
Architect
Architect
Jan 16, 2023 · Databases

Redis Fundamentals: Pipelines, Pub/Sub, Expiration, Transactions, Persistence, Distributed Locks and Clustering

This article provides a comprehensive overview of Redis, covering basic concepts, pipeline optimization, publish/subscribe messaging, key expiration strategies, transaction behavior, persistence mechanisms (RDB, AOF, hybrid), distributed locking techniques, Redisson and Redlock algorithms, as well as high‑availability setups using replication, Sentinel and Cluster modes.

CachingDistributed LocksRedis
0 likes · 32 min read
Redis Fundamentals: Pipelines, Pub/Sub, Expiration, Transactions, Persistence, Distributed Locks and Clustering
Tencent Cloud Developer
Tencent Cloud Developer
Dec 1, 2022 · Databases

Mastering Redis: From Basics, Installation to Advanced Features and Real‑World Use Cases

This comprehensive guide explains what Redis is, its core data structures, typical scenarios such as caching, counters, message queues and leaderboards, installation steps on Linux, configuration options, advanced features like pipelines, Lua scripting, persistence mechanisms, replication, caching strategies, consistency challenges, and distributed locking techniques.

CachingDistributed LocksRedis
0 likes · 64 min read
Mastering Redis: From Basics, Installation to Advanced Features and Real‑World Use Cases
Code Ape Tech Column
Code Ape Tech Column
Dec 29, 2021 · Backend Development

Comprehensive Interview Questions and Answers on Backend Development Topics

This article presents a collection of interview questions covering backend fundamentals such as linked‑list sorting, encryption differences, TCP reliability, IO models, Hystrix, delayed tasks, HTTPS flow, transaction isolation, index pitfalls, virtual memory, Redis leaderboards, distributed locks, zero‑copy techniques, Java synchronized, and Snowflake ID generation.

Distributed LocksHystrixIO models
0 likes · 30 min read
Comprehensive Interview Questions and Answers on Backend Development Topics
High Availability Architecture
High Availability Architecture
Oct 16, 2021 · Backend Development

Ensuring Data Consistency Between MySQL and Redis: Strategies for Single‑Threaded and Multi‑Threaded Scenarios

This article explains what data consistency means for MySQL and Redis, analyzes inconsistency cases in both single‑threaded and concurrent environments, and proposes practical strategies—including read‑only and read‑write cache handling, message‑queue retries, binlog subscription, delayed double‑delete, and distributed locking—to achieve eventual or strong consistency.

Data ConsistencyDistributed LocksMessage Queue
0 likes · 16 min read
Ensuring Data Consistency Between MySQL and Redis: Strategies for Single‑Threaded and Multi‑Threaded Scenarios
Open Source Linux
Open Source Linux
May 2, 2020 · Big Data

Mastering Apache Zookeeper: Core Concepts and Real-World Big Data Applications

Apache Zookeeper is an open‑source coordination service that provides reliable distributed synchronization, configuration management, and naming for big‑data components such as Hadoop, HBase, and Kafka, offering features like hierarchical znode structures, watches, master election, and distributed locks to maintain cluster health.

Apache ZookeeperDistributed Locksbig data
0 likes · 17 min read
Mastering Apache Zookeeper: Core Concepts and Real-World Big Data Applications
21CTO
21CTO
Jan 14, 2019 · Backend Development

How SuNing Financial Scaled Its Red Envelope System for Billion-User Peaks

This article details SuNing Financial’s red‑envelope platform architecture and evolution, covering high‑concurrency challenges, traffic shaping, asynchronous processing, multi‑level caching, Redis‑based distributed locks, task scheduling, payment‑chain isolation, high‑availability deployment, multi‑layer flow control, monitoring, and future scalability directions.

CachingDistributed LocksRedis
0 likes · 14 min read
How SuNing Financial Scaled Its Red Envelope System for Billion-User Peaks
Efficient Ops
Efficient Ops
May 2, 2017 · Big Data

Mastering ZooKeeper: Core Concepts and Real-World Big Data Applications

This article introduces ZooKeeper’s fundamental architecture, explains its key concepts such as cluster roles, sessions, ZNodes, watches, and ACLs, and then details how it powers essential distributed coordination tasks—including configuration management, naming services, master election, and distributed locks—in large‑scale Hadoop and HBase ecosystems.

Distributed LocksHBaseHadoop
0 likes · 25 min read
Mastering ZooKeeper: Core Concepts and Real-World Big Data Applications
dbaplus Community
dbaplus Community
Mar 16, 2017 · Backend Development

Redlock vs Antirez: A Deep Dive into Distributed Lock Safety and Fencing Tokens

This article revisits the Redlock debate by examining Antirez's rebuttal to Martin Kleppmann, analyzing Hacker News discussions, comparing Redis, ZooKeeper, and Chubby lock implementations, and exploring timing assumptions, clock skew, and fencing token mechanisms to assess distributed lock safety.

ChubbyDistributed LocksRedLock
0 likes · 32 min read
Redlock vs Antirez: A Deep Dive into Distributed Lock Safety and Fencing Tokens
Qunar Tech Salon
Qunar Tech Salon
Dec 30, 2014 · Fundamentals

Learning ZooKeeper with Curator: Comprehensive Examples and Recipes

This guide offers a complete collection of practical examples that demonstrate Curator's usage for Apache ZooKeeper, covering leader election, distributed locks, barriers, counters, caches, queues, and transaction handling, with each chapter independent and source code available on GitHub.

CuratorDistributed LocksJava
0 likes · 3 min read
Learning ZooKeeper with Curator: Comprehensive Examples and Recipes