A talk about using tasks in asyncio-based web apps
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
async_task_v1
async_task_v2
process_task
sync_task
websocket_task
.gitignore
LICENSE
README.md
coroutine_return_value.py
requirements.txt
simple_coroutine_function.py
talk.md
task_function.py

README.md

Using Tasks in Your Asyncio Web App

Introduction

In this talk, I cover how to implement different types of tasks in an asyncio-based web application, including how to start them, stop them, and send incremental data to a web frontend using websockets. I will also spend a little time reviewing asyncio concepts.

Slides

View the slides on SpeakerDeck

View the slides as a single web page (includes notes)

Running example programs

Install all dependencies:

mkvirtualenv -p python3 asyncio-talk
pip install -r requirements.txt
# Make sure you have Node installed, then run:
npm install -g stylus rapydscript-ng

Now cd into any of the example directories and run:

muffin app run

The app will be served at http://localhost:5000.

License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.