Date: Sat, 16 Jan 2016 15:00:00 -0500
<p>Visit our <a href="http://pythonpodcast.com?utm_source=rss&utm_medium=rss">site</a> to listen to past episodes, support the show, join our <a href="https://discourse.pythonpodcast.com?utm_source=rss&utm_medium=rss">Discourse community</a>, and sign up for our mailing list.</p> <h3>Summary</h3> <p>If you are trying to build a web application in Python that can scale to a high number of concurrent users, or you want to leverage the power of websockets, then Tornado just may be the library you need. In this episode we interview Ben Darnell about his work as the maintainer of the Tornado project and how it can be used in a number of ways to power your next high traffic site.</p> <h3>Brief Introduction</h3> <ul> <li>Hello and welcome to Podcast.__init__, the podcast about Python and the people who make it great.</li> <li>Subscribe on <a href="https://itunes.apple.com/us/podcast/podcast.-init/id981834425?mt=2&uo=6&at=&ct=&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">iTunes</a>, <a href="http://www.stitcher.com/s?fid=64838&refid=stpr&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Stitcher</a>, <a href="http://tunein.com/embed/follow/p726240/#?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">TuneIn</a> or <a href="https://www.pythonpodcast.com/feed/mp3/?utm_source=rss&utm_medium=rss">RSS</a></li> <li>Follow us on <a href="https://twitter.com/Podcast__init__?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Twitter</a> or <a href="https://plus.google.com/+Podcastinit-the-python-podcast?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Google+</a></li> <li>Give us feedback! Leave a review on <a href="https://itunes.apple.com/us/podcast/podcast.-init/id981834425?mt=2&uo=6&at=&ct=&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">iTunes</a>, <a href="https://twitter.com/Podcast__init__?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Tweet</a> to us, send us an <a href="mailto:hosts@podcastinit.com">email</a> or leave us a message on <a href="https://plus.google.com/+Podcastinit-the-python-podcast?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Google+</a></li> <li>We are also running a listener survey to get feedback about the show. You can find it at <a href="http://bit.do/podcastinit-survey?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">bit.do/podcastinit-survey</a>.</li> <li>I would like to thank everyone who has donated to the show. Your contributions help us make the show sustainable. For details on how to support the show you can visit our site at <a href="http://pythonpodcast.com?utm_source=rss&utm_medium=rss">pythonpodcast.com</a></li> <li>Linode is sponsoring us this week. Check them out at <a href="http://linode.com/podcastinit?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">linode.com/podcastinit</a> and get a $20 credit to try out their fast and reliable Linux virtual servers for your next project</li> <li>I would also like to thank Hired, a job marketplace for developers and designers, for sponsoring this episode of Podcast.__init__. Use the link <a href="http://hired.com/podcastinit?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">hired.com/podcastinit</a> to double your signing bonus to $4,000.</li> <li>Your hosts as usual are Tobias Macey and Chris Patti</li> <li>We recently launched a new Discourse forum for the show which you can find at <a href="https://discourse.pythonpodcast.com?utm_source=rss&utm_medium=rss">discourse.pythonpodcast.com</a>. Join us to discuss the show, the episodes, and ideas for future interviews.</li> <li>Today we are interviewing Ben Darnell about his work on Tornado</li> </ul> <h3>Interview with Ben Darnell</h3> <ul> <li>Introductions</li> <li>How did you get introduced to Python? – Chris</li> <li>What is Tornado and what sets it apart from other HTTP servers? – Chris</li> <li>How did you get involved with Tornado? – Ben</li> <li>What was the inspiration for the name? – Tobias</li> <li>Tornado was created before the recent focus on asynchronous applications. What prompted that design choice and when might someone care about using async in their development? – Tobias</li> <li>What is involved in creating an event loop and what are some of the specific design decisions that you made when implementing one for Tornado? – Tobias</li> <li>How does Tornado’s event loop compare to other packages such as Twisted or the asyncio module in the standard library? – Tobias</li> <li>The web module appears to provide a minimal framework for developing web apps. How scalable are those capabilities and is there a recommended architecture for people using Tornado to develop web applications? – Tobias</li> <li>What are some use cases in which a developer might choose Tornado over other similar options? – Chris</li> <li>Could you please give our listeners an overview of Tornado’s concurrency options including coroutines? – Chris</li> <li>I see that Tornado supports interoperability with the WSGI protocol and one of the use cases mentioned is for running a Django application alongside a Tornado app. Is that a common way for providing websocket capabilities alongside an existing web app? – Tobias</li> <li>I noticed that Tornado provides non-blocking versions of bare sockets and TCP connections. Are there any add-on packages available to simplify the use of various network protocols along the lines of what Twisted includes? – Tobias</li> <li>Please tell us about the transition of Tornado to Python 3. What obstacles did you face and how did you overcome them? – Chris</li> <li>Based on your issue tracker it looks like http2 support is definitely on the roadmap. Could you please detail your future plans in this area? – Chris</li> <li>What are some of the common “gotcha’s” for people who are just starting to use Tornado? – Tobias</li> </ul> <h3>Picks</h3> <ul> <li>Tobias <ul> <li><a href="http://amzn.to/1O1Tq4F?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Adventures of Riley</a></li> <li><a href="http://amzn.to/1O1TuS5?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Dayworld Trilogy</a> by Philip José Farmer</li> </ul> </li> <li>Chris <ul> <li><a href="https://en.wikipedia.org/wiki/Sense8?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Sense8</a></li> <li><a href="http://amzn.to/1RWGobg?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Habits of a Happy Brain</a></li> <li><a href="https://www.ethereum.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Ethereum</a></li> </ul> </li> <li>Ben <ul> <li><a href="http://thememorypalace.us/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Memory Palace</a></li> <li><a href="https://newsblur.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Newsblur</a></li> </ul> </li> </ul> <h3>Keep In Touch</h3> <ul> <li><a href="https://groups.google.com/forum/#!forum/python-tornado?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Mailing List</a></li> </ul> <h3>Links</h3> <ul> <li><a href="https://motor.readthedocs.org/en/stable/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Motor</a></li> </ul> <p>The intro and outro music is from Requiem for a Fish <a href="http://freemusicarchive.org/music/The_Freak_Fandango_Orchestra/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Freak Fandango Orchestra</a> / <a href="http://creativecommons.org/licenses/by-sa/3.0/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">CC BY-SA</a><img alt="" height="0" src="https://analytics.boundlessnotions.com/piwik.php?idsite=1&rec=1&url=https%3A%2F%2Fwww.pythonpodcast.com%2Fepisode-40-ben-darnell-on-tornado%2F&action_name=Ben+Darnell+on+Tornado+-+Episode+40&urlref=https%3A%2F%2Fwww.pythonpodcast.com%2Ffeed%2F&utm_source=rss&utm_medium=rss" style="border: 0; width: 0; height: 0;" width="0" /></p>