Build log
Inventory without a hot row: reserving stock in parallel on MySQL
Stock control for limited campaigns on MySQL with no row that every checkout queues on: one row per unit, FOR UPDATE SKIP LOCKED, a ledger off the hot path, 20-minute reservations and the test battery behind it.
onDatabase Internals postsSystem Design postsGo posts
21 min read