µDjango, an Asynchronous Microservices Technique with Practical Examples
summary
Shows how to run a single-file Django app (one small settings + app file, optional Docker) using Django’s new async syntax and ASGI server (uvicorn/uorn). Uses Locust with 10 users for 20s to measure throughput: a simple endpoint reaches 400–500 req/s for the micro‑Django setup; FastAPI hits ~1,200–1,400 req/s with multiple workers but micro‑Django scales to comparable numbers when adding workers. Includes a real async DB example and notes that generic class‑based views still need work with async.
AI-written summary · about
chapters (7)
- 0:00Introduction and motivation
- 4:28What is µDjango
- 8:54Live coding demo setup
- 13:17Running the µDjango app
- 15:07Performance comparison
- 20:41Real-world use cases
- 21:50Async limitations and conclusion
related talks
26mSync or async? Feel the magic of coroutines and the event loop in Django
26mCombining Django ORM & FastAPI in a Single App
32mAsynchronous Django: Unlocking the Power of Async Programming
26mUsing Django as a Micro-Framework: Hacking on the HTTP handlers..
18mFrom WSGI to ASGI - Django 3.0
29mSwiss Army Django: Small Footprint ETL
31mReinventing Django for the Real-Time Web
27mTaking Django Async
