More than just a pretty web framework, the Tornado IOLoop

A session at PyCon US 2012

Sunday 11th March, 2012

1:55pm to 2:35pm (PST)

Tornado, often thought of as a web development framework and toolset is built on top of a protocol-agnostic IOLoop, presenting an alternative to Twisted as a foundation for asynchronous application development in Python. This talk covers the Tornado IOLoop, its features and the process of writing drivers and applications using it.

Abstract

Tornado, often thought of as a web development framework and toolset is built on top of a protocol-agnostic IOLoop, presenting an alternative to Twisted as a foundation for asynchronous application development in Python. This talk covers the Tornado IOLoop, its features and the process of writing drivers and applications using it.

Outline
(30 Minutes)

tornado.IOLoop and tornado.IOStream Introduction (5 Minutes)
Building an event driven server using IOStream (10 Minutes)
Options for Socket Reading
read_until_regex, read_until, ready_bytes, read_until close
Callbacks and handling events
Inspecting state
SSL streams
Diving Deeper, Using the IOLoop Directly (10 Minutes)
Registering events on the loop
When data is available
When we can write to the socket
When there are errors on the socket
Using timers, timeouts and callbacks
Inspecting the stack and debugging
Performance Considerations and Closing (5 Minutes)

About the speaker

This person is speaking at this event.
Gavin M. Roy

VP of Architecture @AWeber. Technology-minded geek who enjoys Python & Erlang, music and gaming. Author of RabbitMQ in Depth. bio from Twitter

Coverage of this session

Sign in to add slides, notes or videos to this session

Tell your friends!

When

Time 1:55pm2:35pm PST

Date Sun 11th March 2012

Short URL

lanyrd.com/spcky

Official session page

us.pycon.org/…e/presentation/328/

View the schedule

Share

Topics

See something wrong?

Report an issue with this session