Architect's Guide
Architect's Guide
Nov 12, 2025 · Backend Development

Four Practical Ways to Ensure Idempotency in High‑Traffic APIs

To prevent duplicate operations caused by network glitches, user errors, or retries, this article explains four common idempotency strategies—token, database unique index, distributed lock, and request payload hashing—providing clear concepts, key considerations, and ready‑to‑copy Java/Spring code examples.

Database Indexdistributed-lockidempotency
0 likes · 9 min read
Four Practical Ways to Ensure Idempotency in High‑Traffic APIs
Code Wrench
Code Wrench
Sep 5, 2025 · Backend Development

Mastering Distributed Locks in Go: Principles, Implementations, and Pitfalls

This article explains the fundamentals of distributed locks, compares Redis, etcd, ZooKeeper and database approaches, provides practical Go code examples, highlights common mistakes, and offers optimization tips so developers can confidently apply the right locking strategy in real-world systems.

GolangZooKeeperbackend
0 likes · 12 min read
Mastering Distributed Locks in Go: Principles, Implementations, and Pitfalls
Architect's Must-Have
Architect's Must-Have
Jun 6, 2025 · Backend Development

Why Simple synchronized Locks Fail in Distributed Systems and How Redisson Fixes Them

This article examines common pitfalls of using single‑machine synchronization and basic SETNX locks for high‑concurrency stock‑deduction scenarios, demonstrates step‑by‑step improvements—including lock expiration and Redisson’s Lua‑based implementation—and discusses trade‑offs between Redis and Zookeeper for distributed locking.

Redisdistributed-lockredisson
0 likes · 16 min read
Why Simple synchronized Locks Fail in Distributed Systems and How Redisson Fixes Them
Su San Talks Tech
Su San Talks Tech
May 20, 2025 · Backend Development

10 Cache Governance Rules Every Backend Engineer Should Follow

This article shares ten practical cache governance rules—from avoiding large keys and setting proper TTLs to using distributed locks and final consistency strategies—illustrated with real‑world Java examples, code snippets, and diagrams to help backend developers design reliable, high‑performance caching solutions.

RedisTTLbackend
0 likes · 12 min read
10 Cache Governance Rules Every Backend Engineer Should Follow
Su San Talks Tech
Su San Talks Tech
Apr 16, 2025 · Backend Development

How to Prevent Product Overselling in High‑Traffic E‑Commerce Systems

This article explains why inventory overselling occurs during massive sales events, analyzes the root causes such as non‑atomic database operations, and presents practical solutions—including optimistic locking, Redis atomic scripts, distributed locks, message‑queue peak shaving, and pre‑deduct strategies—while highlighting common pitfalls and best‑practice combinations for robust e‑commerce back‑ends.

Redisdistributed-lockecommerce
0 likes · 9 min read
How to Prevent Product Overselling in High‑Traffic E‑Commerce Systems
Code Ape Tech Column
Code Ape Tech Column
Aug 29, 2024 · Backend Development

Implementing Interface Debounce with Redis and Redisson in Java Backend

This article explains how to prevent duplicate submissions in Java backend APIs by applying debounce techniques using shared Redis caches or Redisson distributed locks, detailing the design of a @RequestLock annotation, key generation, aspect implementation, and practical testing results.

DebounceRequest Lockdistributed-lock
0 likes · 15 min read
Implementing Interface Debounce with Redis and Redisson in Java Backend
Architecture Digest
Architecture Digest
Jul 16, 2024 · Backend Development

Understanding SpringBoot @EnableScheduling Issues and Solutions with Thread Pools and Distributed Locks

This article explains how SpringBoot's default @EnableScheduling and @Scheduled annotations can cause execution delays and single‑threaded bottlenecks, demonstrates the root causes in the auto‑configured ThreadPoolTaskScheduler, and provides four practical solutions—including custom thread‑pool configuration, async execution, and Redisson‑based distributed locking—to achieve reliable, concurrent scheduled tasks in both monolithic and distributed environments.

AsyncThread Pooldistributed-lock
0 likes · 15 min read
Understanding SpringBoot @EnableScheduling Issues and Solutions with Thread Pools and Distributed Locks
IT Services Circle
IT Services Circle
Jun 29, 2023 · Backend Development

Tencent Testing Engineer Interview Experience and Technical Q&A

This article shares a detailed account of a Tencent testing engineer interview, covering self‑introduction, Go knowledge, Redis performance, distributed lock implementation, semaphore mechanics, RPC vs HTTP, concurrency usage, Git security practices, Linux commands, and a few brain‑teaser and algorithm questions.

GoRPCRedis
0 likes · 13 min read
Tencent Testing Engineer Interview Experience and Technical Q&A
Sanyou's Java Diary
Sanyou's Java Diary
Feb 9, 2023 · Backend Development

Choosing the Right Task Scheduling Framework: Quartz, ElasticJob, XXL-JOB and More

This article compares popular Java task scheduling solutions—including Quartz, Spring Schedule with Redis locks, ElasticJob‑Lite, centralized MQ and XXL‑JOB approaches—explaining their core components, clustering strategies, code examples, and practical selection guidance for building reliable distributed schedulers.

QuartzXXL-Jobdistributed-lock
0 likes · 19 min read
Choosing the Right Task Scheduling Framework: Quartz, ElasticJob, XXL-JOB and More
Top Architect
Top Architect
Nov 13, 2022 · Backend Development

Cache Update Strategies and Concurrency Control in Backend Systems

The article analyzes the challenges of keeping cache and database consistent after write operations, evaluates four update‑order strategies, discusses their concurrency pitfalls, and presents practical solutions such as CAS, distributed locks, asynchronous updates, and delayed double‑delete techniques.

CASCacheConsistency
0 likes · 8 min read
Cache Update Strategies and Concurrency Control in Backend Systems
Top Architect
Top Architect
Aug 31, 2022 · Backend Development

Preventing Coupon Over‑Issuance: Concurrency Problems and Multi‑Layered Solutions

The article analyzes why a coupon‑distribution feature can over‑issue coupons under high concurrency, demonstrates the root cause with race conditions, and presents four practical solutions—including Java synchronized blocks, SQL row‑level checks, optimistic locking, and Redis‑based distributed locks using Redisson—to ensure safe coupon redemption.

Coupondistributed-lock
0 likes · 12 min read
Preventing Coupon Over‑Issuance: Concurrency Problems and Multi‑Layered Solutions
Top Architect
Top Architect
Jun 2, 2022 · Databases

Reasonable Strategies for Database and Cache Read/Write Consistency

The article discusses how to achieve reasonable read/write consistency between databases and caches by emphasizing cache expiration, eventual consistency, analyzing the Cache‑Aside pattern, evaluating four update‑order options, recommending the "update‑DB‑then‑delete‑cache" approach, and suggesting async deletion via message queues and distributed locks to handle concurrency and cache breakdown.

Consistencycache-asidedistributed-lock
0 likes · 19 min read
Reasonable Strategies for Database and Cache Read/Write Consistency
Architecture Digest
Architecture Digest
Jan 25, 2022 · Backend Development

Distributed Lock Implementation Approaches in Java: Database, Redis, and Zookeeper

This article explains the concept of distributed locks, compares three implementation methods—database unique indexes, Redis (using SETNX), and Zookeeper—provides detailed SQL table design and Java code examples for acquiring and releasing locks, and discusses reentrancy, lock release timing, and single‑point failure considerations.

JavaRedisZooKeeper
0 likes · 14 min read
Distributed Lock Implementation Approaches in Java: Database, Redis, and Zookeeper
macrozheng
macrozheng
Oct 18, 2021 · Backend Development

Avoid These 8 Common Pitfalls When Using Redis Distributed Locks

This article examines the most frequent problems encountered with Redis distributed locks—including non‑atomic operations, forgotten releases, accidental unlocking of others, massive request failures, re‑entrancy, lock contention, timeout handling, and master‑slave replication—while offering practical code examples and mitigation strategies.

Luadistributed-lock
0 likes · 22 min read
Avoid These 8 Common Pitfalls When Using Redis Distributed Locks
Code Ape Tech Column
Code Ape Tech Column
Sep 30, 2021 · Operations

Common Pitfalls and Best Practices of Redis Distributed Locks

This article examines the typical mistakes when using Redis distributed locks—such as non‑atomic operations, forgetting to release locks, releasing others' locks, lock starvation, re‑entrancy issues, lock granularity, timeout handling, and master‑slave replication problems—and provides practical solutions and code examples for each scenario.

Pitfallsdistributed-lockredisson
0 likes · 21 min read
Common Pitfalls and Best Practices of Redis Distributed Locks
MaGe Linux Operations
MaGe Linux Operations
Sep 17, 2021 · Backend Development

Mastering Redis: Caching, Distributed Locks, Counters, and More for Scalable Backend Systems

This article explores how to leverage Redis for a wide range of backend functionalities—including caching, distributed data sharing, locks, global IDs, counters, rate limiting, bitmap statistics, shopping carts, timelines, message queues, lotteries, likes, product tagging, filtering, follow relationships, and leaderboards—providing practical code examples and usage patterns.

BitmapCounterbackend-development
0 likes · 8 min read
Mastering Redis: Caching, Distributed Locks, Counters, and More for Scalable Backend Systems
Selected Java Interview Questions
Selected Java Interview Questions
Aug 26, 2021 · Databases

Redis Interview Topics: Persistence, Caching Issues, Data Types, Cluster Architecture, and More

This article provides a comprehensive overview of Redis interview questions, covering persistence mechanisms, cache avalanche and penetration, hot vs. cold data, differences from Memcached, single‑threaded performance, data structures, internal architecture, expiration policies, clustering options, distributed locks, and transaction handling.

ClusterPersistencecaching
0 likes · 24 min read
Redis Interview Topics: Persistence, Caching Issues, Data Types, Cluster Architecture, and More