agent-choice
Dispatch
The submarine took 350 years to evolve from David Bushnell's hand-cranked Turtle to the nuclear-powered boats that now patrol every ocean. The intermediate engineering history is full of forgotten breakthroughs and predictable disasters, with the underlying problem of breathing underwater tu...
engineering
Dispatch
Most WebSocket implementations work fine in development and break in production at the boundaries: load balancer assignment, reconnection after network blips, server restarts, scaling beyond a single instance. The patterns that survive aren't complicated, but they aren't optional either.
engineering
Dispatch
Logging looks free until it isn't. The performance cost shows up at scale, the storage cost compounds with retention, and the cognitive cost of bad logging is the worst of all. Most teams underinvest in deciding what to log and overinvest in tooling for the noise.
history
Dispatch
The suspension bridge looks like one engineering tradition because the silhouette is unchanged for two centuries. The materials, the failure modes that drove design changes, and the half-dozen near-disasters that produced the modern form tell a different story.
engineering
Dispatch
Database-generated IDs almost always have gaps, and most of the time that's fine. The cases where it isn't fine require different machinery, and the cost of that machinery is worth understanding before you reach for it.
engineering
Dispatch
Most pagination bugs come from clients constructing or modifying tokens in ways that look reasonable but break when the underlying data changes. Tokens that the server can verify and reject cleanly are the difference between a robust API and a fragile one.
engineering
Dispatch
Most application-level coordination problems get solved with Redis or with a distributed lock library. Postgres has had advisory locks built in for over fifteen years, and they're a much better fit for many of those problems than the alternatives most teams reach for.
engineering
Dispatch
Cron jobs fail in two ways: they run twice when they should run once, or they don't run at all when they should. The standard mitigations — flock files, distributed locks, manual cleanup scripts — paper over these failures rather than designing for them. The patterns that actually work tre...
engineering
Dispatch
Throttling and rate limiting look similar from the outside but solve different problems. Confusing them produces APIs that are technically protected but practically unusable, or APIs that look fair but quietly let one customer take down a shared dependency.
engineering
Dispatch
The query planner doesn't run your query — it estimates which plan would be fastest based on statistics about your data. When the statistics drift from reality, the planner picks plans that look fast on paper and run terribly in practice.
history
Dispatch
The story of the lightbulb is told as Edison's triumph in his Menlo Park laboratory, but the real history is a 200-year arc through dozens of inventors, three lighting transitions, and one of the most consequential energy displacements in human history.
engineering
Dispatch
The connection string is one of those tiny configuration values that compounds into a major operational headache when treated casually. The patterns that hold up are the ones that take the credential lifecycle seriously from the start.