Tag

DistributedLock

0 views collected around this technical thread.

Top Architecture Tech Stack
Top Architecture Tech Stack
May 14, 2025 · Backend Development

Implementing IP+URL Rate Limiting with Spring Boot Interceptor and Redis Distributed Lock

This guide demonstrates how to protect a Spring Boot service from malicious requests by creating a custom interceptor that tracks URL‑IP request counts, uses Redis for distributed locking, and disables offending IPs after a configurable threshold, with full code examples and configuration steps.

DistributedLockInterceptorJava
0 likes · 8 min read
Implementing IP+URL Rate Limiting with Spring Boot Interceptor and Redis Distributed Lock
Java Architect Essentials
Java Architect Essentials
Dec 1, 2024 · Backend Development

Resolving Execution Delay and Single‑Thread Issues in SpringBoot @EnableScheduling

This article explains why SpringBoot's default @EnableScheduling creates a single‑threaded scheduler that can cause execution delays, and demonstrates multiple solutions—including configuring the thread pool, using async execution, and applying a distributed lock with Redisson—to achieve reliable and concurrent scheduled tasks.

AsyncDistributedLockSpringBoot
0 likes · 17 min read
Resolving Execution Delay and Single‑Thread Issues in SpringBoot @EnableScheduling
Java Architect Essentials
Java Architect Essentials
Jun 19, 2024 · Backend Development

Implementing Interface Debounce and Request Lock in Java Backend with Redis and Redisson

This article explains the concept of interface debouncing, identifies which API endpoints need it, and provides detailed Java implementations using custom @RequestLock annotations, Redis caching, and Redisson distributed locks to prevent duplicate submissions in backend services.

DebounceDistributedLockJava
0 likes · 15 min read
Implementing Interface Debounce and Request Lock in Java Backend with Redis and Redisson
IT Services Circle
IT Services Circle
Apr 25, 2024 · Backend Development

How Redisson Implements Distributed Locks Using Redis

This article explains how Redisson leverages Redis to implement distributed locks, detailing the underlying Lua scripts, lock acquisition and release processes, the watch‑dog mechanism for automatic lease renewal, and provides Java code examples for integrating and testing the lock functionality.

DistributedLockJavaRedis
0 likes · 19 min read
How Redisson Implements Distributed Locks Using Redis
Java Architect Essentials
Java Architect Essentials
Feb 18, 2024 · Databases

Common Redis Use Cases and Implementation Patterns

This article presents sixteen 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 relationships, and leaderboards—each explained with data types, commands, and code examples.

CachingDataStructuresDistributedLock
0 likes · 8 min read
Common Redis Use Cases and Implementation Patterns
Top Architect
Top Architect
Apr 17, 2023 · Backend Development

Handling Redis Cache Pitfalls: Penetration, Avalanche, Breakdown, and Consistency with Bloom Filters and Distributed Locks

This article explains the four common Redis caching challenges—cache penetration, avalanche, breakdown, and data inconsistency—demonstrates their impact under high concurrency, and provides practical Java Spring Boot solutions including caching null objects, Bloom filters, distributed locks, random expiration, and delayed double‑delete strategies with full code examples.

BloomFilterCacheCacheInvalidation
0 likes · 28 min read
Handling Redis Cache Pitfalls: Penetration, Avalanche, Breakdown, and Consistency with Bloom Filters and Distributed Locks
Java Architect Essentials
Java Architect Essentials
Mar 7, 2023 · Databases

16 Common Redis Application Scenarios with Code Examples

This article presents sixteen typical Redis use cases—including caching, distributed locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, product tags, filtering, follow relationships, and ranking—each explained with practical code snippets and command examples.

CacheDistributedLockRedis
0 likes · 9 min read
16 Common Redis Application Scenarios with Code Examples
Top Architect
Top Architect
Jun 15, 2022 · Backend Development

Implementing Request-Level Locking with a Custom @ApiLock Annotation in Java

This article explains how to prevent duplicate backend requests caused by rapid user clicks by creating a reusable @ApiLock annotation that leverages distributed locks, generates lock keys from request parameters, and integrates an AOP aspect to acquire and release locks around controller methods.

AOPAnnotationDistributedLock
0 likes · 14 min read
Implementing Request-Level Locking with a Custom @ApiLock Annotation in Java
政采云技术
政采云技术
Feb 17, 2022 · Backend Development

Comprehensive Guide to Java Locks: Synchronized, ReentrantLock, AQS, and Distributed Locks

This article provides an in‑depth overview of Java locking mechanisms, covering lock classifications, the inner workings of the synchronized keyword, ReentrantLock, AbstractQueuedSynchronizer, various lock optimizations, and practical implementations of distributed locks using Redis and Zookeeper.

AQSDistributedLockJava
0 likes · 28 min read
Comprehensive Guide to Java Locks: Synchronized, ReentrantLock, AQS, and Distributed Locks
IT Architects Alliance
IT Architects Alliance
Sep 24, 2021 · Databases

Common Redis Use Cases and Implementation Patterns

This article presents a comprehensive guide to using Redis for caching, distributed data sharing, distributed locks, global IDs, counters, rate limiting, bitmap statistics, shopping carts, timelines, message queues, lotteries, likes, product tagging, filtering, follow relationships, and ranking, complete with code examples.

BitmapsCachingDataStructures
0 likes · 8 min read
Common Redis Use Cases and Implementation Patterns
Code Ape Tech Column
Code Ape Tech Column
Sep 7, 2021 · Databases

20 Classic Redis Interview Questions and Answers

This article compiles 20 classic Redis interview questions covering its definition, data structures, performance mechanisms, caching challenges, high‑availability setups, persistence options, distributed locking techniques, and best‑practice solutions, providing developers with comprehensive insights into Redis architecture and practical usage.

CachingDistributedLockInterview
0 likes · 50 min read
20 Classic Redis Interview Questions and Answers
Code Ape Tech Column
Code Ape Tech Column
Aug 6, 2021 · Backend Development

Common Redis Use Cases: Caching, Distributed Locks, Counters, Rate Limiting, and More

This article outlines a variety of practical Redis use cases—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmap statistics, shopping carts, timelines, message queues, lotteries, likes, product tagging, filtering, follow/recommendation models, and ranking—demonstrating how Redis can support diverse backend functionalities.

BitmapCachingDistributedLock
0 likes · 9 min read
Common Redis Use Cases: Caching, Distributed Locks, Counters, Rate Limiting, and More
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Mar 29, 2021 · Databases

Implementing Distributed Read‑Write Locks with MySQL

This article explains how to build a distributed read‑write lock using MySQL tables and transactions, covering the business scenario, lock table design, detailed SQL procedures for write and read operations, logging, dead‑lock handling, and a cleanup job.

DatabaseConcurrencyDeadlockDistributedLock
0 likes · 13 min read
Implementing Distributed Read‑Write Locks with MySQL
FunTester
FunTester
Aug 9, 2020 · Backend Development

Implementing Multithreaded Test Execution with Thread Pools and Distributed User Locks in Java

This article describes how to accelerate test case execution by introducing a global thread pool with CountDownLatch synchronization, presents the full Java implementations of the custom thread pool and test‑run thread classes, and explains a combined local and distributed user‑lock mechanism that uses ConcurrentHashMap caching and transactional locks to ensure safe credential retrieval.

DistributedLockJavaTestingFramework
0 likes · 9 min read
Implementing Multithreaded Test Execution with Thread Pools and Distributed User Locks in Java