The Cost of Deferring an Upgrade
A PHP 7.1 → 8.2 upgrade was put off because "it works." The bill came later: a dependency lock, batched breaking changes, and bugs spread over months.
Engineering
Production lessons, architecture decisions, database, server and application patterns, and AI-assisted engineering: notes, system write-ups, essays and developer tools that run in your browser. (Page 2/6)
A PHP 7.1 → 8.2 upgrade was put off because "it works." The bill came later: a dependency lock, batched breaking changes, and bugs spread over months.
Test coverage is not a target, it's a byproduct. The cost of tests written to push the number up that catch no bugs at all
The security, maintenance, and supply-chain cost of adding a dependency for a small function — and when writing it yourself is cheaper
Separating read and write models: the clarity CQRS buys in a complex domain, and the dead weight it adds to plain CRUD
Separating old records that bloat the live table: partitioning, cold storage, and keeping query access while you archive
Most big-data problems are really bad modeling or a missing index; before moving to a distributed system, ask whether the data is actually big
On a queue table, an index and an autovacuum threshold that grow with the table scale wrong; the measured case for sizing both to the pending jobs
A missing index slows the query; too many indexes make every write expensive. Striking the right balance by measurement, not by guesswork
Running migrations without causing downtime in production: backward-compatible steps, multi-phase column changes, and avoiding table locks
Before scaling up the database: moving read traffic to replicas, the traps replication lag creates, and when you actually need it
The questions to ask before adding a cache, why cache invalidation is hard, and the choice between TTL and consistency