~/talk

Building Lightning-Fast Apps With asyncio

Talkat PyCon Israel 2022 · 2022-06-28..06-29· [python, concurrency]
links:none on file
slides:none on file

Replaces an eight-node legacy Java cluster with one asyncio-powered instance that matches and often exceeds prior throughput, handling around 150 million events daily with a <300 ms latency SLO by running multiple per-core event loops reading from a distributed queue and sending downstream via nonblocking I/O. Uses Python asyncio (async/await), distributed queue consumer integration, and active‑active redundancy; result is order-of-magnitude faster for network‑bound workloads while falling back to threads/processes for CPU‑bound or non‑async libraries.

AI-written summary · about

  1. 0:00Introduction
  2. 1:12The production problem
  3. 2:55Design requirements
  4. 5:25Async IO concept
  5. 7:32Event loop explained
  6. 9:18Code walkthrough
  7. 11:25New service design
  8. 13:10When to use async IO
  9. 15:58Key takeaways
  10. 16:40Q&A
~/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.