
Two Users Bought the Last Item. Your Database Allowed It.
I raced 50 buyers for one item in Postgres and MySQL. The usual code sold it 48 times, and MySQL's default isolation level didn't stop it
Notes on backend engineering, distributed systems and open source.

I raced 50 buyers for one item in Postgres and MySQL. The usual code sold it 48 times, and MySQL's default isolation level didn't stop it
Why a simple Redis counter breaks across instances, and how one atomic Lua script, one clock and a circuit breaker fixed it

The story of a silent printing failure, a 2015 refactor, and a four-line fix
