Tagged articles

Segmented Lock

2 articles · Page 1 of 1
Ubiquitous Tech
Ubiquitous Tech
Jan 23, 2026 · Backend Development

Three Redis Inventory Decrement Lock Patterns Explained

The article analyzes three Redis inventory‑deduction locking strategies—exclusive lock, segmented lock, and lock‑free/key‑quantization—detailing their key structures, suitable scenarios, advantages, drawbacks, and also covers Lua‑script atomic decrement, async queue buffering, and local pre‑deduction techniques.

Exclusive LockInventoryLock-Free
0 likes · 8 min read
Three Redis Inventory Decrement Lock Patterns Explained
Lobster Programming
Lobster Programming
Jul 7, 2025 · Backend Development

Boost Order Processing Speed with Segmented Locks and Redis

This article explains how to use segmented (sharded) locks and Redis‑based routing strategies to parallelize inventory deduction and order creation, dramatically increasing orders processed per second while maintaining atomicity and fault tolerance.

RedisSegmented Lockconcurrency
0 likes · 7 min read
Boost Order Processing Speed with Segmented Locks and Redis