Deploying Tornado to AWS Elastic Beanstalk

315 views
Skip to first unread message

Luke Eager Leavitt

unread,
Sep 7, 2016, 4:02:50 PM9/7/16
to Tornado Web Server
Hello, 

I am wondering if there is a recommended way for deploying a tornado application to AWS elastic beanstalk. I typically have deployed my Django web apps there but for a new project I am starting I am looking at using tornado to take advantage of its asynchronous web sockets. Is there a typical way these applications can be deployed to elastic beanstalk? I have checked everywhere on google and there is surprisingly little discussion about things like this in comparison to other python frameworks like django and flask.

Any help would be appreciated. Thanks.

Ankur Mishra

unread,
Sep 27, 2017, 5:52:18 AM9/27/17
to Tornado Web Server
Hey, did you get a solution to this? I am also trying to deploy tornado application using AWS elastic beanstalk and couldn't find much? 

Lucas Eager Leavitt

unread,
Sep 27, 2017, 11:06:30 AM9/27/17
to python-...@googlegroups.com
Turns out the reason this is such an issue is because the default Apache web server Elastic Beanstalk provides for python applications isn’t an asynchronous web server which is required for tornado. Good news is tornado is it’s own asynchronous web server in addition to web framework. So the issue is with running the tornado web server instead of the Apache one. The easiest way I found to do this is to take advantage of the Elastic Beanstalk docker environment instead. If you dockerize your tornado application you can specify how to run it in your RUN command and instruct it to start up your tornado app through tornado’s own mechanisms. Elastic Beanstalk will just handle running the docker container. 
--
You received this message because you are subscribed to a topic in the Google Groups "Tornado Web Server" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-tornado/szucsf6fLKk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python-tornad...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages