Saturday 3:10 p.m.–3:50 p.m.

Practical Python Async for Dummies

Grant Paton-Simpson

Audience level:
Intermediate

Description

What's the point of faster computers if our code spends most of its time waiting for slower processes to complete. Shouldn't we be using asynchronous code to make lots of things happen simultaneously? Probably, but isn't that really tricky to do? The goal of this talk is to work through some very simple snippets of Python code that make common tasks much, much faster with minimal fuss.

Abstract

What's the point of faster computers if our code spends most of its time waiting for slower processes to complete. Shouldn't we be using asynchronous code to make lots of things happen simultaneously? Probably, but isn't that really tricky to do? While it's true that asynchronous code can be difficult to write correctly the latest versions of Python have made it very easy to implement for numerous use cases.

The goal of this talk is to work through some very simple snippets of Python code that make common tasks much, much faster with minimal fuss. The 80:20 rule applies - it is not necessary to understand everything about async to be able to do anything.

The following simple async patterns will be explained with working code examples: