engineering
Dispatch
The default pagination response in most API design guides includes a total count. This seems obviously useful and is almost always wrong: counting is expensive, the count is stale before the client sees it, and the UX it enables is one most products do not want. The patterns that survive at sca
engineering
Dispatch
Most teams have a staging environment that nobody trusts. The reasons are predictable: stale data, divergent configuration, and a workflow that treats staging as someone else's problem. The three-tier pattern of dev, preview, and staging, with explicit responsibilities for each, makes staging a
engineering
Dispatch
Error responses are the part of an API customers see when things go wrong, which means they bear disproportionate weight in determining whether customers trust the system. The patterns that survive contact with real integrations and the ones that produce angry support tickets.
engineering
Dispatch
Every public API eventually has to evolve in ways that break clients. The three common strategies — URL path, custom header, and date-based — each solve part of the problem and create different long-term costs. The honest comparison after running production APIs through multiple breaking changes.
history
Dispatch
Cement is the most-used manufactured material on Earth. Its history is a 2000-year arc of slow technical recovery, sudden 19th-century industrialization, and a 20th-century scaling that produced four billion tons annually. The story includes the disappearance of Roman technique, the obscur
engineering
Dispatch
Statement timeouts protect databases from runaway queries that turn slow into catastrophic. Most teams set them once, set them too high, and discover the consequences during an incident. The patterns that work, the misconfigurations that compound, and how to set timeouts that actually corr
engineering
Dispatch
Materialized views cache the result of a query on disk and let you query the cache instead of recomputing. They are one of the most underused database features in small-team SaaS. The patterns that work and the maintenance cost that determines whether they earn their place.
engineering
Dispatch
Webhook signature verification protects integrations from forgery, replay, and accidental misrouting. Almost every API gets the basic case right and the rotation story wrong, which is why secret rotation is the security improvement most teams quietly never make. The patterns that work in production.
engineering
Dispatch
Most timeout problems aren't about a missing timeout. They're about the wrong timeout configured at the wrong layer, or a default value inherited from a library that doesn't match the network reality. The four common timeout types behave differently and compound in ways that produce mysterio...
engineering
Dispatch
Auto-increment primary keys leak business information, expose enumeration attacks, and constrain migration paths. Replacing them at the API boundary with a separate public identifier is one of the schema decisions that pays off most over time. The patterns that work and the ones that don't.
engineering
Dispatch
Every backend developer learns to add indexes when queries are slow. Few learn the cost side: write amplification, plan regressions, redundant index churn, vacuum overhead, and the indexes that look useful but never get chosen. The full picture is more interesting than 'add an index'.
engineering
Dispatch
Idempotency keys let clients retry safely without producing duplicate side effects. The basic mechanism is straightforward, but the production patterns — handling in-flight duplicates, response caching, key scoping, expiry — have failure modes that aren't obvious until you've debugged them.