Tagged articles

distributed lock

459 articles · Page 2 of 5
macrozheng
macrozheng
Feb 25, 2025 · Databases

Master Redis: 16 Real-World Patterns for Caching, Locks, and More

This guide explores 16 practical Redis use cases—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, product tags, filtering, follow models, and ranking—providing code snippets and implementation tips for each pattern.

BitmapsRedisdistributed lock
0 likes · 9 min read
Master Redis: 16 Real-World Patterns for Caching, Locks, and More
Lobster Programming
Lobster Programming
Feb 10, 2025 · Backend Development

How to Choose the Right Distributed Lock: DB, Redis, or ZooKeeper?

This article explains the concept of distributed locks and compares three common implementation approaches—using a database, Redis, and ZooKeeper—detailing their mechanisms, advantages, drawbacks, and suitable scenarios for ensuring consistent access to shared resources in distributed systems.

BackendConcurrencyZooKeeper
0 likes · 7 min read
How to Choose the Right Distributed Lock: DB, Redis, or ZooKeeper?
Java Backend Technology
Java Backend Technology
Feb 4, 2025 · Backend Development

How to Implement Real-Time Overdue Task Alerts with Redis Key Expiration and Strategy Pattern

This article explains how to use Redis key expiration notifications combined with a strategy pattern to create real‑time overdue reminders for workflow tasks, covering configuration, listener implementation, distributed locking, message handling, and practical usage in a SpringBoot project.

Key ExpirationSpringBootStrategy Pattern
0 likes · 13 min read
How to Implement Real-Time Overdue Task Alerts with Redis Key Expiration and Strategy Pattern
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 3, 2025 · Backend Development

Code Review of Coupon Claim and Approval Workflow: Issues and Optimization Strategies

This article reviews Java Spring code for a coupon claim and approval workflow, identifies concurrency and transaction issues such as missing locks and inconsistent update order, and proposes optimizations including user‑level locking, simplifying lock management, and aligning transactional update sequences to prevent deadlocks.

Code ReviewConcurrencyJava
0 likes · 12 min read
Code Review of Coupon Claim and Approval Workflow: Issues and Optimization Strategies
Code Ape Tech Column
Code Ape Tech Column
Jan 22, 2025 · Backend Development

Using Lua Scripts with Spring Boot and Redis: A Comprehensive Guide

This article introduces Lua scripting in Redis, explains its fundamentals and advantages, and provides step‑by‑step instructions for integrating and executing Lua scripts within a Spring Boot application, including code examples, performance optimization, error handling, security considerations, and best practices.

LuaRedisSpring Boot
0 likes · 19 min read
Using Lua Scripts with Spring Boot and Redis: A Comprehensive Guide
Architecture Digest
Architecture Digest
Jan 10, 2025 · Backend Development

Implementing a Distributed Redis Lock with Spring AOP and Automatic Renewal

This article explains how to protect time‑consuming business operations and critical data by designing a Redis‑based distributed lock using custom annotations, Spring AOP, and a ScheduledExecutorService that automatically extends the lock’s expiration to avoid premature release.

ConcurrencyJavaScheduledExecutorService
0 likes · 11 min read
Implementing a Distributed Redis Lock with Spring AOP and Automatic Renewal
Alibaba Middleware
Alibaba Middleware
Dec 12, 2024 · Cloud Native

What’s New in Nacos 3.0 Alpha? Security, API Overhaul, and Cloud‑Native Enhancements

The Nacos 3.0‑Alpha release introduces finer‑grained API classification, default security per API type, a revised default namespace handling, native xDS support, a redesigned Admin API with flexible console/engine deployment, experimental distributed‑lock capability, and plans to upgrade to Spring Boot 3 and JDK 17, all outlined in the community roadmap.

API SecurityNacosSpring Boot 3
0 likes · 14 min read
What’s New in Nacos 3.0 Alpha? Security, API Overhaul, and Cloud‑Native Enhancements
Architect
Architect
Dec 8, 2024 · Backend Development

16 Essential Redis Patterns Every Backend Engineer Should Master

This article compiles sixteen practical Redis use‑cases—from caching and distributed locks to rate limiting, bitmaps, shopping carts, timelines, queues, likes, tags, filtering, follow/fan relationships, and leaderboards—providing code snippets and command examples to help backend developers design scalable systems.

BackendCachingDesign Patterns
0 likes · 11 min read
16 Essential Redis Patterns Every Backend Engineer Should Master
vivo Internet Technology
vivo Internet Technology
Nov 27, 2024 · Backend Development

Implementation Principles of Distributed Locks with Redis and Zookeeper

Distributed locks synchronize multiple services across nodes, and can be implemented using Redis’s fast, AP‑oriented SET‑NX with automatic TTL renewal or Zookeeper’s CP‑oriented ephemeral sequential nodes, each offering distinct trade‑offs in performance, consistency, and suitability for various workload requirements.

CAP theoremJavaRedis
0 likes · 24 min read
Implementation Principles of Distributed Locks with Redis and Zookeeper
Architect
Architect
Nov 10, 2024 · Backend Development

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

This article explains why API debouncing is crucial for backend Java services, outlines which endpoints need protection, describes how to identify duplicate requests, and provides step‑by‑step implementations using Redis shared‑cache and Redisson distributed locks with concrete code examples and test results.

BackendJavaRedis
0 likes · 14 min read
How to Prevent Duplicate Submissions in Java APIs with Redis and Redisson Locks
JD Retail Technology
JD Retail Technology
Nov 5, 2024 · Backend Development

Ensuring Inventory Consistency Under Concurrent Operations: Locking Pitfalls and Solutions

The article examines how frequent inventory adjustments in JD retail supply‑chain can suffer from concurrency issues, explains why traditional locking may fail, analyzes a real‑world case of lock misuse, and presents code‑level, database‑level, and architectural solutions to guarantee data consistency.

ConcurrencyInventoryconsistency
0 likes · 7 min read
Ensuring Inventory Consistency Under Concurrent Operations: Locking Pitfalls and Solutions
Java Backend Full-Stack
Java Backend Full-Stack
Sep 21, 2024 · Backend Development

How a Full‑Stack Charging‑Station Project Can Boost Your Interview Portfolio

This article walks through a zero‑to‑one charging‑station system built with Spring Cloud microservices, Vue front‑end, and a suite of enterprise features such as distributed locks, idempotency, multi‑level caching, and custom starters, providing concrete design documents and module breakdowns to help candidates showcase real project experience in interviews.

Charging StationDesign PatternsSpring Cloud
0 likes · 9 min read
How a Full‑Stack Charging‑Station Project Can Boost Your Interview Portfolio
Top Architect
Top Architect
Sep 20, 2024 · Backend Development

Implementing Interface Debounce with Distributed Locks in Java Backend Systems

This article explains the concept of request debouncing, identifies which API endpoints need it, and demonstrates two distributed lock solutions—shared Redis cache and Redisson—by providing complete Java code examples, configuration steps, and test results to prevent duplicate submissions in backend services.

JavaRedisSpring
0 likes · 17 min read
Implementing Interface Debounce with Distributed Locks in Java Backend Systems
Java Architect Essentials
Java Architect Essentials
Sep 17, 2024 · Backend Development

Using tldb Distributed Lock with Go and Java Clients

This article introduces tldb's distributed lock, explains its lock, trylock, and unlock methods, and provides step‑by‑step Go and Java client examples—including Maven configuration and code snippets—for acquiring and releasing locks across languages in a distributed environment.

JavaMQdistributed lock
0 likes · 8 min read
Using tldb Distributed Lock with Go and Java Clients
Architecture Digest
Architecture Digest
Aug 25, 2024 · Backend Development

Lock4j Distributed Lock Component: Features, Configuration, and Usage Guide

Lock4j is a Java distributed lock library supporting Spring AOP, RedisTemplate, Redisson, and Zookeeper, offering simple usage, configurable properties, annotation-driven locking, custom executors, key generators, and failure strategies, with detailed setup, code examples, and advanced customization instructions.

JavaRedisSpring Boot
0 likes · 6 min read
Lock4j Distributed Lock Component: Features, Configuration, and Usage Guide
Top Architect
Top Architect
Aug 21, 2024 · Backend Development

Handling Redis Cache Penetration, Avalanche, and Breakdown in High‑Concurrency Scenarios

This article explains the four common Redis cache pitfalls—cache penetration, avalanche, breakdown, and data inconsistency—demonstrates how they can crash high‑traffic systems, and provides practical Java/Spring Boot solutions such as empty‑object caching, Bloom filters, distributed locks, and delayed double‑delete strategies.

Bloom FilterData ConsistencyJava
0 likes · 27 min read
Handling Redis Cache Penetration, Avalanche, and Breakdown in High‑Concurrency Scenarios
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 6, 2024 · Operations

ZooKeeper Core Concepts: Data Model, Node Types, Sessions, Cluster, Election, ZAB, Watch, ACL, and Distributed Lock Patterns

This article explains ZooKeeper's hierarchical data model, node types, session mechanism, cluster roles and election process, ZAB protocol, watch mechanism, ACL permissions, and common distributed lock implementations, providing a comprehensive overview of its core concepts and practical usage.

ACLCoordination ServiceZooKeeper
0 likes · 17 min read
ZooKeeper Core Concepts: Data Model, Node Types, Sessions, Cluster, Election, ZAB, Watch, ACL, and Distributed Lock Patterns
Java High-Performance Architecture
Java High-Performance Architecture
Aug 4, 2024 · Backend Development

Unlock Java Distributed Locks with Lock4j: Guide & Advanced Tips

This article introduces Lock4j, a Java distributed lock library supporting RedisTemplate, Redisson, and Zookeeper, walks through its key features, dependency setup, configuration, annotation attributes, simple and advanced usage examples, and demonstrates custom executors, key builders, and failure strategies for robust concurrency control.

ConcurrencyJavaLock4j
0 likes · 6 min read
Unlock Java Distributed Locks with Lock4j: Guide & Advanced Tips
DeWu Technology
DeWu Technology
Jul 24, 2024 · Backend Development

Mastering Unique Identifiers and Distributed Locks: From UUIDs to CAS

This article explores how various unique identifier schemes—random UUIDs, sequential numbers, hierarchical paths, and distributed ID generators—are applied across programming languages, file systems, databases, and networks, and explains when and how to enforce uniqueness using pre‑validation, database constraints, or distributed locks such as Redis and Zookeeper, while also linking these mechanisms to CAS‑based concurrency control.

CASbackend developmentdatabase indexing
0 likes · 23 min read
Mastering Unique Identifiers and Distributed Locks: From UUIDs to CAS
Java Tech Enthusiast
Java Tech Enthusiast
Jul 21, 2024 · Backend Development

Interface Performance Optimization Techniques for Backend Development

The article outlines practical backend interface performance optimizations—including proper indexing, SQL tuning, parallel remote calls, batch queries, asynchronous processing, scoped transactions, fine-grained locking, pagination batching, multi-level caching, sharding, and monitoring tools—to dramatically reduce latency and improve throughput.

CachingIndexingSQL optimization
0 likes · 25 min read
Interface Performance Optimization Techniques for Backend Development
Programmer XiaoFu
Programmer XiaoFu
Jul 18, 2024 · Backend Development

11 Proven Techniques to Boost API Performance by 100×

This article walks through eleven practical methods—such as adding proper indexes, optimizing SQL, parallelizing remote calls, eliminating duplicate queries, using async processing, shrinking transaction scope, refining lock granularity, applying pagination, leveraging caching layers, and employing sharding and monitoring tools—to dramatically improve backend interface performance.

API performanceCachingIndex Optimization
0 likes · 27 min read
11 Proven Techniques to Boost API Performance by 100×
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 12, 2024 · Backend Development

Master Distributed Locks in Spring Boot with Lock4j: A Complete Guide

This tutorial walks you through using the Lock4j distributed lock component in Spring Boot 3.2.5, covering its features, Maven dependencies, configuration, basic annotation usage, custom key generation, expiration settings, and advanced options like custom executors, key builders, failure strategies, and manual lock handling.

Lock4jRedisSpring Boot
0 likes · 9 min read
Master Distributed Locks in Spring Boot with Lock4j: A Complete Guide
Architect
Architect
Jul 9, 2024 · Backend Development

Mastering Distributed Locks with Redis: From Simple SETNX to RedLock and Redisson

This article explains how to implement distributed locks using Redis, starting with a basic SETNX approach, identifying its shortcomings, and then presenting robust solutions such as identifier‑based unlocking, Lua scripts for atomicity, the RedLock algorithm, and Redisson’s advanced features including a watchdog mechanism.

BackendConcurrencyJava
0 likes · 19 min read
Mastering Distributed Locks with Redis: From Simple SETNX to RedLock and Redisson
Top Architect
Top Architect
Jul 7, 2024 · Backend Development

Backend Request Debounce and Distributed Lock Implementation in Java

This article explains the concept of request debouncing, outlines ideal debounce component characteristics, identifies which API endpoints need debouncing, and provides detailed Java implementations using shared Redis cache and Redisson distributed locks, including custom annotations, key generation, and practical testing results.

JavaRedisSpring
0 likes · 18 min read
Backend Request Debounce and Distributed Lock Implementation in Java
FunTester
FunTester
Jul 1, 2024 · Cloud Native

Mastering etcd with Go: From Basics to Distributed Locks

This article introduces etcd as a reliable distributed key‑value store built on Raft, outlines its key features and common use cases such as service discovery and configuration management, and provides a complete Go tutorial covering dependency setup, server launch, client implementation, read/write testing, and distributed lock usage.

GoRaftconfiguration management
0 likes · 10 min read
Mastering etcd with Go: From Basics to Distributed Locks
Top Architect
Top Architect
Jun 5, 2024 · Backend Development

Implementing Interface Debounce (Anti‑duplicate Submission) in Java Backend with Redis and Redisson

This article explains how to prevent duplicate API calls in Java backend systems by using debounce techniques, shared Redis caches or Redisson distributed locks, and provides complete annotation‑based implementations with code examples, key generation strategies, and testing results to achieve idempotent interfaces.

JavaRedisdebounce
0 likes · 16 min read
Implementing Interface Debounce (Anti‑duplicate Submission) in Java Backend with Redis and Redisson
DaTaobao Tech
DaTaobao Tech
May 24, 2024 · Backend Development

Design and Optimization of High‑Concurrency Ranking and Real‑Time Messaging Systems

The article details a comprehensive architecture for high‑concurrency services—including a Redis‑backed ranking system, distributed locking, Bloom‑filter nickname deduplication, Netty‑based reliable messaging, IoT MQTT/REST integration, live‑streaming pipelines, layered performance tuning, and automated traffic‑replay testing to ensure scalability and robustness.

IoTdistributed locklive-streaming
0 likes · 38 min read
Design and Optimization of High‑Concurrency Ranking and Real‑Time Messaging Systems
Architecture & Thinking
Architecture & Thinking
Apr 2, 2024 · Operations

How to Ensure Data Consistency in High‑Concurrency Distributed Systems

This article explores the challenges of maintaining data consistency under high concurrency in distributed systems, reviewing common consistency issues, distributed lock implementations, optimistic and pessimistic strategies, CAS and ABA problems, and practical solutions such as Redis locks, Zookeeper, and transaction protocols.

CASData ConsistencyHigh Concurrency
0 likes · 15 min read
How to Ensure Data Consistency in High‑Concurrency Distributed Systems
Architect
Architect
Mar 10, 2024 · Backend Development

Build a Redis Distributed Lock in Go from Scratch

This article walks through the problem of implementing a reliable Redis distributed lock in Go, explains the pitfalls of naive SetNx usage, introduces timeout handling and GetSet replacement, provides step‑by‑step Go code, and demonstrates its correctness with a multithreaded test.

ConcurrencyGoRedis
0 likes · 11 min read
Build a Redis Distributed Lock in Go from Scratch
macrozheng
macrozheng
Feb 20, 2024 · Databases

10 Real-World Redis Use Cases Every Backend Engineer Should Know

Discover ten practical Redis scenarios—from counting page visits and caching category trees to implementing distributed locks, leaderboards, rate limiting, bitmap analytics, message queues, and global ID generation—each illustrated with concise code snippets and best‑practice tips for robust backend development.

BitmapCachingLeaderboard
0 likes · 11 min read
10 Real-World Redis Use Cases Every Backend Engineer Should Know
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Feb 19, 2024 · Fundamentals

Comprehensive Overview of Zookeeper: Core Features, Architecture, Protocols, and Use Cases

This article provides a detailed introduction to Zookeeper, covering its role as a distributed coordination service, core functionalities such as a file‑system‑like data model, notification and cluster management, the ZAB consensus protocol, node types, leader election, distributed lock implementation, and typical application scenarios.

Distributed CoordinationLeader ElectionZAB Protocol
0 likes · 9 min read
Comprehensive Overview of Zookeeper: Core Features, Architecture, Protocols, and Use Cases
Architect
Architect
Feb 18, 2024 · Backend Development

How Redisson Implements Distributed Locks: Deep Dive into Mechanisms and Pitfalls

This article explains why distributed locks are needed, outlines Redisson's lock properties, walks through its Lua‑based acquisition, renewal, and release processes, examines master‑slave pitfalls, compares RedLock with Zookeeper, and provides practical code examples for Java developers.

ConcurrencyJavaLock Mechanism
0 likes · 14 min read
How Redisson Implements Distributed Locks: Deep Dive into Mechanisms and Pitfalls
IT Niuke
IT Niuke
Feb 3, 2024 · Backend Development

A Powerful Distributed Lock Framework: Introducing Lock4j

This guide introduces Lock4j, a versatile distributed‑lock component for Java that works with Spring AOP and supports RedisTemplate, Redisson, and Zookeeper, and walks through its features, configuration, annotation attributes, basic usage, and advanced customization options.

JavaLock4jRedis
0 likes · 7 min read
A Powerful Distributed Lock Framework: Introducing Lock4j
Java Tech Enthusiast
Java Tech Enthusiast
Feb 1, 2024 · Backend Development

Implementing a Robust Redis Distributed Lock with Spring Boot

The article shows how to build a reliable Redis‑based distributed lock in a Spring Boot 2.7 application by storing a unique UUID token, acquiring the lock with SET NX PX, releasing it atomically via a Lua script, and providing a clean Lock interface, factory component, and JUnit example.

JavaLuaRedis
0 likes · 13 min read
Implementing a Robust Redis Distributed Lock with Spring Boot
Architect
Architect
Jan 29, 2024 · Backend Development

How to Implement Robust Request Debounce in Java Backend with Redis and Redisson

This article explains why request debounce is essential for preventing duplicate submissions, outlines which APIs need protection, and walks through two distributed‑lock solutions—shared Redis cache and Redisson—showing concrete annotations, key‑generation logic, and Spring‑AOP code with full test results.

BackendJavaRedis
0 likes · 19 min read
How to Implement Robust Request Debounce in Java Backend with Redis and Redisson
Tencent Cloud Developer
Tencent Cloud Developer
Jan 24, 2024 · Backend Development

Understanding the Safety of Redis Distributed Locks and the Redlock Debate

Redis distributed locks require unique identifiers, atomic Lua releases, and TTL refreshes to avoid deadlocks, while the Redlock algorithm adds majority quorum but remains vulnerable to clock drift and client pauses, so critical systems should combine it with fencing tokens or version checks for true safety.

ConcurrencyRedisZooKeeper
0 likes · 36 min read
Understanding the Safety of Redis Distributed Locks and the Redlock Debate
Su San Talks Tech
Su San Talks Tech
Jan 18, 2024 · Databases

10 Real-World Redis Use Cases Every Backend Engineer Should Know

This article explores ten practical Redis scenarios—from counting page visits and caching category trees to implementing distributed locks, leaderboards, rate limiting, bitmap statistics, cache acceleration, message queues, and global ID generation—providing code snippets and best‑practice tips for each use case.

BitmapLeaderboarddistributed lock
0 likes · 10 min read
10 Real-World Redis Use Cases Every Backend Engineer Should Know
Selected Java Interview Questions
Selected Java Interview Questions
Jan 15, 2024 · Backend Development

Preventing Inventory Overselling in High‑Concurrency Scenarios: Java, Redis Distributed Lock, MySQL Row Lock, Optimistic Lock, and SQL Solutions

The article analyzes the inventory oversell problem caused by concurrent purchase requests and presents four backend solutions—including a Redis distributed lock, MySQL row lock, optimistic locking with version fields, and conditional SQL updates—illustrated with Java code and SQL examples to ensure data consistency.

ConcurrencyJavaOptimistic Lock
0 likes · 10 min read
Preventing Inventory Overselling in High‑Concurrency Scenarios: Java, Redis Distributed Lock, MySQL Row Lock, Optimistic Lock, and SQL Solutions
ITPUB
ITPUB
Jan 6, 2024 · Databases

Beyond Caching: How Redis Powers Distributed Locks, Queues, and More

This article explores Redis's capabilities beyond simple caching, detailing its use for distributed locks, rate limiting, session storage, complex business scenarios, and various messaging patterns—including List‑based queues, blocking commands, Pub/Sub, and the Stream data structure—while highlighting practical limitations and best‑practice recommendations.

RedisStreamdistributed lock
0 likes · 7 min read
Beyond Caching: How Redis Powers Distributed Locks, Queues, and More
dbaplus Community
dbaplus Community
Dec 10, 2023 · Databases

How to Import 1 Billion Records into MySQL in Record Time

This article outlines a comprehensive strategy for rapidly loading one billion 1 KB log records stored in HDFS or S3 into MySQL, covering data partitioning, B‑tree limits, batch inserts, storage‑engine selection, sharding, concurrent write control, efficient file reading, task coordination, fault‑tolerant progress tracking with Redis, and distributed locking with Redisson.

Batch InsertFile ReadingMySQL
0 likes · 20 min read
How to Import 1 Billion Records into MySQL in Record Time
MaGe Linux Operations
MaGe Linux Operations
Dec 7, 2023 · Backend Development

Mastering Redis: From Core Data Types to Enterprise‑Scale Distributed Locks

This comprehensive guide explains Redis fundamentals, its rich data structures, persistence mechanisms (RDB and AOF), enterprise‑level configuration strategies, common usage patterns such as caching, ranking and geolocation, and dives deep into distributed lock implementations with Redisson and Lua scripts, providing practical code examples for real‑world applications.

CachingLuadata-structures
0 likes · 31 min read
Mastering Redis: From Core Data Types to Enterprise‑Scale Distributed Locks
Java High-Performance Architecture
Java High-Performance Architecture
Dec 7, 2023 · Backend Development

Master Distributed Locks in Java with Lock4j: Features, Setup, and Advanced Usage

This article introduces the Lock4j distributed lock library for Java, outlines its key features and supported backends, provides step‑by‑step Maven dependency setup, Redis configuration, annotation details, and demonstrates both basic and advanced usage patterns including custom executors and lock‑failure strategies.

JavaLock4jRedis
0 likes · 6 min read
Master Distributed Locks in Java with Lock4j: Features, Setup, and Advanced Usage
LouZai
LouZai
Dec 1, 2023 · Backend Development

Understanding All Major Distributed Lock Implementations in One Guide

This article explains what distributed locks are, outlines their key properties, classifies implementation approaches, and provides detailed walkthroughs of MySQL, Redis, Etcd, and ZooKeeper based locks—including code examples, trade‑offs, and best‑practice recommendations.

GoMySQLRedis
0 likes · 21 min read
Understanding All Major Distributed Lock Implementations in One Guide
Architecture Digest
Architecture Digest
Nov 23, 2023 · Backend Development

Using Redisson Distributed Locks with Custom Annotations in Java

This article explains how to apply Redisson's distributed lock in Java, demonstrates the basic lock and tryLock APIs, shows how to create a custom @DistributedLock annotation and an AOP aspect to handle locking automatically, and provides a practical usage example with two services.

AOPConcurrencyJava
0 likes · 8 min read
Using Redisson Distributed Locks with Custom Annotations in Java
IT Services Circle
IT Services Circle
Nov 20, 2023 · Databases

Redis Beyond Caching: Distributed Locks, Rate Limiting, Message Queues and More

This article explains how Redis can be used for distributed locks, rate limiting, various message‑queue patterns, delayed queues, distributed sessions and complex business scenarios, while also discussing the limitations of using Redis as a message queue and recommending dedicated solutions like RocketMQ or Kafka.

RedisStreamdistributed lock
0 likes · 7 min read
Redis Beyond Caching: Distributed Locks, Rate Limiting, Message Queues and More
Cognitive Technology Team
Cognitive Technology Team
Nov 19, 2023 · Backend Development

Resolving Task Overlap and Scheduling Issues in Quartz with DisallowConcurrentExecution and Distributed Locks

This article explains why Quartz jobs can overlap when their execution time exceeds the trigger interval, demonstrates how to prevent concurrent execution with the @DisallowConcurrentExecution annotation, discusses distributed lock and idempotency solutions for clusters, and covers thread‑pool limits, exception handling, and a complete Java demo.

ConcurrencyDisallowConcurrentExecutionJava
0 likes · 5 min read
Resolving Task Overlap and Scheduling Issues in Quartz with DisallowConcurrentExecution and Distributed Locks
Selected Java Interview Questions
Selected Java Interview Questions
Nov 7, 2023 · Backend Development

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

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

JavaLuaRedis
0 likes · 17 min read
Implementing Distributed Locks with Redis: Principles, Challenges, and Optimizations
Architect
Architect
Nov 1, 2023 · Backend Development

Mastering Distributed Locks with Redis: From Basics to Advanced Solutions

This article examines why local locks fail in distributed micro‑service environments, introduces Redis‑based distributed locking, walks through five incremental lock designs—from a simple SETNX implementation to a Lua‑script atomic solution—highlighting each scheme's trade‑offs, code examples, and practical pitfalls.

ConcurrencyJavaLua
0 likes · 18 min read
Mastering Distributed Locks with Redis: From Basics to Advanced Solutions
LouZai
LouZai
Nov 1, 2023 · Databases

Beyond Caching: Real‑World Redis Use Cases and Scenarios

The article explains how Redis’s rich data structures and persistence options enable it to serve not only as a distributed cache but also as a primary store for user profiles, counters, leaderboards, relationships, active‑user tracking, distributed locks, rate limiting, messaging, geospatial queries, and more, while also discussing high‑availability and hot‑cold data challenges.

Data StructuresGeospatialRate Limiting
0 likes · 19 min read
Beyond Caching: Real‑World Redis Use Cases and Scenarios
Java High-Performance Architecture
Java High-Performance Architecture
Oct 31, 2023 · Backend Development

Master Redisson Distributed Locks in Java: Features, Code & Spring Boot

This article introduces Redisson, a Java framework built on Redis for distributed systems, detailing its extensive features such as distributed objects, locks, rate limiters, and task scheduling, and provides step‑by‑step guidance on integrating Redisson’s distributed lock into Spring Boot applications with code examples.

ConcurrencyJavaRedis
0 likes · 11 min read
Master Redisson Distributed Locks in Java: Features, Code & Spring Boot
Top Architecture Tech Stack
Top Architecture Tech Stack
Oct 17, 2023 · Backend Development

Implementing Distributed Locks with Redis: Problems and Solutions

This article explains how Redis can be used to implement distributed locks, outlines common pitfalls such as non‑atomic operations, lock expiration, incorrect unlocking, lack of re‑entrancy and waiting mechanisms, and presents Lua scripts, Java examples, and cluster‑level considerations to mitigate these issues.

ConcurrencyJavaLua
0 likes · 10 min read
Implementing Distributed Locks with Redis: Problems and Solutions
Shepherd Advanced Notes
Shepherd Advanced Notes
Oct 12, 2023 · Backend Development

Using Zookeeper for Middleware: Implementing Distributed Locks and Service Registry in Spring Boot

This article explains Zookeeper's role as an open‑source distributed coordination service, covering its observer‑pattern design, data model, installation (single‑node and cluster), leader election, watcher mechanism, and demonstrates how to integrate Zookeeper as a service registry and distributed lock in Spring Boot using Curator, complete with code examples.

Leader ElectionSpring BootWatcher
0 likes · 25 min read
Using Zookeeper for Middleware: Implementing Distributed Locks and Service Registry in Spring Boot
Programmer DD
Programmer DD
Oct 4, 2023 · Databases

5 Essential Redis Use Cases Every Developer Should Know

This article explores five common Redis applications—caching, session storage, distributed locking, rate limiting, and leaderboards—explaining how each leverages Redis’s in‑memory speed, atomic commands, and data structures to improve performance, scalability, and reliability of modern web services.

In-Memory DatabaseLeaderboardRate Limiting
0 likes · 7 min read
5 Essential Redis Use Cases Every Developer Should Know
Java High-Performance Architecture
Java High-Performance Architecture
Sep 25, 2023 · Backend Development

Master Distributed Locks with Redisson: Deep Dive into Java High‑Performance Architecture

This article explains the concept of distributed locks for ensuring data consistency in clustered environments, outlines common implementation approaches, and provides a comprehensive guide to using Redisson in Java—including Maven setup, YAML configuration, core source‑code analysis, Lua scripts for lock and unlock operations, and practical test cases.

ConcurrencyJavaLua
0 likes · 15 min read
Master Distributed Locks with Redisson: Deep Dive into Java High‑Performance Architecture
Top Architect
Top Architect
Sep 6, 2023 · Backend Development

Using Redisson for Distributed Locks in Java: Configuration, Code Samples, and Source‑Code Analysis

This article explains how distributed locks solve data‑consistency problems in clustered environments, introduces Redisson as a Redis‑based locking library, provides Maven and YAML configuration, shows Java code for Redisson setup and test cases, and analyses the underlying Lua scripts and source‑code mechanisms.

ConcurrencyJavaLua script
0 likes · 18 min read
Using Redisson for Distributed Locks in Java: Configuration, Code Samples, and Source‑Code Analysis
Architect
Architect
Aug 24, 2023 · Backend Development

How Vivo’s E‑Commerce Inventory System Scales: Architecture, Challenges, and Solutions

This article details the evolution and design of Vivo’s e‑commerce inventory platform, covering its layered architecture, multiple inventory types, deduction workflows, idempotent APIs, anti‑oversell mechanisms, high‑concurrency strategies, hotspot mitigation, and synchronization techniques, while explaining the reasoning behind each technical choice.

BackendHigh ConcurrencyInventory
0 likes · 18 min read
How Vivo’s E‑Commerce Inventory System Scales: Architecture, Challenges, and Solutions
ITPUB
ITPUB
Aug 24, 2023 · Databases

Mastering Redis: Core Data Structures, Persistence, Clustering and Advanced Cache Strategies

This comprehensive guide explains Redis fundamentals, its rich data types, differences from Memcached, thread model, persistence mechanisms (AOF, RDB, hybrid), memory eviction policies, clustering for high availability, cache design patterns, distributed locking, Redlock algorithm, and practical techniques for identifying and safely deleting big keys.

In-Memory DatabasePersistenceRedis
0 likes · 68 min read
Mastering Redis: Core Data Structures, Persistence, Clustering and Advanced Cache Strategies
Selected Java Interview Questions
Selected Java Interview Questions
Aug 24, 2023 · Backend Development

Implementing Distributed Locks with Redis and Redisson

This article explains how to create Redis‑based distributed locks, discusses common pitfalls such as deadlocks and accidental deletions, and provides practical solutions including atomic expiration commands, Lua scripts, and a complete Redisson Java example for acquiring and releasing locks safely.

BackendJavaRedis
0 likes · 5 min read
Implementing Distributed Locks with Redis and Redisson
Tech Architecture Stories
Tech Architecture Stories
Jul 24, 2023 · Backend Development

Mastering Distributed Locks: When to Use Redis, Zookeeper, and Redlock

This guide explains why distributed locks are needed, how to correctly acquire and release them, compares Redis and Zookeeper implementations—including single‑master, Redlock, and Zookeeper approaches—and offers practical recommendations for ensuring atomicity, preventing deadlocks, and protecting shared resources in production environments.

AtomicityConcurrencyRedis
0 likes · 12 min read
Mastering Distributed Locks: When to Use Redis, Zookeeper, and Redlock
Architect
Architect
Jul 20, 2023 · Backend Development

10 Hidden Pitfalls of Redis Distributed Locks and How to Avoid Them

This article dissects ten common traps when implementing Redis distributed locks—such as non‑atomic setnx/expire, missing expirations, lock release ordering, non‑re‑entrancy, master‑slave replication issues, and the Redlock algorithm—while providing concrete code examples and practical remedies.

JavaRedisbackend development
0 likes · 14 min read
10 Hidden Pitfalls of Redis Distributed Locks and How to Avoid Them
Top Architect
Top Architect
Jul 17, 2023 · Databases

Using Redis as a Database: Python Code Samples and Comparison with MySQL

This article provides Python code examples for using Redis as a database—including connection, basic CRUD, list and sorted set operations, key expiration, publishing/subscribing, distributed locking, and caching—followed by a detailed comparison of Redis and MySQL across data model, persistence, query capabilities, performance, scalability, and transaction support.

MySQL ComparisonPythonRedis
0 likes · 11 min read
Using Redis as a Database: Python Code Samples and Comparison with MySQL
Shepherd Advanced Notes
Shepherd Advanced Notes
Jun 27, 2023 · Backend Development

Implementing Distributed Locks in Spring Boot with Redisson

This article explains how Redisson extends Redis to provide a rich set of distributed Java objects and services, walks through integrating Redisson into a Spring Boot project, demonstrates various lock types (reentrant, read‑write, semaphore, latch) with code examples, and details the internal watchdog mechanism that guarantees atomic lock acquisition and automatic renewal.

JavaRedisSemaphore
0 likes · 19 min read
Implementing Distributed Locks in Spring Boot with Redisson
IT Services Circle
IT Services Circle
May 24, 2023 · Backend Development

Ensuring API Idempotency: Concepts and the “One Lock, Two Check, Three Update” Method

The article explains the concept of idempotency for APIs, distinguishes request and business idempotency, highlights the risk of idempotent breakdown under high concurrency, and presents a practical solution using a three‑step process—lock, check, and update—often implemented with Redis distributed locks and database uniqueness constraints.

APIBackenddistributed lock
0 likes · 5 min read
Ensuring API Idempotency: Concepts and the “One Lock, Two Check, Three Update” Method
Su San Talks Tech
Su San Talks Tech
May 23, 2023 · Backend Development

How to Prevent Duplicate Payments in E‑Commerce: Proven Strategies

This article explains the e‑commerce payment flow, identifies why duplicate payments occur—such as missing idempotency, lost orders, and multi‑channel issues—and presents practical backend solutions like distributed locking, result caching, in‑progress flow cancellation, refund handling, active polling, and push/pull synchronization.

distributed lockduplicate paymente-commerce
0 likes · 11 min read
How to Prevent Duplicate Payments in E‑Commerce: Proven Strategies
Practical DevOps Architecture
Practical DevOps Architecture
May 16, 2023 · Databases

Redis Course Curriculum Overview: Distributed Locks, High Availability, Clustering, Persistence, and Advanced Projects

This article outlines a comprehensive Redis training program covering fundamentals, distributed lock implementation, high‑availability mechanisms, clustering, persistence strategies, and practical projects such as Bloom filter integration and flash‑sale systems, providing learners with the knowledge to master advanced Redis usage.

Bloom FilterClusteringFlash Sale
0 likes · 5 min read
Redis Course Curriculum Overview: Distributed Locks, High Availability, Clustering, Persistence, and Advanced Projects
JD Tech
JD Tech
May 4, 2023 · Backend Development

Understanding Redis Distributed Locks: Features, Implementations, and Best Practices

This article explains why distributed locks are needed, describes the five essential characteristics of Redis locks, compares three common implementation methods, and provides detailed Java code examples with watchdog, re‑entrancy, and expiration handling to guide developers in building reliable distributed locking solutions.

ConcurrencyLuadistributed lock
0 likes · 21 min read
Understanding Redis Distributed Locks: Features, Implementations, and Best Practices
php Courses
php Courses
Apr 29, 2023 · Backend Development

Implementing Distributed Locks with Redis in PHP to Prevent Overselling

This article explains how to prevent overselling in high‑concurrency scenarios by using Redis‑based distributed locks in PHP, detailing initialization, lock acquisition with setnx, unlocking with del, and providing complete sample code along with best‑practice considerations.

PHPRedisdistributed lock
0 likes · 4 min read
Implementing Distributed Locks with Redis in PHP to Prevent Overselling