Living on the Edge
summary
Shows converting a Next.js homepage from SSR to a static CDN page with Next.js middleware to edge that uses request.next, response.replaceText and setPageProp — about ten lines of code and cacheable, giving big latency wins. Explains databases at the edge: Planetscale handled a million open connections via CDN-like routing; Cloudflare Hyperdrive keeps warm DB connections and caches reads. Notes 150 ms per ocean hop, AWS Snowball for remote edge compute, and limits: lower CPU, smaller caches, higher cost.
AI-written summary · about
chapters (9)
- 0:00Intro
- 0:50What is "the edge"?
- 6:50Ada's pet supplies
- 14:14Planetscale
- 15:05Cloudflare
- 21:38AWS Snowball
- 27:16Limitations
- 29:07Lever-edge-ing the edge
- 31:18Outro








