-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add note about production deployment #234
Comments
You can use aiohttp in production. I have not finishing benchmarking but have semi-ready code in https://github.com/KeepSafe/aiohttp/blob/master/benchmark/async.py |
That's what I suspected. Maybe a rst "note" like this in the high-level web server docs: "Unlike the single-threaded HTTP servers common in Python before version 3.4, aiohttp's web server can be used in production deployments." Or perhaps more detailed advice is needed? I know that Flask and Django have (very) popular modules or configurations where the WSGI app is configured to serve static files as well (e.g., Flask's serve_static and djstatic). |
Hi @ariddell, For your information, we've 15+ aiohttp daemons on production, with a lot traffic, we have really better performances than before with Flask and Django. [ad] If you're interested in performance with aiohttp, I've made a small tool to build daemons with aiohttp, and distribute charge between several processes. Regards. |
Why not? Twisted and Tornado are very widespread. aiohttp just gives simpler API for end users. aiohttp.web has support for static files, but it will be ready for production usage only after implementing |
This is great! I'm only suggesting that some of this information be in the docs because users of Flask, Django, and Bottle (unlike users of Twisted and Tornado) will anticipate specific instructions on Deployment, as the default for those Frameworks is single-threaded. |
@ariddell as the issue initiator would you make a Pull Request with proposed documentation changes? You know the best what you do like to see at result. Ha, you are already done. Thanks. |
i added simple section how to start aiohttp.web app with gunicorn https://github.com/KeepSafe/aiohttp/blob/master/docs/gunicorn.rst |
Users of the aiohttp server coming from bottle or flask may be concerned about performance and deployment (both bottle and flask have sections called "Deployment" or similar). If aiohttp's web server is fine to use in production, perhaps a note could be added to state this?
I'd be willing to perform a simple benchmark (against, say, cherrypy) but I suspect this has already been done. Has it?
For reference, this is the deployment section for bottle: http://bottlepy.org/docs/dev/deployment.html
The text was updated successfully, but these errors were encountered: