← All tags

#performance

4 entries tagged #performance

  • What Breaks From 1k to 1M Requests Per Second

    Post · Sep 17, 2026

    The same endpoint, run through four traffic tiers. At 1k req/s almost any design survives. At 10k the database and the single instance give first. At 100k the cache and the load balancer become the systems under test. At 1M the architecture itself has to change, because the failure mode is no longer capacity, it's correlated behavior across clients you don't control.

  • Typed Fetch Factory

    Snippet · Aug 25, 2026

    A reusable fetch factory that infers request/response types from an OpenAPI schema and adds in-memory caching, retry with backoff, and AbortController support, no per-endpoint boilerplate, no `any`.

  • Cut a Slow N+1 Query Down

    Cheatsheet · Sep 18, 2026

    An endpoint that queries once per parent row instead of once per request looks fine with ten rows and falls over with ten thousand. Batch the per-row lookups into one query and the round trips disappear.

  • Pick a Rendering Strategy for a Next.js Route

    Cheatsheet · Sep 1, 2026

    An App Router route is prerendered by default and silently turns dynamic the moment you read something request-specific. Knowing which bucket a route belongs in (and what forces it out) is the difference between an instant page and a server render on every hit.