Upgrade Rollout and the One-Way Doors
A traffic share can be pulled back; a written row cannot. The one-way doors in a rollout, and the proof to ask for before crossing each.
Engineering
Short technical notes and patterns straight from production.
A traffic share can be pulled back; a written row cannot. The one-way doors in a rollout, and the proof to ask for before crossing each.
The target version is chosen, but nobody has said go. Four proofs to ask for before starting: tests, rollback, blocking dependencies and deprecations.
How far does .env take you, and when do you need a centralized configuration system? Secret management and consistency across environments
The newest PHP version doesn't set the target. Compare the candidate's security end with your next upgrade window, then with the chain's slowest link.
How global state creates an invisible dependency, leaks between tests and grows riskier in queue workers and Octane, and how to make state visible and local
An EOL date gives the upgrade ceiling, not the order. A 3×3 matrix crosses system criticality with trigger type and gives each cell a response window.
The PHP version is only one layer; extensions, framework, packages, base image and CI runner each constrain the one above. How to map the chain.
A Dependabot PR, an EOL notice and a CVE bulletin share one queue but not one urgency. Sort signals into three types and give each a response time.
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
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
Connecting a critical system to external APIs: using timeouts, retries, and circuit breakers to stop one service's collapse from taking the whole system down.
Before you move to FaaS: the real cost of cold-start latency, vendor lock-in risk, and the workloads where serverless actually pays off
Separate API layers for mobile and web: the hidden cost of bending one API to fit every client, and when a BFF is actually warranted
Should a job run inside the HTTP request or go to a queue? The decision line, drawn through response time and fault tolerance
The price of loose coupling through events: balancing the flexibility it buys against the risk of making your system's flow impossible to trace