Tagged articles

distributed lock

459 articles · Page 1 of 5
Coder Trainee
Coder Trainee
Aug 19, 2026 · Backend Development

The “Ghost” Distributed Lock Issue: 3‑Day Debugging of Lock Failure

The article walks through a real production incident where a Redis‑based distributed lock silently failed, causing duplicate point awards, and details the step‑by‑step investigation, root‑cause analysis of transaction‑lock ordering, and three concrete remediation strategies.

Pessimistic LockRedisSpring @Transactional
0 likes · 9 min read
The “Ghost” Distributed Lock Issue: 3‑Day Debugging of Lock Failure
Java Architect Handbook
Java Architect Handbook
Aug 10, 2026 · Cloud Native

Tired of XXL‑Job? Try This Elegant Nacos‑Based Scheduling Solution

The article analyses why XXL‑Job’s separate registration, configuration, and weak sharding cause state inconsistency, observability gaps, and duplicate processing, then proposes JobFlow – a lightweight scheduler that removes redundant components, adds full‑traceId tracing, true sharding with distributed locks, exponential retry, and cloud‑native configuration managed by Nacos, all illustrated with concrete code snippets and deployment diagrams.

JavaNacosXXL-JOB
0 likes · 21 min read
Tired of XXL‑Job? Try This Elegant Nacos‑Based Scheduling Solution
Java Baker
Java Baker
Jul 28, 2026 · Backend Development

Choosing the Right Distributed Lock: A Guide for Architects

Distributed locks are essential for coordinating access to shared resources across multiple machines; this article compares common solutions—Redis locks, database optimistic and logical locks, DB row locks, and Zookeeper locks—detailing their principles, pros, cons, implementation details, and best‑fit scenarios.

ConcurrencyJavaOptimistic Lock
0 likes · 15 min read
Choosing the Right Distributed Lock: A Guide for Architects
Code Farming
Code Farming
Jul 26, 2026 · Backend Development

How Is a Red Envelope System Designed for High‑Concurrency?

This article breaks down the end‑to‑end design of a high‑traffic red‑envelope service, covering its three‑stage lifecycle, a fair double‑mean allocation algorithm, the need to separate grabbing from settlement, and how Redis, Lua scripts, and message queues handle massive concurrent requests.

BackendRedisdistributed lock
0 likes · 7 min read
How Is a Red Envelope System Designed for High‑Concurrency?
LuTiao Programming
LuTiao Programming
Jul 24, 2026 · Backend Development

Why Scheduled Tasks Run Multiple Times in a Cluster – The Real Issue Isn’t Quartz but Poor Architecture

When a Java application that uses Spring’s @Scheduled moves from a single server to a cluster, the same job may execute on every node, causing duplicate orders, messages, and data; the article explains why this happens, examines common lock‑based fixes and their pitfalls, and proposes a robust, idempotent, sharded task architecture.

@ScheduledBackendJava
0 likes · 15 min read
Why Scheduled Tasks Run Multiple Times in a Cluster – The Real Issue Isn’t Quartz but Poor Architecture
Coder Life Journal
Coder Life Journal
Jul 20, 2026 · Backend Development

Redis Distributed Lock with Three Checks: Why Small Projects Should Rethink Its Use

The article analyzes Redis distributed locks—its three‑step verification, the limited guarantees it provides, and why small‑to‑medium projects should often prefer database constraints, idempotency keys, or state machines over adding a lock that introduces extra complexity and maintenance overhead.

Backend DevelopmentDatabase ConstraintsRedis
0 likes · 10 min read
Redis Distributed Lock with Three Checks: Why Small Projects Should Rethink Its Use
Xiaolin Talks Programming
Xiaolin Talks Programming
Jul 17, 2026 · Backend Development

Spring StateMachine in Production: Modeling, Redis Persistence & High-Concurrency Anti-Duplication Patterns

This article shares real-world experience using Spring StateMachine to replace sprawling if-else logic in order systems, covering state/event/guard modeling, Redis-backed persistence, a three-layer concurrency control pattern (distributed lock + optimistic lock + event idempotency), async decoupling, timeout handling, and compensation strategies with concrete code templates.

High ConcurrencyOptimistic LockRedis Persistence
0 likes · 17 min read
Spring StateMachine in Production: Modeling, Redis Persistence & High-Concurrency Anti-Duplication Patterns
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 13, 2026 · Backend Development

Beyond Caching: 10 Advanced Redis Use Cases You’re Probably Missing

This article walks through ten advanced Redis features—including Bloom filters, Redisson distributed locks, delayed queues, token‑bucket rate limiting, bitmaps, HyperLogLog, GEO, Streams, Lua scripts, and RedisJSON—explaining their principles, pros and cons, typical scenarios, and providing complete Spring Boot code examples.

BitmapBloom FilterGEO
0 likes · 23 min read
Beyond Caching: 10 Advanced Redis Use Cases You’re Probably Missing
Lobster Programming
Lobster Programming
Jul 13, 2026 · Backend Development

Three‑layer mechanism to ensure a single charge for repeated payment attempts

The article explains a three‑layer strategy—pre‑intercept via Redis locks or temporary tokens, mid‑process control using order status and optimistic locking, and post‑fallback with delayed MQ messages and nightly reconciliation—to guarantee that multiple user clicks result in only one successful payment.

MQOptimistic LockToken
0 likes · 7 min read
Three‑layer mechanism to ensure a single charge for repeated payment attempts
Yumin Fish Harvest
Yumin Fish Harvest
Jul 9, 2026 · Databases

Redis Pipeline, Transactions, Lua, Distributed Locks, Streams & Data Types

This article provides an in‑depth guide to Redis’s advanced capabilities, covering how to use pipeline for batch commands, transactions for ordered execution, Lua scripts for atomic logic, distributed locks with proper token handling, reliable messaging with streams, and specialized data structures such as BitMap, HyperLogLog, Bloom Filter and GEO for efficient large‑scale scenarios.

Bloom FilterGEOHyperLogLog
0 likes · 65 min read
Redis Pipeline, Transactions, Lua, Distributed Locks, Streams & Data Types
The Dominant Programmer
The Dominant Programmer
Jul 2, 2026 · Backend Development

Understanding Redisson from Scratch: A Java Distributed Toolbox Guide and Hands‑On

This article introduces Redisson, a Redis‑based Java client that wraps Redis commands into familiar Java concurrency primitives, compares it with Jedis and Lettuce, explains why custom distributed locks are error‑prone, and provides step‑by‑step code for configuring, using, and integrating its core features such as locks, maps, queues, and rate limiters in Spring Boot.

JavaRate LimiterRedis
0 likes · 16 min read
Understanding Redisson from Scratch: A Java Distributed Toolbox Guide and Hands‑On
Coder Life Journal
Coder Life Journal
Jun 28, 2026 · Backend Development

Idempotency vs Duplicate Orders: 5 Reliable Solutions After a Double‑Charge Mishap

The article explains that idempotency prevents the same operation from being executed twice, illustrates a real double‑charge bug, evaluates five concrete approaches—including Redis check‑then‑set, DB unique index, optimistic lock, Redis distributed lock, and a message deduplication table—details their failure conditions and suitable scenarios, and recommends combining Redis lock with a database unique index for the most robust protection.

Optimistic LockRedisdatabase
0 likes · 10 min read
Idempotency vs Duplicate Orders: 5 Reliable Solutions After a Double‑Charge Mishap
Cloud Architecture
Cloud Architecture
Jun 25, 2026 · Backend Development

Four Production‑Grade Defenses Against Redis Cache Penetration in High‑Concurrency Microservices

The article explains how non‑existent data amplified by high concurrency can cause cache penetration, distinguishes it from cache breakdown and avalanche, and presents a layered defense—entry validation, Bloom filter existence checks, negative caching, and concurrent‑request convergence—plus practical code, metrics, and operational checklists for robust microservice deployments.

Bloom FilterHigh ConcurrencyMicroservices
0 likes · 28 min read
Four Production‑Grade Defenses Against Redis Cache Penetration in High‑Concurrency Microservices
Code Farming
Code Farming
Jun 22, 2026 · Backend Development

Why Your Distributed Lock Keeps Failing in Production (And How to Fix It)

This article explains the three fundamental challenges of distributed locks—availability, deadlock, and split‑brain—compares database and Redis implementations, walks through the five evolutionary steps of Redis locking, and provides a structured interview answer framework to demonstrate deep understanding.

ConcurrencyInterview PreparationMySQL
0 likes · 8 min read
Why Your Distributed Lock Keeps Failing in Production (And How to Fix It)
Lobster Programming
Lobster Programming
Jun 22, 2026 · Databases

Common Redis Use Cases in Real-World Projects

This article outlines nine practical Redis scenarios—including hot‑data caching, distributed locks with Redisson, Bloom filters for cache‑penetration protection, delayed queues using ZSet, token‑bucket rate limiting, bitmap boolean statistics, UV deduplication via Set/HyperLogLog/Bitmap, geospatial indexing, and lightweight Stream queues—explaining their motivations, implementation steps, and trade‑offs.

BitmapBloom FilterGeospatial
0 likes · 7 min read
Common Redis Use Cases in Real-World Projects
ZhiKe AI
ZhiKe AI
Jun 19, 2026 · Backend Development

From 1 ns to 10 ms: Why Caching Exists and Why It Keeps You Up at Night

The article explains why caching is indispensable—from nanosecond‑level CPU caches to millisecond‑level disks—covers the classic pitfalls of penetration, breakdown and avalanche, and walks through consistency strategies such as Cache‑Aside, delayed double‑delete, and Canal‑based binlog syncing for high‑concurrency systems.

CanalHigh ConcurrencyRedis
0 likes · 13 min read
From 1 ns to 10 ms: Why Caching Exists and Why It Keeps You Up at Night
Xiaolin Talks Programming
Xiaolin Talks Programming
Jun 18, 2026 · Backend Development

Spring Boot Scheduled Tasks: Dynamic Cron & Cluster Duplicate Prevention

This article explores production-grade Spring Boot scheduled tasks, covering dynamic Cron hot-reloading via configuration listeners, cluster duplicate prevention using distributed locks, framework selection between Quartz and XXL-JOB, data sharding strategies, observability, timeout handling, and retry mechanisms with dead-letter queues.

Cluster Duplicate PreventionDynamic CronObservability
0 likes · 18 min read
Spring Boot Scheduled Tasks: Dynamic Cron & Cluster Duplicate Prevention
Programmer XiaoFu
Programmer XiaoFu
Jun 15, 2026 · Backend Development

Why a Simple Redis Mutex Lock Isn’t Enough for Cache Breakdown – When to Use Never‑Expire or Logical Expiration

The article analyzes why a basic Redis mutex lock can cause thread blocking, latency spikes, and service collapse under high concurrency, and compares it with logical expiration and never‑expire with proactive updates, explaining their trade‑offs and how to choose the right cache‑breakdown mitigation strategy.

JavaLogical ExpirationNever Expire
0 likes · 12 min read
Why a Simple Redis Mutex Lock Isn’t Enough for Cache Breakdown – When to Use Never‑Expire or Logical Expiration
Java Tech Workshop
Java Tech Workshop
Jun 2, 2026 · Backend Development

Implementing Distributed Locks in Spring Boot with Redis

This article explains why local locks like synchronized and ReentrantLock fail in microservice clusters, introduces the fundamentals and essential properties of distributed locks, walks through five iterative Redis lock implementations that address dead‑lock, atomicity, and timeout issues, and finally shows how to adopt the production‑grade Redisson library with best‑practice guidelines for key naming, lock scope, and lock type selection.

JavaMicroservicesdistributed lock
0 likes · 17 min read
Implementing Distributed Locks in Spring Boot with Redis
Lobster Programming
Lobster Programming
Jun 1, 2026 · Backend Development

How ZooKeeper Implements Distributed Locks: Mechanism and Pitfalls

The article explains ZooKeeper's herd effect, how temporary sequential nodes and chain watching reduce notification storms, how client failures are handled, and why most projects use Curator to simplify fault‑tolerant distributed lock implementations.

Chain WatchingCuratorEphemeral Sequential Node
0 likes · 5 min read
How ZooKeeper Implements Distributed Locks: Mechanism and Pitfalls
Programmer1970
Programmer1970
May 26, 2026 · Backend Development

7 Distributed Lock Implementations and Real‑World Pitfalls

The article explains why local locks fail in multi‑machine deployments, defines the three essential properties of a correct distributed lock, walks through seven Redis‑based lock solutions with code samples, highlights common production pitfalls, and provides a decision tree for selecting the right approach.

Java concurrencyRedisdistributed lock
0 likes · 10 min read
7 Distributed Lock Implementations and Real‑World Pitfalls
Lobster Programming
Lobster Programming
May 25, 2026 · Backend Development

Designing a System That Can Survive Sudden Spikes of One Million QPS

The article analyzes why simply adding Redis nodes cannot handle a sudden million‑QPS surge, then presents three practical solutions—key sharding, multi‑level caching with hot‑key detection, and distributed‑lock‑based fallback—to build a resilient high‑concurrency backend.

Cache ShardingCircuit BreakerHigh Concurrency
0 likes · 7 min read
Designing a System That Can Survive Sudden Spikes of One Million QPS
Ops Community
Ops Community
May 20, 2026 · Backend Development

Redis Cache Avalanche, Penetration, and Breakdown: The Three Must‑Know Issues for Interviews

This article explains the three classic Redis cache problems—avalanche, penetration, and breakdown—detailing their definitions, typical symptoms, step‑by‑step troubleshooting procedures, root‑cause analysis, and practical mitigation strategies such as random expiration, empty‑value caching, Bloom filters, distributed locks, and multi‑level cache architectures.

Bloom FilterRediscache avalanche
0 likes · 35 min read
Redis Cache Avalanche, Penetration, and Breakdown: The Three Must‑Know Issues for Interviews
Subtle Storm
Subtle Storm
May 17, 2026 · Backend Development

Why Distributed Locks Matter and How to Implement Them with DB, Redis, and ZooKeeper

The article explains why a simple JVM lock fails in multi‑instance services, illustrates the overselling problem with an e‑commerce example, and then compares three practical distributed‑lock solutions—database‑based, Redis‑based, and ZooKeeper‑based—detailing their mechanisms, strengths, weaknesses, and suitable scenarios.

ConcurrencyJavaZooKeeper
0 likes · 8 min read
Why Distributed Locks Matter and How to Implement Them with DB, Redis, and ZooKeeper
Subtle Storm
Subtle Storm
May 15, 2026 · Backend Development

Key Exam Topics for Architects: Cache Penetration, Cache Breakdown, and Cache Avalanche

The article explains how cache penetration, cache breakdown, and cache avalanche all stem from cache layer failures that let requests flood the database, compares their triggers, impact scopes and risk levels, and presents practical mitigation techniques such as empty‑value caching, Bloom filters, mutex locks, logical expiration, TTL randomization, and multi‑level caching.

Bloom FilterRedisTTL randomization
0 likes · 6 min read
Key Exam Topics for Architects: Cache Penetration, Cache Breakdown, and Cache Avalanche
Cloud Architecture
Cloud Architecture
May 7, 2026 · Cloud Native

Deep Dive into etcd: Architecture, Performance Tuning, and Production Pitfalls for Kubernetes

The article explains why etcd is the single source of truth for Kubernetes, walks through its internal Raft, WAL, MVCC, and watch mechanisms, analyzes real‑world failure cases, and provides concrete architecture designs, hardware recommendations, configuration parameters, monitoring metrics, backup procedures, and best‑practice checklists to run etcd safely in production.

KubernetesRaftbackup
0 likes · 43 min read
Deep Dive into etcd: Architecture, Performance Tuning, and Production Pitfalls for Kubernetes
Su San Talks Tech
Su San Talks Tech
May 6, 2026 · Backend Development

11 Essential Redis Use Cases Every Backend Engineer Should Know

This article walks through eleven practical Redis scenarios—from classic caching and distributed locks to rate limiting, leaderboards, timelines, social graph operations, lightweight queues, Bloom filters, hash‑based object storage, unique‑counting, and delayed tasks—providing code samples, advantages, drawbacks, and when to apply each pattern.

Bloom FilterRate LimitingRedis
0 likes · 15 min read
11 Essential Redis Use Cases Every Backend Engineer Should Know
Architect's Tech Stack
Architect's Tech Stack
Apr 29, 2026 · Databases

Redis 8.0 Beyond Simple Caching: 16 Powerful Use Cases You Must Try

Redis 8.0 consolidates many previously external modules—JSON, time‑series, vector search, probabilistic data structures, and more—into a single package, and this article walks through 16 concrete scenarios ranging from field‑level cache expiration to AI‑ready vector similarity search, showing exact commands and when to prefer each feature.

LeaderboardRate LimitingRedis
0 likes · 19 min read
Redis 8.0 Beyond Simple Caching: 16 Powerful Use Cases You Must Try
IoT Full-Stack Technology
IoT Full-Stack Technology
Apr 29, 2026 · Databases

16 Practical Redis Use Cases You Should Know

This article walks through sixteen common Redis scenarios—including caching hot data, sharing state across services, implementing distributed locks, generating global IDs, counting events, rate limiting, bitmap statistics, shopping carts, timelines, message queues, lotteries, likes, tagging, product filtering, and leaderboards—each illustrated with concrete commands and code snippets.

BitmapsLeaderboardRate Limiting
0 likes · 9 min read
16 Practical Redis Use Cases You Should Know
IoT Full-Stack Technology
IoT Full-Stack Technology
Apr 29, 2026 · Databases

10+ Practical Redis Use Cases You Can Implement Today

This article walks through more than ten common Redis scenarios—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmap statistics, shopping carts, timelines, message queues, lotteries, likes, product tagging, filtering, follow/fan relationships, and ranking—showing concrete command examples and code snippets for each.

BitmapFollow SystemRedis
0 likes · 9 min read
10+ Practical Redis Use Cases You Can Implement Today
Java Backend Full-Stack
Java Backend Full-Stack
Apr 26, 2026 · Databases

Mastering Redis: Core Concepts, Practical Roadmap, and Advanced Techniques

This comprehensive guide outlines a step‑by‑step learning path for Redis, covering foundational commands, core data structures, high‑performance internals, persistence options, clustering, common caching pitfalls, performance tuning, monitoring, source‑code exploration, and recommended resources for becoming a Redis expert.

PersistenceRediscaching
0 likes · 9 min read
Mastering Redis: Core Concepts, Practical Roadmap, and Advanced Techniques
java1234
java1234
Apr 18, 2026 · Backend Development

Beyond Simple Caching: 8 Essential Redis Use Cases for Java Backend Engineers

This guide walks Java backend developers through Redis’s eight core scenarios—caching, distributed locks, rate limiting, session sharing, leaderboards, counters, message and delay queues, bitmap statistics, and geolocation—providing complete code, diagrams, and production‑grade best practices.

BitmapGEOLeaderboard
0 likes · 21 min read
Beyond Simple Caching: 8 Essential Redis Use Cases for Java Backend Engineers
Coder Trainee
Coder Trainee
Apr 14, 2026 · Operations

5 Production Nightmares in an Education Mini‑Program and How to Avoid Them

The author recounts five critical production incidents that crippleed an education mini‑program—Redis connection‑pool exhaustion, duplicate bookings, double refunds, mis‑firing no‑show jobs, and inventory oversell—detailing root causes, concrete fixes, and hard‑won lessons for building resilient backend services.

MySQLOptimistic LockRedis
0 likes · 10 min read
5 Production Nightmares in an Education Mini‑Program and How to Avoid Them
Cloud Architecture
Cloud Architecture
Apr 11, 2026 · Backend Development

Redis Cache Penetration Guide: From Fundamentals to Production‑Ready Protection

This comprehensive guide explains why cache penetration is a high‑risk issue for high‑concurrency systems, distinguishes it from cache breakdown and avalanche, and presents a layered, production‑grade defense that combines parameter validation, gateway rate‑limiting, empty‑object caching, Bloom filters, local caches, distributed locks, and observability to protect both Redis and the underlying database.

Bloom FilterMicroservicesObservability
0 likes · 52 min read
Redis Cache Penetration Guide: From Fundamentals to Production‑Ready Protection
Architect's Tech Stack
Architect's Tech Stack
Apr 10, 2026 · Backend Development

Unlock Redis: 12 Powerful Patterns Every Backend Engineer Should Know

Redis offers far more than simple key‑value caching; by leveraging its rich data structures—strings, hashes, lists, sets, sorted sets, bitmaps, HyperLogLog, GEO, and streams—developers can implement distributed locks, rate limiting, leaderboards, session storage, counters, geolocation, delayed queues, messaging, bloom filters, and more, all with concise commands.

LeaderboardRate LimitingRedis
0 likes · 9 min read
Unlock Redis: 12 Powerful Patterns Every Backend Engineer Should Know
java1234
java1234
Apr 5, 2026 · Databases

Beyond Caching: 16 Powerful Redis Use Cases

This article explores sixteen practical Redis applications—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, product tags, filtering, follow relationships, and ranking—demonstrating how Redis can serve as a versatile data store beyond simple caching.

BitmapsRate LimitingRedis
0 likes · 9 min read
Beyond Caching: 16 Powerful Redis Use Cases
Java Architect Handbook
Java Architect Handbook
Apr 4, 2026 · Backend Development

16 Powerful Redis Use Cases Every Backend Engineer Should Know

This article presents a comprehensive guide to 16 practical Redis applications—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, queues, lotteries, likes, product tagging, filtering, social graphs, and leaderboards—complete with command examples, code snippets, and visual illustrations to help developers implement these patterns efficiently.

BitmapLeaderboardRate Limiting
0 likes · 11 min read
16 Powerful Redis Use Cases Every Backend Engineer Should Know
Architecture Digest
Architecture Digest
Apr 3, 2026 · Databases

16 Powerful Ways to Leverage Redis in Your Applications

This article presents a comprehensive guide to 16 practical Redis use cases—including caching, distributed locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, product tagging, filtering, follow‑recommendation models, and ranking—complete with code snippets and data‑structure examples.

LeaderboardRediscache
0 likes · 10 min read
16 Powerful Ways to Leverage Redis in Your Applications
Alibaba Cloud Developer
Alibaba Cloud Developer
Mar 27, 2026 · Artificial Intelligence

How Tair Powers Sub‑Second AI Agent Memory for Real‑Time Ordering

This article examines how Taobao Flash Sale’s AI Agent uses Alibaba Cloud’s Tair as a high‑performance short‑term memory layer, detailing data model design, latency impact, concurrency control, elastic scaling, bandwidth handling, and TTL‑based cleanup to achieve sub‑second response times during massive traffic spikes.

AI AgentTairdistributed lock
0 likes · 15 min read
How Tair Powers Sub‑Second AI Agent Memory for Real‑Time Ordering
LuTiao Programming
LuTiao Programming
Feb 1, 2026 · Backend Development

Why Ticket Sales Fail: A Deep Dive into Concurrency, Locks, and Building a Reliable Ticket‑Booking System

When half a million users simultaneously try to buy 5,000 concert tickets, naive ordering logic leads to race conditions and double bookings, so the article walks through the root causes, compares pessimistic, optimistic, and Redis distributed locks, and presents an industrial‑grade microservice design with a three‑stage state machine to ensure strong consistency and high availability.

ConcurrencyOptimistic LockPessimistic Lock
0 likes · 8 min read
Why Ticket Sales Fail: A Deep Dive into Concurrency, Locks, and Building a Reliable Ticket‑Booking System
Code Ape Tech Column
Code Ape Tech Column
Jan 26, 2026 · Backend Development

Prevent Duplicate Spring @Scheduled Jobs in Multi‑Instance Deployments with ShedLock

When a Spring Boot application using @Scheduled is deployed on multiple servers, each instance triggers the same job, leading to duplicate processing; this article explains why the problem occurs, reviews simple single‑node and Redis lock approaches, and provides a step‑by‑step guide to integrate the ShedLock framework for reliable, annotation‑driven distributed locking.

@ScheduledJavaShedLock
0 likes · 8 min read
Prevent Duplicate Spring @Scheduled Jobs in Multi‑Instance Deployments with ShedLock
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 19, 2026 · Backend Development

How to Ensure Single-Node Execution of Spring Boot @Scheduled Tasks in Distributed Environments

This guide explains why @Scheduled jobs run on every Spring Boot instance in a cluster, and presents three practical solutions—Spring Integration's Redis lock, Redisson, and ShedLock—complete with Maven dependencies, configuration snippets, code examples, and runtime screenshots to guarantee that only one node executes the scheduled task at a time.

Backend DevelopmentRedisShedLock
0 likes · 9 min read
How to Ensure Single-Node Execution of Spring Boot @Scheduled Tasks in Distributed Environments
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Dec 23, 2025 · Backend Development

Mastering Redis Distributed Locks: From SETNX to RedLock and WatchDog

This article walks through the evolution of Redis distributed locks—from basic SETNX mutual exclusion to atomic SET with expiration, Lua‑based safe unlocking, Redisson's WatchDog auto‑renewal, and the RedLock algorithm—highlighting pitfalls, best‑practice implementations, and interview‑style Q&A for robust production use.

JavaRedisdistributed lock
0 likes · 15 min read
Mastering Redis Distributed Locks: From SETNX to RedLock and WatchDog
NiuNiu MaTe
NiuNiu MaTe
Dec 17, 2025 · Backend Development

Master Redis Distributed Locks: Prevent Race Conditions, Zombie Locks, and Expiration Issues

This guide explains how Redis implements distributed locks, outlines common pitfalls such as lock contention, zombie locks, and mismatched expiration times, and provides step‑by‑step solutions—including single‑node SET commands, Redlock high‑availability algorithm, Lua‑based safe release, and best‑practice recommendations for real‑world deployments.

Redisdistributed lockhigh-availability
0 likes · 15 min read
Master Redis Distributed Locks: Prevent Race Conditions, Zombie Locks, and Expiration Issues
Tech Freedom Circle
Tech Freedom Circle
Dec 13, 2025 · Backend Development

What’s Wrong with Delayed Double Delete? How Top Tech Companies Elegantly Avoid It

The article explains the delayed double‑delete cache‑invalidation pattern, its four major drawbacks in high‑concurrency environments, and presents four production‑grade alternatives—event‑driven binlog updates, distributed‑lock with versioning, write‑through proxy layers, and logical‑delete with async cleanup—used by leading Chinese internet firms to achieve reliable data consistency.

Rediscachingdatabase consistency
0 likes · 21 min read
What’s Wrong with Delayed Double Delete? How Top Tech Companies Elegantly Avoid It
Tech Freedom Circle
Tech Freedom Circle
Dec 12, 2025 · Backend Development

Why Redisson’s Reentrant Distributed Lock Relies on HINCRBY Increment and Decrement

The article explains how Redisson implements a re‑entrant distributed lock using Redis hash structures and the atomic HINCRBY command to manage client identity, re‑entry counting, concurrency safety, and graceful release, providing a complete technical analysis with code, Lua scripts, and best‑practice guidelines.

ConcurrencyHINCRBYJava
0 likes · 34 min read
Why Redisson’s Reentrant Distributed Lock Relies on HINCRBY Increment and Decrement
Architecture Digest
Architecture Digest
Dec 10, 2025 · Backend Development

How to Build a Mini Didi: Scalable Ride‑Hailing Architecture Explained

This article dissects the core architecture of a miniature ride‑hailing platform, covering domain‑driven design, layered microservice structure, Redis GEO for fast location queries, distributed locking, Netty‑based real‑time messaging, and hot‑cold data separation to handle massive traffic and ensure reliability.

NettyRedis GeoSystem Design
0 likes · 8 min read
How to Build a Mini Didi: Scalable Ride‑Hailing Architecture Explained
Java Companion
Java Companion
Nov 27, 2025 · Backend Development

Interview Question: How to Handle a Crashed Scheduled‑Task Server? Most Miss It

When a scheduled‑task server crashes, simply restarting it is insufficient; a robust solution must combine clustering, distributed locks, idempotent designs, checkpointing, and monitoring to ensure tasks resume correctly across non‑runtime and runtime failures, as detailed with SpringTask‑Redis and XXL‑JOB implementations.

BackendCheckpointingSpringTask
0 likes · 28 min read
Interview Question: How to Handle a Crashed Scheduled‑Task Server? Most Miss It
Top Architect
Top Architect
Nov 9, 2025 · Backend Development

Mastering Idempotency: 4 Proven Techniques for Reliable Backend Operations

This article explains four common idempotency strategies—token, database unique index, distributed lock, and request‑body digest—detailing their core ideas, key concepts, and providing ready‑to‑copy Spring/Redis code examples to prevent duplicate requests in high‑traffic backend systems.

SpringTokenUnique Index
0 likes · 10 min read
Mastering Idempotency: 4 Proven Techniques for Reliable Backend Operations
Architect
Architect
Nov 7, 2025 · Backend Development

Mastering Idempotency: 4 Proven Strategies for Reliable APIs

This article explains four practical idempotency solutions—token tokens, database unique indexes, distributed locks, and request content digests—detailing their concepts, core keywords, and providing ready‑to‑copy Spring Boot code examples, along with implementation tips and a comparison table to help you choose the right approach for high‑concurrency APIs.

RedisSpring BootToken
0 likes · 10 min read
Mastering Idempotency: 4 Proven Strategies for Reliable APIs
Top Architect
Top Architect
Oct 30, 2025 · Backend Development

How to Prevent Duplicate Submissions in Java APIs with Redis and Redisson

This article explains the concept of debounce for backend APIs, identifies which endpoints need it, and provides two distributed solutions—shared Redis cache and Redisson lock—complete with annotations, key generation logic, code examples, testing results, and tips for achieving true idempotency.

Backend DevelopmentJavadistributed lock
0 likes · 16 min read
How to Prevent Duplicate Submissions in Java APIs with Redis and Redisson
Architect
Architect
Oct 23, 2025 · Backend Development

Mastering tldb Distributed Locks: Go, Java, and Python Examples

This article explains how tldb implements language‑agnostic distributed locks, describes the Lock, TryLock, and Unlock APIs, and provides practical Go and Java code samples along with test results to help developers integrate reliable distributed locking into their systems.

Godistributed lockmq client
0 likes · 8 min read
Mastering tldb Distributed Locks: Go, Java, and Python Examples
Open Source Tech Hub
Open Source Tech Hub
Oct 22, 2025 · Databases

What’s New in Valkey 9.0? Key Features and Performance Boosts Explained

Valkey 9.0, the latest community‑driven fork of Redis, introduces multi‑path TCP support, per‑field hash expiration, atomic slot migration, and new safety commands, offering developers enhanced performance, finer‑grained data control, and more reliable cluster operations.

Cluster MigrationHash expirationIn‑memory database
0 likes · 7 min read
What’s New in Valkey 9.0? Key Features and Performance Boosts Explained
Code Wrench
Code Wrench
Sep 30, 2025 · Backend Development

Mastering Go-Redis: High‑Performance Caching, Locks, and Queues

This tutorial walks through why Redis is essential for Go services, how to choose and install the go‑redis client, and provides step‑by‑step code for connections, common commands, cache‑aside, distributed locks, leaderboards, and lightweight queues, followed by performance tuning and best‑practice recommendations.

GoLeaderboardRedis
0 likes · 8 min read
Mastering Go-Redis: High‑Performance Caching, Locks, and Queues
Programmer DD
Programmer DD
Sep 28, 2025 · Backend Development

How to Ensure Spring Boot Scheduled Tasks Run Only Once with ShedLock

Learn how to prevent duplicate execution of Spring Boot @Scheduled tasks in multi-instance deployments by integrating ShedLock, including Maven dependencies, H2 database setup, LockProvider configuration, and annotation usage to ensure each job runs only once across all nodes.

JavaShedLockSpring Boot
0 likes · 6 min read
How to Ensure Spring Boot Scheduled Tasks Run Only Once with ShedLock
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 21, 2025 · Backend Development

Mastering Idempotent Payment APIs: From Pitfalls to Distributed‑Lock Solutions

This article walks through the evolution of a payment API’s idempotency design—from an initially flawed implementation, through naive Redis deduplication and token‑based approaches, to a robust solution that combines distributed locks, double‑checked caching, and state management for reliable, concurrent processing.

Springdistributed lockidempotency
0 likes · 13 min read
Mastering Idempotent Payment APIs: From Pitfalls to Distributed‑Lock Solutions
Didi Tech
Didi Tech
Aug 14, 2025 · Backend Development

How RocketMQ and DDMQ Achieve Ordered Consumption: Deep Source Code Dive

This article deeply explores the ordered consumption mechanisms of RocketMQ and its derivative DDMQ, explaining the implementation differences, source‑code details of sequential sending, broker locking, client‑side processing, and compares the two systems' approaches to guarantee message order.

DDMQJavaRocketMQ
0 likes · 30 min read
How RocketMQ and DDMQ Achieve Ordered Consumption: Deep Source Code Dive
Sanyou's Java Diary
Sanyou's Java Diary
Aug 7, 2025 · Backend Development

How Easy-Cache Solves Distributed Cache Pain Points with Multi-Level Design

This article introduces Easy-Cache, a Spring-AOP based caching framework that provides annotation-driven, multi-level Redis and local cache with dynamic upgrade/downgrade, elastic expiration, and Lua-script-ensured data consistency, eliminating repetitive cache code and handling failures, cache penetration, breakdown, and eventual consistency challenges.

LuaMulti-level CacheSpring AOP
0 likes · 18 min read
How Easy-Cache Solves Distributed Cache Pain Points with Multi-Level Design
Code Ape Tech Column
Code Ape Tech Column
Jul 24, 2025 · Backend Development

Mastering Redisson Distributed Locks: Deep Dive into Implementation, Reentrancy, and Fairness

This article provides a comprehensive guide to Redisson's distributed lock implementation, covering its architecture, comparison with Jedis and Lettuce, basic lock creation, Lua scripts for atomic operations, reentrant lock handling, watchdog-based lock renewal, RLock usage, and the design of fair locks using Redis data structures.

Redisdistributed lockfair lock
0 likes · 31 min read
Mastering Redisson Distributed Locks: Deep Dive into Implementation, Reentrancy, and Fairness
Top Architect
Top Architect
Jul 8, 2025 · Backend Development

How to Build a Robust Redis Distributed Lock with AOP and Auto‑Renewal

This article explains how to protect time‑consuming business operations using a Redis‑based distributed lock implemented with a custom annotation, Spring AOP interception, automatic lock renewal via a scheduled executor, and proper lock release, ensuring data consistency across concurrent requests.

AOPConcurrencyRedis
0 likes · 14 min read
How to Build a Robust Redis Distributed Lock with AOP and Auto‑Renewal
Lobster Programming
Lobster Programming
Jul 7, 2025 · Backend Development

Boost Order Processing Speed with Segmented Locks and Redis

This article explains how to use segmented (sharded) locks and Redis‑based routing strategies to parallelize inventory deduction and order creation, dramatically increasing orders processed per second while maintaining atomicity and fault tolerance.

ConcurrencyRedisSegmented Lock
0 likes · 7 min read
Boost Order Processing Speed with Segmented Locks and Redis
Architect
Architect
Jul 5, 2025 · Backend Development

Implementing a Robust Redis Distributed Lock with AOP and Auto-Extension in Java

Learn how to design and implement a Redis-based distributed lock in Java using custom annotations, AOP interception, and a scheduled executor to automatically extend lock expiration, ensuring safe concurrent access to critical resources while handling timeouts, retries, and thread interruptions.

AOPConcurrencyJava
0 likes · 12 min read
Implementing a Robust Redis Distributed Lock with AOP and Auto-Extension in Java
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jun 16, 2025 · Backend Development

Mastering ZooKeeper: 7 Real-World Use Cases and Code Samples

ZooKeeper is an open‑source distributed coordination service that provides a simple, efficient mechanism for managing shared state, and this guide explores seven typical scenarios—including distributed locks, service registration, configuration management, queues, leader election, notifications, and barriers—complete with Java code examples and usage details.

Distributed CoordinationJavaLeader Election
0 likes · 9 min read
Mastering ZooKeeper: 7 Real-World Use Cases and Code Samples
Top Architect
Top Architect
Jun 4, 2025 · Backend Development

Implementing Request Debounce in Java Backend Using Redis and Redisson

This article explains how to implement request debouncing in Java backend services using Redis and Redisson, covering the concept, interface types needing debouncing, duplicate request detection, shared cache and distributed lock solutions, with complete code examples and testing results.

BackendJavaRedis
0 likes · 17 min read
Implementing Request Debounce in Java Backend Using Redis and Redisson
Java Captain
Java Captain
Jun 3, 2025 · Backend Development

Implementation of Order Service with Distributed Transactions, Locks, and Asynchronous Processing in Java

This article explains how to build a robust order service using Seata distributed transactions, Redisson distributed locks, CompletableFuture for asynchronous operations, token-based duplicate‑submission prevention, and RabbitMQ delayed queues for automatic order cancellation, with full Java code examples.

Order ServiceSeatadistributed lock
0 likes · 21 min read
Implementation of Order Service with Distributed Transactions, Locks, and Asynchronous Processing in Java
Lobster Programming
Lobster Programming
May 30, 2025 · Backend Development

How to Ensure API Idempotency with Locks: 5 Proven Strategies

This article explores five practical lock-based approaches—including database primary keys, pessimistic and optimistic locks, state machines, and distributed locks—to achieve reliable API idempotency in distributed systems, highlighting implementation details, trade‑offs, and code examples.

API idempotencyOptimistic LockPessimistic Lock
0 likes · 7 min read
How to Ensure API Idempotency with Locks: 5 Proven Strategies
Java Architect Essentials
Java Architect Essentials
May 20, 2025 · Backend Development

Ensuring Idempotency with Distributed Locks: Adjusting Aspect Order in Java Backend

This article explains how using a custom @DistributeLock annotation together with @Transactional can cause idempotency issues due to aspect execution order, and demonstrates how to prioritize the lock aspect using @Order to ensure the lock is applied before the transaction, with code examples and best‑practice recommendations.

Aspect OrderJavadistributed lock
0 likes · 6 min read
Ensuring Idempotency with Distributed Locks: Adjusting Aspect Order in Java Backend
Java Tech Enthusiast
Java Tech Enthusiast
May 17, 2025 · Backend Development

How to Implement Distributed API Debounce in Java with Redis and Redisson

This article explains why API debounce is needed in web back‑ends, identifies the types of endpoints that require it, outlines how to detect duplicate requests, and provides two concrete distributed solutions—shared Redis cache and Redisson lock—complete with annotation design, key generation logic, and full Java code examples.

API DebounceJavaRedis
0 likes · 15 min read
How to Implement Distributed API Debounce in Java with Redis and Redisson
IT Xianyu
IT Xianyu
May 8, 2025 · Databases

Redis for DBAs: Quick Installation, Core Commands, Caching Design Patterns, and High‑Concurrency Practices

This article explains why Redis is becoming a DBA's favorite, provides a five‑minute installation guide, essential commands, cache‑design pitfalls and solutions, explores Redis data structures with Java examples, demonstrates distributed locking and flash‑sale implementations, and covers clustering, backup, monitoring, and performance tuning.

JavaRediscluster
0 likes · 9 min read
Redis for DBAs: Quick Installation, Core Commands, Caching Design Patterns, and High‑Concurrency Practices
Sohu Tech Products
Sohu Tech Products
May 7, 2025 · Backend Development

Design and Implementation of a Scalable Lottery Activity Platform

The article describes how the FoxFriend team built a scalable, configurable lottery‑activity platform that replaces manual feed‑based draws with a modular micro‑service architecture, featuring a flexible prize‑tier data model, pre‑occupied inventory buckets, multi‑tenant isolation, high‑concurrency stock deduction, user risk controls, accurate probability handling, and a roadmap toward AI‑driven optimization.

Backend DevelopmentLottery Systemdistributed lock
0 likes · 25 min read
Design and Implementation of a Scalable Lottery Activity Platform
Architect
Architect
May 1, 2025 · Cloud Native

What’s New in Nacos 3.0? A Deep Dive into Its Cloud‑Native Enhancements

This article summarizes the key changes from the Nacos 3.0 beta to the official release, covering JDK and Spring Boot upgrades, new Admin APIs, default authentication, AI Model Content Protocol, unified namespaces, beta distributed lock, fuzzy listening, and native xDS support for cloud‑native microservice architectures.

AI IntegrationMicroservicesNacos
0 likes · 7 min read
What’s New in Nacos 3.0? A Deep Dive into Its Cloud‑Native Enhancements
macrozheng
macrozheng
Apr 28, 2025 · Cloud Native

Discover Nacos 3.0: AI‑Driven MCP, Distributed Locks, and Native xDS Support

Version 3.0 of Nacos upgrades to JDK 17 and Spring Boot 3.4.1, introduces AI‑focused MCP, enhanced Admin API with default authentication, unified namespaces, beta distributed lock and fuzzy listening features, and native xDS protocol support, while highlighting related open‑source SpringBoot + Vue e‑commerce projects.

AIMicroservicesNacos
0 likes · 7 min read
Discover Nacos 3.0: AI‑Driven MCP, Distributed Locks, and Native xDS Support
Java Architecture Diary
Java Architecture Diary
Apr 27, 2025 · Cloud Native

What’s New in Nacos 3.0? Key Features, AI Integration, and Cloud‑Native Enhancements

Nacos 3.0 introduces major upgrades—including JDK 17 and Spring Boot 3.4.1 support, a new Admin API, default authentication, AI‑focused MCP, unified namespaces, beta distributed lock and fuzzy listening features, plus native xDS protocol support—positioning it as a powerful cloud‑native service discovery and configuration platform.

AI IntegrationNacoscloud-native
0 likes · 6 min read
What’s New in Nacos 3.0? Key Features, AI Integration, and Cloud‑Native Enhancements
Java Tech Enthusiast
Java Tech Enthusiast
Apr 19, 2025 · Backend Development

Preventing Product Overselling in High‑Concurrency E‑Commerce Systems

To prevent overselling during flash sales, the article explains how non‑atomic database updates cause negative stock and presents solutions such as optimistic DB locking, Redis Lua atomic deductions, Redisson distributed locks, transactional message queues, and pre‑deduction with rate limiting, recommending a combined approach that achieved 120 000 QPS with zero oversell.

Optimistic Lockdistributed lockinventory management
0 likes · 7 min read
Preventing Product Overselling in High‑Concurrency E‑Commerce Systems
IT Services Circle
IT Services Circle
Apr 18, 2025 · Backend Development

Preventing Duplicate Orders under 100k QPS: Full‑Stack Strategies

This article explains how to prevent duplicate orders in a high‑traffic system handling 100,000 QPS by combining frontend safeguards such as button disabling and token mechanisms with backend techniques including NGINX rate limiting, gateway token validation, idempotent database design, sharding, distributed locks, optimistic locking, and comprehensive logging and monitoring.

High ConcurrencyRate Limitingbackend design
0 likes · 7 min read
Preventing Duplicate Orders under 100k QPS: Full‑Stack Strategies
Ma Wei Says
Ma Wei Says
Apr 5, 2025 · Backend Development

Ensuring Accurate Inventory Deduction in High‑Concurrency Sales with Redis

This article explains why simple GET‑modify‑SET inventory updates cause overselling in flash‑sale spikes and presents several Redis‑based solutions—including Lua scripts, WATCH‑based optimistic locks, distributed SETNX locks, and asynchronous queue processing—detailing their implementation, advantages, and trade‑offs.

BackendConcurrencyInventory
0 likes · 8 min read
Ensuring Accurate Inventory Deduction in High‑Concurrency Sales with Redis
Raymond Ops
Raymond Ops
Apr 4, 2025 · Databases

Mastering Redis: Persistence, Cache Pitfalls, Data Types, Clustering & Locks

This article explains Redis persistence mechanisms (RDB and AOF), common cache problems and their solutions, the various Redis data structures and their use cases, cluster deployment options, master‑slave replication, transaction commands, and how to implement distributed locks with SETNX and expiration.

ClusteringData TypesPersistence
0 likes · 13 min read
Mastering Redis: Persistence, Cache Pitfalls, Data Types, Clustering & Locks
Selected Java Interview Questions
Selected Java Interview Questions
Apr 4, 2025 · Backend Development

Guide to Using Lock4j Distributed Lock Component in Spring Boot

This article introduces the Lock4j distributed lock library, explains its features, shows how to add Maven dependencies, configure Redis, use the @Lock4j annotation for simple and advanced locking scenarios, and provides custom executor, key builder, and failure‑strategy examples for Spring Boot applications.

Lock4jRedisSpring Boot
0 likes · 6 min read
Guide to Using Lock4j Distributed Lock Component in Spring Boot
Su San Talks Tech
Su San Talks Tech
Mar 11, 2025 · Backend Development

7 Proven Retry Strategies to Keep Your System Running Smoothly

This article explores seven practical retry solutions—from simple loops and Spring Retry to Resilience4j, message queues, scheduled tasks, two‑phase commits, and distributed locks—explaining their scenarios, core code, and how they prevent costly system failures.

BackendMQResilience4j
0 likes · 10 min read
7 Proven Retry Strategies to Keep Your System Running Smoothly