Tagged articles
2 articles
Page 1 of 1
Java Backend Technology
Java Backend Technology
Jul 31, 2020 · Backend Development

Why Redis Distributed Locks Can Fail: Real-World Over‑Sale Case & Fixes

This article analyzes a real over‑selling 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, atomic stock updates, and architectural improvements to prevent future failures.

Javadistributed-lockhigh concurrency
0 likes · 11 min read
Why Redis Distributed Locks Can Fail: Real-World Over‑Sale Case & Fixes