Tagged full-stack
4 pieces
- · 9 min read
Every Third-Party API Fails Differently, So Put One Adapter Between Each One and Your Product
Integrating providers inline means every provider's schema, auth, rate limits and failure modes spread through your application, and one provider's outage empties the page instead of thinning it. One adapter per provider behind a single internal shape contains the variation where it starts. On a flight-search product this took API success from 90.6 to 98.95 percent and empty results caused by provider failure from 6.8 to 0.9 percent.
- · 8 min read
Slow at Scale, Worse When Scaled: It Is Usually a Query-Count Problem
When a product is slow under load and adding servers makes the economics worse without fixing the latency, the bottleneck is the work inside one request rather than the capacity to run many. Profile a single request before provisioning anything. On a flight-search product this took the median from 12.8 to 2.8 seconds and database queries per search from 149 to 38, on the same hardware, at roughly a third of the infrastructure cost per search.
- · 8 min read
The Cheapest Option That Does Not Work: Gate on the Physical Constraint Before You Rank on Price
When a cheap option carries a risk the user cannot see, ranking it first and warning in the fine print puts the trap exactly where trust is highest. Treat every option as a candidate until it proves executable, gate on the physical constraint, and reject silently. On a self-transfer flight product this caught 76 percent of the combinations that could not actually be made, took false-viable connections from 12.4 to 1.9 percent, and raised the share of searches returning the cheapest valid result from 81 to 95.8 percent.
- · 9 min read
When You Automate the Gatekeeper Away, Every Check They Made By Eye Becomes a Rule You Have to Enforce
A platform that lets a counterparty accept a binding quote without a human looking at it has not removed the gate, it has moved it into code. Every check the trader used to perform by judgement now has to exist as an enforced rule, the binding action has to be idempotent, and the number the engine computes has to equal the number the human would have produced, to the cent. The rounding trap that makes a parity test agree with itself is the one that costs money.