Serverless Django
summary
Shows how to convert an existing Django app to run on Zappa using AWS Lambda and API Gateway, claiming millisecond ephemeral servers, dramatic cost drops (one example saves ~$1,000/year) and scaling to trillions of events per year. Demonstrates zappa init/deploy, event-driven hooks for S3 avatar processing, scheduled jobs, and zappa.async for long tasks, and covers RDS + VPC setup, DisallowedHost and static-file gotchas, NoDB alternative, Let’s Encrypt/ACM SSL and the S3 infinite-loop pitfall to watch for.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:21What serverless means
- 3:30Zappa with Lambda and API Gateway
- 5:40Advantages of serverless Django
- 8:29Installing and initializing Zappa
- 10:35Django gotcha: allowed hosts and static files
- 12:21Database challenges in serverless
- 14:52Setting up VPC for Django
- 17:40Database management with zappa-django-utils
- 19:11Free SSL with Zappa and ACM
- 19:56Event-driven architecture
- 24:42Async tasks with Zappa decorator
- 26:34Global serverless Django deployments
- 31:33Database routing for global apps
- 32:18Conclusion and contributing
related talks
24mServerless Django with Zappa
19mBuilding Serverless API Backends
01h 10mEffortless APIs with Flash and AWS Lambdas
30mLessons from building serverless services in bleeding edge python
22m20 Minutes of Hoeing and You Won't Think About It Anymore
29mGoing serverless with Django on AWS Lambda
46mServerless for Data Scientists
32mDjango on AWS for chump change
