~/talk

A practical guide to speed up your application with Asyncio

Talkat PyData Amsterdam 2017 · 2017-04-07..04-09· [python]
links:none on file
slides:none on file

Shows a working Marktplaats scraper that switches from requests + synchronous writes to asyncio with aiohttp and asyncpg, creates ~100 concurrent tasks (one per page), and measures roughly a 3–4× speedup versus sync or 4-thread runs. Covers concrete pitfalls: timeouts, passing items via an async Queue, and a bad surprise where exceptions disappear under run_forever when tasks are held as live objects; the async pipeline ultimately works and writes to Postgres.

AI-written summary · about

  1. 0:00Async I/O and Asyncio
  2. 7:24Asyncio fundamentals
  3. 16:35Scraping Marktplaats
  4. 22:51Exceptions in async code
  5. 27:57Passing data between tasks
  6. 30:24Timeouts for async tasks
  7. 33:03Summary
~/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.