~/talk

Better asynchronous code with Tornado and Python 3

Talkat EuroPython 2015 · 2015-07-20..07-26· [python, web-platform]
slides:none on file

Tornado runs on the asyncio event loop and uses Python 3’s subgenerator delegation to turn blocking calls into futures so sequential code stays readable. The demo builds an HTTP proxy using Tornado’s async HTTP client and yield from to fetch three backends in parallel, measuring ~22 ms versus 54 ms for blocking, with Node.js at ~18 ms and Scala comparable; a concurrency sweep to 20 requests exposes scaling patterns. The code is production-proven at Scooby and the proxy demo works.

AI-written summary · about

  1. 0:00Start
  2. 2:23Challenges
  3. 3:29Overview
  4. 4:37Recap of the Web Server Execution Models
  5. 10:25Callbacks
  6. 13:12The Future Object
  7. 16:04Event Loop
  8. 22:02Why Do You Need a Future Object
  9. 22:37Why Do We Need the Future
  10. 27:11Async Http Client
  11. 28:17Nodejs
  12. 31:24Scala
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.