The Cost of Installing a Package for Everything
The security, maintenance, and supply-chain cost of adding a dependency for a small function — and when writing it yourself is cheaper
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/5)
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
The consistency and data-integrity crises that projects which moved to NoSQL for the comfort of going schemaless eventually hit
Before adding a separate search engine, queue, or document DB: how far PostgreSQL gets you on its own, and where its limit begins.