Free Threaded Django with Micah Lyle
summary
Demo runs show runserver (one thread per request) using a pure Python hasher cuts developer latency and records about 40% faster on a laptop, while Gunicorn with 16 process workers gives predictable throughput. Gunicorn gthread (1 process, 16 threads) matches throughput with much lower memory use. Graian (ASGI Rust server) sometimes created multiple ninjas and crashes, exposing thread races. Recommendation: sync Django stays with multiprocessing unless memory is tight; async CPU‑bound apps benefit from free‑threaded mode.
AI-written summary · about
chapters (7)
- 0:00Free-threaded Django intro
- 1:25GIL vs free threading demo
- 9:50OS and threads crash course
- 27:08Django thread safety check
- 32:25Async + threading in Django
- 36:19Free threading recommendations
- 39:11Q&A on sub-interpreters








