Blog: notes on backend, data and AI
Notes on backend engineering, data and building products with AI.
November 25, 2026 · 4 min read
Online schema changes without downtime
An ALTER on a big production table can block every query behind it. What MySQL 8 does instantly, why metadata locks cause outages, when to use gh-ost, and expand-contract releases.
mysqlmigrationsdevops
November 25, 2026 · 3 min read
Tables with hundreds of millions of rows: a staged plan
When a transactions table keeps growing and slowing, work from cheap to expensive: fix queries, archive old data, partition by time, offload reads, and shard only as a last resort.
mysqlpartitioningscalability
November 25, 2026 · 4 min read
Hot rows: when one balance becomes the bottleneck
A merchant wallet that receives hundreds of payments per second makes every transaction queue on the same row lock. Adding connections does not help. Splitting the row or batching the updates does.
mysqlperformancelocking
November 25, 2026 · 4 min read
Dual writes and the transactional outbox
Writing to a database and then publishing to a broker are two separate systems, so one can succeed while the other fails. The outbox pattern makes the event part of the same transaction.
distributed-systemskafkamysql
November 25, 2026 · 3 min read
Two-phase commit and XA: why it is hard to live with
Two-phase commit gives a real atomic commit across several databases, at the price of blocking, latency and a coordinator that must never be lost. Here is how it works and why microservices avoid it.
distributed-systemstransactionsmysql