Tag

Distributed Lock

0 views collected around this technical thread.

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.

DebounceDistributed LockJava
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.

Distributed LockJavaRabbitMQ
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 idempotencyDistributed Lockdatabase lock
0 likes · 7 min read
How to Ensure API Idempotency with Locks: 5 Proven Strategies
Java Architecture Diary
Java Architecture Diary
May 23, 2025 · Backend Development

Master Nacos 3.0 Distributed Locks: Quick Setup and Advanced Extensions

Discover how Nacos 3.0 introduces a high‑availability distributed lock feature that eliminates the need for external services like Redis or ZooKeeper, learn step‑by‑step integration with Spring Boot, explore its core components, and unlock advanced extensibility via Java SPI.

Distributed LockJavaMicroservices
0 likes · 8 min read
Master Nacos 3.0 Distributed Locks: Quick Setup and Advanced Extensions
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.

Distributed LockIdempotencyJava
0 likes · 6 min read
Ensuring Idempotency with Distributed Locks: Adjusting Aspect Order in Java Backend
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.

CachingClusterDatabase
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 DevelopmentDistributed Locklottery system
0 likes · 25 min read
Design and Implementation of a Scalable Lottery Activity Platform
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.

AIDistributed LockMicroservices
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 integrationDistributed LockNacos
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.

Distributed LockMessage QueueRedis
0 likes · 7 min read
Preventing Product Overselling in High‑Concurrency E‑Commerce Systems
Cognitive Technology Team
Cognitive Technology Team
Apr 19, 2025 · Backend Development

Concurrency Risks of Object Escape in Spring AOP and Correct Advice Ordering

The article explains how Spring AOP can cause object escape leading to concurrency safety problems, describes the impact of asynchronous threads and caching, and provides practical guidance on ordering AOP advices such as distributed lock, @Retryable, and dynamic datasource to avoid business anomalies.

AOPDistributed LockObject Escape
0 likes · 5 min read
Concurrency Risks of Object Escape in Spring AOP and Correct Advice Ordering
Code Mala Tang
Code Mala Tang
Apr 18, 2025 · Backend Development

Boost FastAPI Performance: Integrate Redis for Caching, Rate Limiting, and Queues

Learn how to set up Redis with Docker, integrate it into a FastAPI app using a custom caching decorator, and apply Redis for caching API responses, rate limiting, task queues, and distributed locks, complete with practical code examples and deployment tips.

CachingDistributed LockRedis
0 likes · 11 min read
Boost FastAPI Performance: Integrate Redis for Caching, Rate Limiting, and Queues
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.

Distributed LockIdempotencybackend design
0 likes · 7 min read
Preventing Duplicate Orders under 100k QPS: Full‑Stack Strategies
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.

CacheClusteringData Types
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.

Distributed LockJavaLock4j
0 likes · 6 min read
Guide to Using Lock4j Distributed Lock Component in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 5, 2025 · Backend Development

Mastering Distributed Locks in Spring Boot 3 with Redis and Lua

This article introduces a comprehensive Spring Boot 3 practical case collection and walks through building a reentrant, auto‑renewing distributed lock using Redis and Lua scripts, providing full code snippets and configuration guidance for robust backend concurrency control.

Distributed LockJavaRedis
0 likes · 10 min read
Mastering Distributed Locks in Spring Boot 3 with Redis and Lua
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.

BitmapsCachingDistributed Lock
0 likes · 9 min read
Master Redis: 16 Real-World Patterns for Caching, Locks, and More
IT Services Circle
IT Services Circle
Feb 20, 2025 · Backend Development

15 Common Redis Use Cases with Code Examples

This article presents fifteen practical Redis usage scenarios—including caching, distributed locks, leaderboards, counters, message queues, session management, bitmap sign‑ins, geolocation, rate limiting, pub/sub, delayed tasks, global IDs, recommendation models, user follow relationships, and timeline feeds—each illustrated with concise code snippets.

CachingDistributed LockGeolocation
0 likes · 10 min read
15 Common Redis Use Cases with Code Examples
Selected Java Interview Questions
Selected Java Interview Questions
Feb 18, 2025 · Backend Development

Why Java synchronized Is Insufficient in Distributed Systems and Alternative Lock Solutions

The article explains how Java's synchronized keyword works only within a single JVM, why it fails to provide mutual exclusion across multiple processes in distributed systems, and presents alternative distributed locking mechanisms such as database locks and Redis-based locks with code examples.

Distributed LockJavaRedis
0 likes · 8 min read
Why Java synchronized Is Insufficient in Distributed Systems and Alternative Lock Solutions
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.

DatabaseDistributed LockRedis
0 likes · 7 min read
How to Choose the Right Distributed Lock: DB, Redis, or ZooKeeper?