Serving Files With Django - DjangoCon Europe 2021 Talk
,Update 2021-07-31 - the talk was uploaded to YouTube including the Q&A-session:
DjangoCon 2021 | Serving Files with Django | Jochen Wersdörfer
Usually it's recommended to use a dedicated webserver like nginx or a CDN to serve static / user uploaded files when using Django. But after it's now (august 2020) possible to use async / await syntax in Django views, I thought it might be time to revisit this recommendation. It now should be possible to write views that are not blocking a complete worker process for the entire response serving time.
The code for returning async file responses is available via this django_fileresponse package. The process of building this package was also documented on my twitch stream (youtube playlist).