Tagged articles

locking mechanism

4 articles · Page 1 of 1
samdeepthink
samdeepthink
Aug 25, 2026 · Backend Development

How RocketMQ Implements Ordered Consumption Locking

The article explains RocketMQ's two‑layer locking mechanism that guarantees ordered consumption by holding a queue‑level lock inside a while loop, clarifies why autoCommit only affects offset reporting, and shows how the client correctly processes multiple messages in a single thread.

MessageListenerOrderlyRocketMQautoCommit
0 likes · 11 min read
How RocketMQ Implements Ordered Consumption Locking
Sohu Tech Products
Sohu Tech Products
Jan 8, 2025 · Databases

Analysis of MySQL Deadlock Issues in Multi-threaded Scenarios

The article investigates a MySQL deadlock that arises when multiple threads concurrently execute INSERT … ON DUPLICATE KEY UPDATE for logistics cancellations, reproduces the issue on MySQL 5.7 and 8.0, analyzes InnoDB lock handling and internal mini‑transactions, and explains how batch processing of each value leads to the deadlock.

MySQLON DUPLICATE KEY UPDATESource Code Analysis
0 likes · 18 min read
Analysis of MySQL Deadlock Issues in Multi-threaded Scenarios
NetEase Yanxuan Technology Product Team
NetEase Yanxuan Technology Product Team
Mar 29, 2021 · Operations

How Yanxuan Designs a Multi‑Layer Inventory System for Seamless E‑Commerce

This article examines Yanxuan's inventory management challenges and presents a layered design—warehouse, physical, and sales layers—combined with a flexible lock‑stock pool to support multi‑channel, multi‑warehouse operations while addressing promotional and special‑use inventory requirements.

Supply Chaine-commerceinventory management
0 likes · 14 min read
How Yanxuan Designs a Multi‑Layer Inventory System for Seamless E‑Commerce