Tagged articles
Redis Lock
10 articles · Page 1 of 1
This article examines the hidden pitfalls of SpringBoot’s @Scheduled annotation—such as duplicate runs in clusters, single‑thread blocking, uncaught exceptions, and lack of monitoring—and provides a step‑by‑step guide to configuring custom thread pools, distributed locks, timeout handling, dynamic task management, and observability for production‑grade reliability.
Dynamic ConfigurationException HandlingRedis Lock
0 likes · 19 min read

This article walks through the end‑to‑end creation of a production‑grade table‑reservation platform, covering the three‑tier client architecture (WeChat Mini‑Program, H5/App via UniApp, and a Vue3 + Element Plus PC admin), a dual Spring Boot backend, Redis distributed locking combined with MySQL unique indexes for high‑concurrency seat booking, JWT‑based authentication, RBAC permission control, and an Apple‑inspired design system, all illustrated with concrete code snippets and deployment tips.
JWTRBACRedis Lock
0 likes · 21 min read

High‑concurrency systems must go beyond simple locking; the article breaks down four progressive strategies—optimistic locking, database pessimistic locking, Redis distributed locks, and finally message‑queue serialization—explaining their trade‑offs, implementation details, pitfalls, and how to combine them into a layered architecture that sustains million‑QPS workloads with consistency, throughput, and recoverability.
Message QueueOptimistic LockRedis Lock
0 likes · 32 min read

This article explains how to design and implement a WeChat group red packet feature, covering database schema, non‑cached and cached workflows, concurrency control with Redis locks, and two allocation algorithms—random distribution and double‑average method.
Allocation AlgorithmCachingRedis Lock
0 likes · 11 min read

This article explains the ABA concurrency issue in distributed systems and presents three practical solutions—using Redis locks, implementing optimistic locking with version fields, and leveraging ordered message queues—to ensure data consistency under concurrent updates.
ABA problemConcurrencyOptimistic Lock
0 likes · 5 min read

This article examines four architectural approaches for importing Excel data—synchronous, thread‑pooled with MQ, fully asynchronous with Redis locks, and an ideal high‑throughput variant—detailing their trade‑offs, performance impacts, and suitable business scenarios in modern backend systems.
Asynchronous ProcessingRedis Lockbackend architecture
0 likes · 10 min read

This article explains the concepts, designs, and practical implementations of distributed locks using databases, Redis, and Zookeeper, compares their advantages and drawbacks, and provides code examples and best‑practice recommendations for reliable concurrency control in distributed systems.
Distributed LockRedis LockZooKeeper
0 likes · 18 min read

This article explains the necessity of distributed locks in multi‑node applications, outlines the essential properties a distributed lock must satisfy, and compares three common implementation methods—database‑based exclusive locks, Redis‑based locks, and Zookeeper‑based locks—highlighting their advantages, drawbacks, and usage patterns.
BackendDistributed LockRedis Lock
0 likes · 15 min read

Alibaba migrated Xianyu Coin’s points from the legacy KingTower platform to the new Banliang service using a four‑phase, service‑based approach—preparation, active/passive data migration with distributed locks, dual‑write for consistency, reconciliation, and a gradual service switch—completing the transition in a month without user impact.
Backend EngineeringRedis LockService Integration
0 likes · 11 min read

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