Make Your Python Web App Fly Around the World with CDNs
summary
Shows a step‑by‑step build: a Flask app tunneled with ngrok, static assets moved to Bunny CND pull zones with Origin Shield, and browser hints like preconnect added. Implements md5-based cache‑busting so updated images change URL, flips on “vary by query string,” and measures with Lighthouse and devtools. Result: static traffic offloads >75% of nginx CPU, 15 TB/month cost drops compared to S3, page requests fall from ~109 to cached CDN hits and median load times drop into the low hundreds of milliseconds.
AI-written summary · about
chapters (4)
- 0:00Start
- 0:43What is a CDN?
- 6:16Measuring the true speed of your app
- 8:10It's not just optimizing server-side Python code
related talks
39mHigh Performance Django: From Runserver to Reddit Hugs
39mA scalable blueprint for product customization with Python 3
17mBuilding a High Performance, Dynamic CDN with Next.js
21mHigh-Availability Django
45mCaching: A trip down the rabbit hole
40mLiving on the Edge
28mPython Apps in the Browser made simple by PyCafe
31mHey, Python-Web-Community! What's going on?
