Going serverless with Django on AWS Lambda
summary
A Django site runs on AWS Lambda + API Gateway by converting the API Gateway event into a WSGI environ and returning a WSGI response; deployment uses Python 3.6 runtime, a self-contained ZIP of requirements, and GitHub Actions to upload the Lambda. Static assets use django-storages to push to S3 with content-hashed filenames, and latency drops by embedding the manifest.json baked into package instead of fetching it at cold start. The demo serves NASA APOD and a Mars plot, uses no database, and is deployed and working.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 0:48What is serverless computing
- 3:58Differences in deployments
- 8:10Demo setup overview
- 11:11Creating a Lambda function
- 12:56Connecting to API Gateway
- 15:43Converting events to WSGI
- 19:42Deploying to Lambda
- 22:31Reducing latency in Django
- 26:05Role of API Gateways
- 27:30Q&A session
related talks
24mServerless Django with Zappa
54mServerless Python on AWS Lambda using the Serverless Framework
31mA quick intro to AWS Serverless
54mServerless Architectures: no servers allowed!
06mAWS Lambda + AWS Gateway + React = AWEsome
35mServerless Django
34mPython in Serverless Architectures
25mA Crash Course on Serverless Applications in Python
