Skip to content

Comment on Handling 100 Requests per Second with Python and Django

Comments

I wonder how much Django's async views and ASGI support would affect the request rate.

I'm not an expert on async views at all but my hunch is it wouldn't do much. I do think async has some pretty interesting applications though on Read the Docs itself in our small proxy that serves docs which are just static files in s3. Currently it's a stripped down Django setup running in separate process from the main RTD app and it mostly sets headers picked up by nginx/sendfile.

Async views alone might not do much, but ASGI support should mean that request handling is async, which might impact the request rate. Django's core is synchronous[1], though, so who knows.

[1] https://arunrocks.com/a-guide-to-asgi-in-django-30-and-its-p...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.