Commons Host: Building a CDN with Node.js for the REST of the World
summary
Commons Host is a 100% FOSS CDN built with Node.js that actually runs: about 20 global edge POPs in six months, tiny ARM/odroid boxes at ISP edges, and a CLI + deploy pipeline that caches static sites and saturates typical gigabit links. It implements HTTP/2 optimizations — Coalesced Connections, Server Push driven by manifests and cache digests, and Shared Sessions — and ships DNS-over-HTTP tooling (play-doh / donut) so the system reduces latency and avoids central exchange bottlenecks.
AI-written summary · about
chapters (10)
- 0:00Intro
- 0:19Experimenting with SPDY & HTTP/2
- 1:29Deploy a Static Site npx @commonshost/cli deploy
- 2:02HTTP/2 Server Push npx @commonshost/manifest generate
- 3:19No datacentres No internet exchanges
- 7:41What is peering? Networks talking directly to each other. Internet: Interconnected Networks
- 14:01JavaScript Node.js: fast low-level internals for HTTP/2, crypto, compression, 1/0.... NPM: Standing on the shoulders of giants.
- 18:06Growing the network Distributed ownership of physical infrastructure.
- 18:58Lower hardware cost Spare servers, Raspberry Pi, Docker/VMs, etc.
- 25:082nd Tier Doh-only edge servers No storage required. Run on Raspberry Pi?
related talks
42mFrom Localhost to Production
16mMulti-CDN Jumpstart
17mBuilding a High Performance, Dynamic CDN with Next.js
16mCDN Challenges of HTTP-based Low Latency Live Streaming Delivery
23mContent delivery sucks, and what you can do about it
32mPushing boundaries to the edge
23mRevamping How Node.js Binaries Are Served At Scale
10mAutomating content delivery in a DevOps world
