[Pycon] [new paper] "Stefan Behnel" - Get started with asyncio and Tornado web services
info a pycon.it
info a pycon.it
Ven 18 Gen 2019 10:44:43 CET
Title: Get started with asyncio and Tornado web services
Duration: 240 (includes Q&A)
Q&A Session: 0
Language: en
Type: Talk
Abstract: Async programming has been an important part of the Python web and server world for two decades.
Compared to multi-threaded approaches, async frameworks can provide a much better scalability and a safer programming paradigm.
With the introduction of asyncio in the standard library, and especially [PEP-492][1] and its new async/await syntax in Python 3.5, the whole area has therefore seen a major hype, with several tools and frameworks emerging around the asyncio ecosystem.
In this hands-on tutorial, you will learn how to make effective use of async programming, based on the standard [asyncio][2] framework and the fast async [Tornado][3] web framework, version 5.x.
We will be using the state of the art async coroutines of Python 3.6+.
We are proposing the following schedule, each step (after the intro) with exercises to get real experience with the frameworks.
- General intro to async programming, why, when and how (20 Min)
- Getting set up and running a simple asyncio server (20 Min)
- Implementing a simple web service with Tornado 5 (30 Min)
- Using async coroutines and generators for processing and preparing data (45 Min)
(break)
- Async access to databases from asyncio and Tornado (30 Min)
- Using thread-pools to integrate with blocking database backends and as key-value stores (30 Min)
- How to use Tornado's templating to generate web pages (30 Min)
- Further topics and Q&A (30 Min)
I will be giving this tutorial together with Diego Arroyo. We also submitted a talk on the same topic, please choose which format you prefer.
[1]: https://www.python.org/dev/peps/pep-0492/
[2]: https://docs.python.org/3/library/asyncio.html
[3]: http://www.tornadoweb.org/
Tags: [u'websockets', u'web', u'asyncio', u'tornado', u'async', u'webservices']
Maggiori informazioni sulla lista
Pycon