Tagged articles

Distributed Lock

431 articles · Page 4 of 5
Open Source Linux
Open Source Linux
Apr 16, 2021 · Operations

Mastering ZooKeeper: Core Concepts, Architecture, and Real‑World Use Cases

This comprehensive guide explains ZooKeeper’s role as a distributed coordination service, covering its consistency guarantees, Znode hierarchy, ZAB protocol, watcher mechanism, ACLs, server roles, data synchronization modes, deployment options, dynamic scaling, and typical use cases such as configuration management, service discovery, leader election, distributed locks and queues.

ACLDistributed CoordinationDistributed Lock
0 likes · 23 min read
Mastering ZooKeeper: Core Concepts, Architecture, and Real‑World Use Cases
Ops Development Stories
Ops Development Stories
Apr 12, 2021 · Backend Development

Mastering Zookeeper Distributed Locks: From Seckill to Read‑Write Locks

This article explains how Zookeeper’s distributed lock mechanisms—including non‑fair, fair, and read‑write locks—can prevent overselling in high‑traffic seckill scenarios, details their advantages and drawbacks, and provides practical Curator‑based Java implementations with code examples.

CuratorDistributed LockJava
0 likes · 13 min read
Mastering Zookeeper Distributed Locks: From Seckill to Read‑Write Locks
macrozheng
macrozheng
Apr 1, 2021 · Backend Development

21 Essential Redis Usage Tips to Avoid Common Pitfalls

This article compiles 21 practical Redis guidelines covering key naming, value sizing, expiration strategies, batch operations, risky commands, distributed lock patterns, cache consistency, capacity planning, and configuration tips, helping developers and operators build reliable, high‑performance Redis‑backed systems.

CachingDistributed LockRedis
0 likes · 25 min read
21 Essential Redis Usage Tips to Avoid Common Pitfalls
Code Ape Tech Column
Code Ape Tech Column
Mar 29, 2021 · Backend Development

Understanding Distributed Locks and Their Implementation with Redis and Zookeeper

Distributed locks ensure exclusive access across multiple servers in high-concurrency scenarios, and this article explains their necessity, illustrates problems with simple locks, and details practical implementations using Redis and Zookeeper, including lock acquisition, release, expiration handling, and avoiding deadlocks.

Distributed LockRedisZookeeper
0 likes · 13 min read
Understanding Distributed Locks and Their Implementation with Redis and Zookeeper
Java Captain
Java Captain
Mar 28, 2021 · Backend Development

Analysis and Solutions for Redis Distributed Lock Over‑selling in High‑Concurrency Seckill Scenario

This article examines a real‑world flash‑sale incident where Redis distributed locks failed, causing severe overselling, and presents root‑cause analysis, safer lock implementation with Lua scripts, atomic stock handling, refactored Java code, and deeper reflections on lock necessity and further optimizations.

Distributed LockJavaLua
0 likes · 10 min read
Analysis and Solutions for Redis Distributed Lock Over‑selling in High‑Concurrency Seckill Scenario
360 Tech Engineering
360 Tech Engineering
Mar 15, 2021 · Backend Development

Distributed Lock Implementations with Redis, Etcd, and Zookeeper

This article explains the concept, application scenarios, and detailed implementations of distributed locks using Redis, Etcd, and Zookeeper, providing Java code examples, lock mechanisms, lease handling, watch features, and a comparative summary of their advantages and drawbacks.

Distributed Lock
0 likes · 14 min read
Distributed Lock Implementations with Redis, Etcd, and Zookeeper
360 Quality & Efficiency
360 Quality & Efficiency
Mar 12, 2021 · Backend Development

Distributed Lock Implementations with Redis, Etcd, and Zookeeper

This article explains the concept of distributed locks, outlines common application scenarios, and provides detailed Java implementations using Redis (including Redisson and RedLock), Etcd, and Zookeeper, complete with code examples and a comparative summary of their advantages and drawbacks.

Distributed LockEtcdRedis
0 likes · 14 min read
Distributed Lock Implementations with Redis, Etcd, and Zookeeper
360 Smart Cloud
360 Smart Cloud
Feb 25, 2021 · Backend Development

Understanding Distributed Locks: Concepts, System Classification, and Implementations with Redis and etcd/Zookeeper

This article explains the fundamentals of distributed locks, compares lock implementations based on asynchronous replication and Paxos protocols, and provides practical Redis and etcd/Zookeeper examples—including exclusive and shared lock mechanisms, code snippets, and usage considerations for reliability and safety.

Distributed LockEtcdZookeeper
0 likes · 9 min read
Understanding Distributed Locks: Concepts, System Classification, and Implementations with Redis and etcd/Zookeeper
Selected Java Interview Questions
Selected Java Interview Questions
Feb 4, 2021 · Backend Development

Understanding Thread Locks, Process Locks, and Distributed Locks: Concepts and Implementation with Redis and Zookeeper

This article explains the differences between thread, process, and distributed locks, describes how distributed locks are implemented using third‑party storage such as Redis and Zookeeper, and discusses practical scenarios, advantages, and design considerations for using distributed locks in high‑concurrency systems.

Distributed Lock
0 likes · 10 min read
Understanding Thread Locks, Process Locks, and Distributed Locks: Concepts and Implementation with Redis and Zookeeper
Programmer DD
Programmer DD
Dec 29, 2020 · Backend Development

Mastering Locks: Optimistic, Pessimistic, and Distributed Strategies for High-Concurrency Systems

This article explains the different lock types—pessimistic, optimistic, and distributed—covers their use cases, compares their advantages and drawbacks, and provides concrete code examples and four practical solutions for handling high‑concurrency deduction scenarios such as inventory or balance reduction.

Distributed LockJavaoptimistic lock
0 likes · 13 min read
Mastering Locks: Optimistic, Pessimistic, and Distributed Strategies for High-Concurrency Systems
Java Interview Crash Guide
Java Interview Crash Guide
Dec 29, 2020 · Backend Development

How Distributed Locks Prevent Chaos in Massive Red‑Packet Systems

This article explains why traditional locks fail under massive concurrent traffic, how distributed locks coordinate multiple servers to ensure correct total payouts, and compares Redis and Zookeeper implementations, highlighting their mechanisms, pitfalls, and practical considerations for large‑scale systems.

Distributed LockZookeeperconcurrency
0 likes · 13 min read
How Distributed Locks Prevent Chaos in Massive Red‑Packet Systems
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
Laravel Tech Community
Laravel Tech Community
Dec 15, 2020 · Backend Development

lock4j-spring-boot-starter 2.1.0 Release Overview

lock4j-spring-boot-starter is a Spring Boot distributed lock library that provides simple yet powerful locking capabilities with support for Redisson, RedisTemplate, and Zookeeper, and the 2.1.0 release adds global configuration, executor enhancements, default priority ordering, and both declarative and programmatic usage options.

Distributed LockJavaRedis
0 likes · 2 min read
lock4j-spring-boot-starter 2.1.0 Release Overview
Programmer DD
Programmer DD
Dec 6, 2020 · Databases

Master Redis Interview: Persistence, Caching Strategies, Clustering & More

This comprehensive guide covers essential Redis interview topics, including persistence mechanisms (RDB and AOF), cache challenges such as avalanche, penetration and pre‑warming, data types and their use cases, internal structures, eviction policies, single‑thread performance, clustering solutions, distributed locking, transactions, and best practices for high‑traffic environments.

CachingClusteringDistributed Lock
0 likes · 25 min read
Master Redis Interview: Persistence, Caching Strategies, Clustering & More
dbaplus Community
dbaplus Community
Dec 3, 2020 · Backend Development

Boosting Distributed Lock Throughput for Thousands of Orders per Second

Learn how to overcome the concurrency bottleneck of traditional distributed locks in high‑traffic e‑commerce scenarios by applying segment‑based locking and other optimization techniques, enabling thousands of orders per second while preventing inventory overselling.

Distributed LockHigh concurrencybackend optimization
0 likes · 11 min read
Boosting Distributed Lock Throughput for Thousands of Orders per Second
Code Ape Tech Column
Code Ape Tech Column
Nov 30, 2020 · Backend Development

Master Redis: Persistence, Caching Pitfalls, Clustering & Performance Tips

This article provides a comprehensive guide to Redis for interview preparation, covering persistence mechanisms, common caching challenges such as avalanche and penetration, data types and their use cases, internal structures, expiration policies, single‑threaded performance, clustering options, distributed locking, and best‑practice solutions.

CachingClusteringData Types
0 likes · 27 min read
Master Redis: Persistence, Caching Pitfalls, Clustering & Performance Tips
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
Java Architect Essentials
Java Architect Essentials
Oct 2, 2020 · Backend Development

Handling Cache Penetration, Breakdown, and Avalanche in Backend Systems

This article explains the three major cache issues—penetration, breakdown, and avalanche—describes why they occur in high‑traffic systems, and presents four practical mitigation strategies including Bloom filters, short‑lived empty caches, distributed mutex locks with Redis or Memcache, and resource isolation with Hystrix.

CacheCache BreakdownCache Penetration
0 likes · 9 min read
Handling Cache Penetration, Breakdown, and Avalanche in Backend Systems
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
vivo Internet Technology
vivo Internet Technology
Sep 23, 2020 · Databases

Redis Caching: Use Cases, Best Practices, Common Pitfalls, and Monitoring

The article explains how Redis caching boosts high‑concurrency applications by outlining common use cases such as counters, session storage, rate limiting, leaderboards and distributed locks, then details best‑practice guidelines, typical pitfalls like TTL overwrites and cache stampedes, and essential monitoring techniques for performance and reliability.

Distributed LockRedisperformance
0 likes · 13 min read
Redis Caching: Use Cases, Best Practices, Common Pitfalls, and Monitoring
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
Programmer DD
Programmer DD
Sep 8, 2020 · Backend Development

Why Redis Distributed Locks Fail in Flash Sales and How to Fix Them

This article examines a real flash‑sale incident where Redis distributed locks expired, causing overselling, analyzes the root causes such as lock safety and non‑atomic stock checks, and presents safer lock implementations, atomic stock operations, and architectural reflections to prevent future failures.

Distributed LockRedisperformance
0 likes · 11 min read
Why Redis Distributed Locks Fail in Flash Sales and How to Fix Them
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 4, 2020 · Databases

Comprehensive Guide to Redis Data Structures, Persistence, Transactions, Clustering, and Applications

This article provides an in‑depth technical overview of Redis, covering its core data structures, memory allocation strategies, eviction policies, persistence mechanisms (RDB and AOF), transaction model, sentinel and cluster architectures, Pub/Sub messaging, and multiple approaches to implementing distributed locks.

ClusteringData StructuresDistributed Lock
0 likes · 89 min read
Comprehensive Guide to Redis Data Structures, Persistence, Transactions, Clustering, and Applications
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
Top Architect
Top Architect
Aug 8, 2020 · Backend Development

Analysis and Solutions for Redis Distributed Lock Over‑sell Incident in High‑Concurrency Seckill

This article examines a real-world over‑sell incident caused by an unsafe Redis distributed lock in a high‑traffic seckill service, analyzes the root causes such as lock expiration and non‑atomic stock checks, and presents safer lock implementations, atomic stock operations, and refactored code to prevent future overselling.

AtomicityDistributed LockJava
0 likes · 11 min read
Analysis and Solutions for Redis Distributed Lock Over‑sell Incident in High‑Concurrency Seckill
Java Backend Technology
Java Backend Technology
Jul 31, 2020 · Backend Development

Why Redis Distributed Locks Can Fail: Real-World Over‑Sale Case & Fixes

This article analyzes a real over‑selling incident caused by unsafe Redis distributed locks, explains the root causes such as lock expiration and non‑atomic stock checks, and presents safer lock implementations, atomic stock updates, and architectural improvements to prevent future failures.

Distributed LockHigh concurrencyJava
0 likes · 11 min read
Why Redis Distributed Locks Can Fail: Real-World Over‑Sale Case & Fixes
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
58 Tech
58 Tech
Jul 27, 2020 · Databases

Implementing Distributed Locks with Databases, Redis, and Zookeeper

This article explains how to build distributed locks using three different technologies—database tables, Redis, and Zookeeper—detailing their implementation steps, code examples, advantages, drawbacks, and practical considerations for choosing the right solution in real‑world scenarios.

Distributed LockZookeeperconcurrency
0 likes · 17 min read
Implementing Distributed Locks with Databases, Redis, and Zookeeper
Selected Java Interview Questions
Selected Java Interview Questions
Jul 16, 2020 · Backend Development

Understanding Thread Locks, Process Locks, and Distributed Locks in Distributed Systems

The article explains the differences between thread, process, and distributed locks, describes how distributed locks are implemented using third‑party storage like Redis or Zookeeper, and discusses their practical use cases, advantages, and design considerations in high‑concurrency backend applications.

Backend DevelopmentDistributed LockZookeeper
0 likes · 11 min read
Understanding Thread Locks, Process Locks, and Distributed Locks in Distributed Systems
Laravel Tech Community
Laravel Tech Community
Jul 15, 2020 · Databases

Comprehensive Redis Interview Questions and Answers

This article provides a comprehensive overview of Redis, covering its definition, advantages over memcached, supported data types, memory consumption, eviction policies, clustering options, persistence mechanisms, distributed lock implementations, cache penetration and avalanche solutions, and best-use scenarios compared to other caching systems.

CacheClusteringDistributed Lock
0 likes · 26 min read
Comprehensive Redis Interview Questions and Answers
Qunar Tech Salon
Qunar Tech Salon
Jul 14, 2020 · Backend Development

Distributed Lock Mechanisms and Their Redis Implementations

This article explains the concept of distributed locks, compares various implementation approaches such as Memcached, Zookeeper, Chubby, and Redis, and details single‑node and multi‑node Redis lock designs—including SETNX, SET with NX/EX options, Redisson, and the Redlock algorithm—while highlighting their advantages, pitfalls, and best‑practice recommendations.

Distributed LockRedisRedlock
0 likes · 14 min read
Distributed Lock Mechanisms and Their Redis Implementations
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
Alibaba Cloud Developer
Alibaba Cloud Developer
Jul 5, 2020 · Backend Development

How Alibaba Cloud Implements Reliable Distributed Locks for Shared Resources

Distributed locks ensure exclusive access to shared resources across multiple machines, and this article explains their evolution from single-machine locks, classifies system designs, and details Alibaba Cloud Storage’s practical implementation, covering strict mutual exclusion, availability, and lock-switching efficiency with real-world examples.

Alibaba CloudDistributed Lockavailability
0 likes · 13 min read
How Alibaba Cloud Implements Reliable Distributed Locks for Shared Resources
Java Backend Technology
Java Backend Technology
Jun 18, 2020 · Backend Development

How to Build a Reentrant Distributed Lock with Redis, ThreadLocal, and Lua

This article explains why redoing a system can be simpler than refactoring, then dives into implementing a reentrant distributed lock using Redis with both ThreadLocal and Redis Hash approaches, providing detailed Java code, Lua scripts, and practical tips for handling lock expiration and multi‑process reentrancy.

Distributed LockJavaLua
0 likes · 17 min read
How to Build a Reentrant Distributed Lock with Redis, ThreadLocal, and Lua
Architecture Digest
Architecture Digest
Jun 16, 2020 · Backend Development

Why Use Distributed Locks? Implementation with Redis, Redisson, and Zookeeper

The article explains the inventory oversell problem in distributed e‑commerce systems, why native JVM locks fail across multiple machines, and presents practical implementations of distributed locks using Redis (including RedLock and Redisson) and Zookeeper (with Curator), comparing their advantages and drawbacks.

Distributed LockJava concurrencydistributed systems
0 likes · 17 min read
Why Use Distributed Locks? Implementation with Redis, Redisson, and Zookeeper
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
Programmer DD
Programmer DD
Jun 14, 2020 · Backend Development

How Distributed Locks Prevent Over‑Allocation in Massive Red‑Packet Systems

This article explains why traditional locks fail in high‑concurrency scenarios like large‑scale red‑packet distribution, and demonstrates how distributed locking mechanisms using Redis and Zookeeper ensure correct total amounts while avoiding deadlocks and thundering‑herd problems.

Distributed LockRedisZookeeper
0 likes · 14 min read
How Distributed Locks Prevent Over‑Allocation in Massive Red‑Packet Systems
Architecture Digest
Architecture Digest
Jun 13, 2020 · Cloud Native

Using etcd and jetcd for Master‑Standby Service Coordination in Java

This article explains what etcd is, describes a master‑standby high‑availability scenario, and provides a step‑by‑step Java implementation with jetcd, including Maven dependency, client initialization, lease and lock APIs, and complete test cases that demonstrate automatic failover.

Distributed LockEtcdJava
0 likes · 9 min read
Using etcd and jetcd for Master‑Standby Service Coordination in Java
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
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
Open Source Linux
Open Source Linux
May 4, 2020 · Databases

Redis Deep Dive: Core Concepts, Performance, Persistence, and Scaling Strategies

This comprehensive guide explains what Redis is, its advantages and drawbacks, why it excels as a high‑performance cache, the supported data structures, persistence mechanisms, memory eviction policies, threading model, transaction handling, clustering and sharding options, distributed locking, common cache pitfalls, and useful tooling for Java developers.

CachingDistributed LockIn-Memory Database
0 likes · 45 min read
Redis Deep Dive: Core Concepts, Performance, Persistence, and Scaling Strategies
21CTO
21CTO
May 2, 2020 · Backend Development

Master Distributed Caching, Rate Limiting, Locks & Idempotency with Alibaba Tools

This article introduces Alibaba's distributed‑tools component, explaining how to configure Redis/Tair cache, implement fixed‑window rate limiting, use a high‑performance distributed lock template, and apply idempotency mechanisms with annotations and templates to ensure reliable microservice operations.

CachingDistributed Lockidempotency
0 likes · 15 min read
Master Distributed Caching, Rate Limiting, Locks & Idempotency with Alibaba Tools
dbaplus Community
dbaplus Community
Apr 27, 2020 · Backend Development

Why Your Redis Distributed Lock May Fail and How to Fix It

This article examines common failure scenarios of Redis‑based distributed locks, compares a simple lock implementation with the Redlock algorithm, and provides practical solutions for single‑point failures, lock expiration issues, clock drift, and high‑concurrency pitfalls.

Distributed LockJavaLock Pitfalls
0 likes · 18 min read
Why Your Redis Distributed Lock May Fail and How to Fix It
Java Backend Technology
Java Backend Technology
Mar 7, 2020 · Backend Development

Mastering ZooKeeper: Core Concepts, Distributed Locks, and Cluster Management

This article explains ZooKeeper's role as a distributed coordination service, covering its architecture, znode types, watch mechanism, configuration management, distributed locking, queue handling, data replication, leader election, and synchronization processes for building reliable backend systems.

Coordination ServiceDistributed LockZookeeper
0 likes · 18 min read
Mastering ZooKeeper: Core Concepts, Distributed Locks, and Cluster Management
ITPUB
ITPUB
Mar 2, 2020 · Big Data

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

This article explains ZooKeeper’s architecture, key concepts such as roles, sessions, ZNodes, versioning, ACLs, and watchers, and demonstrates how it powers essential big‑data components like Hadoop’s ResourceManager and HBase’s master election, naming service, and distributed locking.

Big DataDistributed CoordinationDistributed Lock
0 likes · 23 min read
Mastering ZooKeeper: Core Concepts and Real-World Big Data Applications
Java Interview Crash Guide
Java Interview Crash Guide
Feb 12, 2020 · Backend Development

How Distributed Locks Prevent Chaos in Massive Red‑Packet Systems

Distributed locks ensure that, across hundreds of servers handling millions of concurrent red‑packet requests, only one instance updates the shared total at a time, preventing inconsistencies and deadlocks, with implementations ranging from Java synchronized blocks to Redis SETNX and Zookeeper Znode mechanisms.

Distributed LockZookeeperconcurrency
0 likes · 14 min read
How Distributed Locks Prevent Chaos in Massive Red‑Packet Systems
FunTester
FunTester
Feb 12, 2020 · Backend Development

How to Stress-Test a VIP Payment Callback API with Distributed Locks

This article walks through a complete performance‑testing setup for a VIP purchase callback API, detailing the request flow, distributed‑lock handling with Redis, parameter generation using AtomicInteger, Java implementation, and pitfalls to ensure accurate, high‑concurrency testing.

APIDistributed LockJava
0 likes · 6 min read
How to Stress-Test a VIP Payment Callback API with Distributed Locks
Alibaba Cloud Native
Alibaba Cloud Native
Jan 22, 2020 · Backend Development

Mastering Microservices: RPC, Service Discovery, Config, Scheduling & More

This comprehensive guide explains the benefits of microservices and walks through core building blocks such as RPC, service discovery, configuration management, task scheduling, distributed locking, unified monitoring, caching strategies, message queues, distributed transactions, CAP theory, seckill handling, Docker isolation, and modern CI/CD deployment pipelines.

Distributed LockMicroservicesMonitoring
0 likes · 24 min read
Mastering Microservices: RPC, Service Discovery, Config, Scheduling & More
Senior Brother's Insights
Senior Brother's Insights
Dec 25, 2019 · Backend Development

Ensuring Idempotency in Distributed Systems: Strategies and Best Practices

The article explains why idempotent operations are essential in high‑traffic systems, defines idempotency, and presents a comprehensive set of techniques—including unique indexes, token validation, pessimistic and optimistic locking, distributed locks, select‑plus‑insert patterns, state‑machine design, and API safeguards—to guarantee consistent outcomes even under repeated requests.

Distributed Lockdatabaseidempotency
0 likes · 9 min read
Ensuring Idempotency in Distributed Systems: Strategies and Best Practices
Architect's Tech Stack
Architect's Tech Stack
Dec 24, 2019 · Operations

Application and Principles of Zookeeper in Microservices

This article explains Zookeeper's core features—such as its tree‑like directory, persistent and ephemeral nodes, sequential ordering, and watcher mechanism—and demonstrates how these capabilities enable distributed locks and service registration/discovery within microservice architectures.

Distributed CoordinationDistributed LockMicroservices
0 likes · 6 min read
Application and Principles of Zookeeper in Microservices
Programmer DD
Programmer DD
Dec 10, 2019 · Databases

Mastering Redis: From Caching Basics to Distributed Locks and Cluster Scaling

This comprehensive guide explores Redis caching fundamentals, data structures, key‑search techniques, distributed lock implementation, asynchronous queues, persistence options (RDB, AOF, hybrid), pipeline usage, replication, Sentinel monitoring, and cluster sharding with consistent hashing to help developers build high‑performance, reliable systems.

CachingDistributed LockPersistence
0 likes · 20 min read
Mastering Redis: From Caching Basics to Distributed Locks and Cluster Scaling
Java High-Performance Architecture
Java High-Performance Architecture
Nov 8, 2019 · Databases

How to Prevent Redis Key Race Conditions: Optimistic Locks, Distributed Locks, Timestamps & Queues

This article explains the Redis concurrent key competition problem, illustrates typical scenarios where multiple clients modify the same key, and presents four practical solutions—optimistic locking with WATCH/EXEC, distributed locks, timestamp ordering, and message‑queue serialization—to ensure data correctness under high concurrency.

Distributed LockMessage Queueconcurrency
0 likes · 5 min read
How to Prevent Redis Key Race Conditions: Optimistic Locks, Distributed Locks, Timestamps & Queues
Selected Java Interview Questions
Selected Java Interview Questions
Oct 30, 2019 · Backend Development

Common Cache Problems and Their Solutions: Avalanche, Penetration, Concurrency, and DB‑Cache Inconsistency

This article explains typical cache issues such as cache avalanche, cache penetration, concurrent write conflicts, and database‑cache write inconsistency, and provides practical mitigation strategies including high‑availability setups, circuit breakers, placeholder values, distributed locks, double‑delete, and cache‑aside patterns.

Cache AsideCache AvalancheCache Penetration
0 likes · 8 min read
Common Cache Problems and Their Solutions: Avalanche, Penetration, Concurrency, and DB‑Cache Inconsistency
Big Data Technology Architecture
Big Data Technology Architecture
Aug 26, 2019 · Backend Development

Redis Distributed Lock Implementation: Design, Issues, and Lessons Learned

This article shares a practical experience of implementing a Redis‑based distributed lock, explains the lock acquisition and release processes, discusses common pitfalls such as expiration handling and concurrency bugs, and provides Q&A on design choices, high‑availability, and future improvements.

Distributed LockHigh AvailabilityLock design
0 likes · 6 min read
Redis Distributed Lock Implementation: Design, Issues, and Lessons Learned
Java Backend Technology
Java Backend Technology
Jul 29, 2019 · Backend Development

How Redis Powers Distributed Locks: Design, Pitfalls, and Solutions

This article explores the design and implementation of a Redis‑based distributed lock used since 2013, analyzes lock acquisition and release mechanisms, discusses common pitfalls such as expiration handling and race conditions, and presents possible improvements like Lua scripts and Redisson.

Distributed LockJavaRedis
0 likes · 8 min read
How Redis Powers Distributed Locks: Design, Pitfalls, and Solutions
Big Data Technology Architecture
Big Data Technology Architecture
Jul 22, 2019 · Databases

Beyond Caching: Common Redis Use Cases and Their Pitfalls

This article explores Redis beyond its traditional caching role, covering distributed locks, message queues, bitmaps, Bloom filters, geolocation, and rate limiting, while highlighting typical implementation patterns, code examples, and the inherent limitations of each scenario.

Distributed LockGEOMessage Queue
0 likes · 12 min read
Beyond Caching: Common Redis Use Cases and Their Pitfalls
Java Captain
Java Captain
Jul 14, 2019 · Backend Development

Backend Architecture, Distributed Locks, and Session Management in Java

This article explains a Java backend architecture with front‑end/back‑end separation, deployment diagrams, the concepts of thread, process and distributed locks, implementations using database optimistic locking, Redis and Zookeeper, session handling in distributed systems, and various related code examples and best‑practice notes.

Backend DevelopmentDistributed LockJava
0 likes · 12 min read
Backend Architecture, Distributed Locks, and Session Management in Java
HomeTech
HomeTech
Jun 5, 2019 · Backend Development

Performance Optimization of a New‑Car E‑commerce CRM System: Distributed Locks with ZooKeeper and Redis Cache Improvements

This article details how a new‑car e‑commerce CRM system was optimized for high availability by introducing ZooKeeper‑based distributed locks, mitigating herd effects, segmenting locks per merchant, and redesigning Redis caching with sorted sets to efficiently rank consultants by daily call volume, resulting in significant performance gains under high concurrency.

Distributed LockJavaPerformance Optimization
0 likes · 10 min read
Performance Optimization of a New‑Car E‑commerce CRM System: Distributed Locks with ZooKeeper and Redis Cache Improvements
21CTO
21CTO
May 27, 2019 · Databases

Mastering Redis: When to Use Strings, Lists, Sets, Hashes, and Zsets

This article explains Redis' core data types—strings, lists, sets, hashes, sorted sets, and more—detailing their characteristics, common commands, practical use‑cases such as caching, counters, distributed locks, and ranking, and provides best‑practice tips for key design and performance.

Data StructuresDistributed Lockdatabase
0 likes · 7 min read
Mastering Redis: When to Use Strings, Lists, Sets, Hashes, and Zsets
Tencent Cloud Developer
Tencent Cloud Developer
May 14, 2019 · Operations

Handling Connection Loss and Session Expiry in ZooKeeper-based Distributed Locks

When using ZooKeeper‑based distributed locks, applications must detect CONNECTIONLOSS and SESSIONEXPIRED events, verify the master znode to confirm leadership, relinquish duties on session expiry, and design idempotent tasks to avoid split‑brain or duplicate execution caused by network partitions or quorum delays.

Distributed LockLeader ElectionZookeeper
0 likes · 10 min read
Handling Connection Loss and Session Expiry in ZooKeeper-based Distributed Locks
Java Captain
Java Captain
Apr 18, 2019 · Backend Development

Introduction to ZooKeeper: Concepts, ZNode Structure, Listeners, and Practical Use Cases

This article provides a comprehensive introduction to ZooKeeper, covering its definition, ZNode hierarchy, listener mechanisms, and practical applications such as unified configuration management, naming services, distributed locks, and cluster state monitoring, illustrating how these features enable robust coordination in distributed systems.

Backend DevelopmentDistributed CoordinationDistributed Lock
0 likes · 9 min read
Introduction to ZooKeeper: Concepts, ZNode Structure, Listeners, and Practical Use Cases
Java Captain
Java Captain
Apr 14, 2019 · Databases

Redis Overview: Features, Use Cases, Data Types, Persistence, Distributed Locks, and Performance

This article provides a comprehensive overview of Redis, covering its definition, common use cases, core functionalities, differences from Memcached, single‑threaded design, cache‑penetration mitigation, supported data types, Java clients, consistency strategies, persistence methods, distributed lock implementation, memory optimization, eviction policies, and typical performance issues.

CachingData TypesDistributed Lock
0 likes · 6 min read
Redis Overview: Features, Use Cases, Data Types, Persistence, Distributed Locks, and Performance
Java Captain
Java Captain
Apr 9, 2019 · Operations

Zookeeper Overview: Functions, Deployment Modes, Synchronization, and Notification Mechanism

This article explains Zookeeper as an open‑source distributed coordination service, detailing its core functions such as cluster management, leader election, distributed locks, and naming service, along with its three deployment modes, state‑synchronization via the ZAB protocol, and its watcher‑based notification mechanism.

Distributed CoordinationDistributed LockLeader Election
0 likes · 4 min read
Zookeeper Overview: Functions, Deployment Modes, Synchronization, and Notification Mechanism
dbaplus Community
dbaplus Community
Mar 28, 2019 · Backend Development

How Distributed Locks Keep High‑Traffic Red‑Packet Systems Consistent

This article explains why traditional in‑process locks fail under massive concurrency, how distributed locks using Redis or Zookeeper ensure atomic updates across many servers, and details practical implementations, pitfalls like deadlocks, and strategies such as key expiration and ephemeral sequential nodes.

Backend DevelopmentConcurrency ControlDistributed Lock
0 likes · 14 min read
How Distributed Locks Keep High‑Traffic Red‑Packet Systems Consistent
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
NetEase Game Operations Platform
NetEase Game Operations Platform
Mar 23, 2019 · Backend Development

Implementing a Redis‑Based Distributed Lock to Ensure Data Consistency in a CMDB System

This article analyzes data‑inconsistency problems caused by concurrent multithreaded updates in a CMDB system and presents a step‑by‑step exploration of synchronization solutions, ultimately implementing a robust Redis‑backed distributed lock in Python to guarantee atomic reads and writes while handling edge cases such as crashes and lock expiration.

CMDBData ConsistencyDistributed Lock
0 likes · 17 min read
Implementing a Redis‑Based Distributed Lock to Ensure Data Consistency in a CMDB System
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
Java Captain
Java Captain
Jan 29, 2019 · Backend Development

Implementing a Simple Seckill (Flash Sale) Using Redis Distributed Locks in Java

This article explains the business background of a flash‑sale (seckill) scenario, analyzes naive locking approaches, introduces Redis‑based distributed locks, and provides a complete Java demo with custom annotations, dynamic proxies, and a multithreaded test to ensure correct inventory decrement under high concurrency.

AnnotationDistributed LockJava
0 likes · 15 min read
Implementing a Simple Seckill (Flash Sale) Using Redis Distributed Locks in Java
Zhuanzhuan Tech
Zhuanzhuan Tech
Jan 4, 2019 · Backend Development

Design and Implementation of ZZLock Distributed Lock Service Based on Etcd

This article details the requirements analysis, design choices, architecture, code implementation, monitoring, and special considerations of ZZLock, a high‑performance distributed lock solution built on Etcd that ensures atomicity, consistency, and fault‑tolerance for backend services.

Distributed LockEtcdHigh Availability
0 likes · 10 min read
Design and Implementation of ZZLock Distributed Lock Service Based on Etcd
dbaplus Community
dbaplus Community
Dec 3, 2018 · Backend Development

Mastering Distributed Locks: DB, Redis, and Zookeeper Implementations Compared

This article examines the design and implementation of distributed locks using databases, Redis, and Zookeeper, outlining their core characteristics, practical code patterns, performance trade‑offs, fault‑tolerance mechanisms, and guidance on selecting the right solution for specific workloads.

DB lockDistributed LockRedis Lock
0 likes · 11 min read
Mastering Distributed Locks: DB, Redis, and Zookeeper Implementations Compared