To the Moon Overcoming Latency for Fun and Adventure
summary
Surge is a static-hosting system built on Node.js that names files by their content hash and uses S3 for origin, Redis, an in-process LRU and browser service workers to stack caches for roughly 1,000× capacity gains per tier. Folding paper 42 times reaches the Moon—illustration of compound caching—and the server on the moon is a thought experiment: network latency is beatable by layering. The inflight pattern deduplicates concurrent misses so a single S3 fetch serves many requests, avoiding thundering-cache-fills.
AI-written summary · about
chapters (11)
- 0:00Start
- 0:03Microsoft Edge
- 0:26Static web publishing for Front-End Developers
- 2:10the power of compound interest is the most powerful force in the universe.
- 4:33COMPOUNDING is not INTUITIVE
- 12:18Network Disk Redis
- 12:50JSON.parse()
- 14:051000 Disk 1000 Redis 1000 Process
- 14:381 Billion
- 16:00yet another win... npm/inflight
- 20:20SERVICE WORKER
related talks
51mJAMstack: Silly name, serious stuff
40mLiving on the Edge
22mPushing To The Edge: Unlocking Gameplay Potential With The Cloud
47mCaching strategies on https://dev.to
22mFrom 3000ms to 300ms: Lessons learned from optimizing Tanstack ...
37mAre you being servered? — exploring a serverless web
46mNodeJS Scalibility Tips
32mAre You Being Servered? — Exploring A "Serverless" Web
