More than just a pretty web framework, the Tornado IOLoop

E
Type:
Talk
Audience level:
Experienced
Category:
Useful libraries
March 11th 2:10 p.m. – 2:55 p.m.

Description

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)