Beyond Mutex: Distributed Locking and Coordination in Microservices

Introduction: The Double-Spending Problem When you develop E-commerce platforms, you may commonly face a coordination problem: refunds, for example, can be triggered simultaneously by customers, sellers, or automated fraud detection systems. Without proper distributed coordination, the same order gets refunded multiple times. ...

January 4, 2026

Why My Second GPU Is Lazy: Understanding x86 I/O Bottlenecks

Why My Second GPU Is Lazy: The Hidden Bottleneck of x86 I/O Introduction How does a CPU communicate with an NVMe drive, a network card, or a GPU? Most software engineers rely on drivers and kernel modules without thinking about the underlying mechanisms. But when you’re debugging performance issues, tuning interrupt handling, or trying to understand why perf shows certain bottlenecks, you need to know what’s happening at the hardware level. ...

January 2, 2026

Why My PostgreSQL Slow Right After Insert

The Customer Claim That Exposed PostgreSQL’s Statistics Blind Spot It started with a client claim: a critical part of their workflow was unresponsive. Upon investigation, we found the bottleneck was an innocent-looking query that was now consistently timing out. To understand why, we had to descend into the internals of the PostgreSQL query planner. There, we discovered a rare bug in statistics estimation triggered by a unique data distribution pattern that had remained hidden until now. ...

December 20, 2025