Asynchronous Django: Unlocking the Power of Async Programming
summary
Django now supports asyncio via ASGI and the talk demonstrates concrete async code: async def views, replacing requests with httpx, and using a-prefixed ORM methods such as aget/afirst. A demo queries weather for multiple cities and shows the async endpoint roughly halves latency (≈800 ms sync vs ~400 ms async) under the demo conditions, while also noting limitations—transactions and much of the ORM remain synchronous and often need sync_to_async and extra threads, so async is not a drop-in speedup.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:04Synchronous problems
- 3:36Async solutions
- 6:04ASGI intro
- 8:55Async history
- 10:16ASGI implementation
- 13:08ORM async limits
- 17:24Async transactions
- 18:27Async views demo
- 23:54Resources & summary
- 24:39Q&A
related talks
26mSync or async? Feel the magic of coroutines and the event loop in Django
45mJust Add Await: Retrofitting Async Into Django
01h 10mJust Add Await: Retrofitting Async Into Django
21mIs Django async yet?
25mTaking Django's ORM Async
23mµDjango, an Asynchronous Microservices Technique with Practical Examples
27mTaking Django Async
40mTaking Django Async
