Skip to content
All tags

#performance

10 entries tagged #performance

  • One Regex Took Down Cloudflare for 27 Minutes

    Post · Oct 12, 2026

    On 2 July 2019 a single new firewall rule took Cloudflare, and a large part of the web with it, offline for 27 minutes. Not an attack, not a hardware failure. How does one rule do that to every server at once?

  • How Does Facebook's Distributed Like Counter Work?

    Post · Oct 01, 2026

    A celebrity posts and a million people tap the heart in ten minutes, and every one of them sees a count that seems to keep up. One row with a number in it can't take that. So what does?

  • Same Mistakes, New Framework

    Post · Aug 28, 2026

    A team rewriting its app in this month's framework to fix the speed, a search box whose effects set state that sets more state, and a marketing page that ships more JavaScript than a video game. None of them is fixed by switching tools.

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

    Post · Aug 11, 2026

    One product-page endpoint, the same code, ten times more traffic, then ten times more again. Each step breaks something different, and the last one breaks something extra capacity can't fix.

  • Typed Fetch Factory

    Snip · Apr 28, 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

    Cheat · Aug 16, 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

    Cheat · Jul 07, 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.

  • Making TrueLayer's Website Rank and Convert

    Case study · Mar 01, 2022

    Lighthouse hit 95 while real visitors still waited four seconds for the page. What actually fixed it, and roughly quadrupled organic traffic, was never in the lab score.