Tag

overselling

1 views collected around this technical thread.

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
Lobster Programming
Lobster Programming
May 18, 2024 · Backend Development

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

This article explains several common technical solutions—locking queues, update‑statement limits, optimistic locking, temporary tables, and Redis pre‑stocking—to prevent inventory overselling, comparing their suitability for different concurrency levels and recommending the best approach for high‑traffic scenarios.

ConcurrencyInventoryRedis
0 likes · 5 min read
How to Prevent Inventory Overselling in High‑Traffic E‑Commerce Systems
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.

ConcurrencyDistributed LockPHP
0 likes · 4 min read
Implementing Distributed Locks with Redis in PHP to Prevent Overselling
Top Architect
Top Architect
Apr 30, 2021 · Backend Development

Redis Distributed Lock Failure Causing Overselling and Safer Lock Solutions

This article analyzes a real‑world flash‑sale incident where a Redis distributed lock expired under high concurrency, leading to massive overselling, and presents safer lock implementations, atomic stock checks, and architectural improvements to prevent similar failures.

ConcurrencyDistributed LockJava
0 likes · 11 min read
Redis Distributed Lock Failure Causing Overselling and Safer Lock Solutions
macrozheng
macrozheng
Aug 7, 2020 · Backend Development

Why Redis Distributed Locks Still Let Flash Sales Oversell—and How to Fix It

This article analyzes a real‑world flash‑sale overselling incident caused by unsafe Redis distributed locks, explains the root causes such as lock expiration and non‑atomic stock checks, and presents safer lock implementations and atomic stock decrement strategies to prevent future overselling.

ConcurrencyDistributed LockJava
0 likes · 12 min read
Why Redis Distributed Locks Still Let Flash Sales Oversell—and How to Fix It
Java Captain
Java Captain
Aug 1, 2020 · Backend Development

Redis Distributed Lock Failure Analysis and Safer Lock Solutions for High‑Concurrency Seckill

This article analyzes a real‑world overselling incident caused by an unsafe Redis distributed lock in a high‑traffic flash‑sale service, explains the root causes, and presents safer lock implementations, atomic stock checks, and architectural improvements to prevent similar failures.

ConcurrencyDistributed LockJava
0 likes · 12 min read
Redis Distributed Lock Failure Analysis and Safer Lock Solutions for High‑Concurrency Seckill