~/talk

From Synchronous to Asynchronous Postgres with Tornado

Talkat PyOhio 2015 · 2015-08-01..08-02· [databases]
slides:none on file

Four implementations of the same tiny Tornado app—synchronous, momoko (Tornado) async, aiopg + asyncio, and gevent—are implemented and compared. The app is a one-table "game" insert/list using psycopg2 composites; models become coroutines for async cases and require connection pools and different cursor handling. asyncio uses yield from while momoko uses yield, transactions become harder under async pools, gevent keeps models synchronous inside greenlets. No throughput numbers or benchmarks are provided.

AI-written summary · about

  1. 0:00Introduction
  2. 1:42Talk overview
  3. 3:37ORM overview
  4. 6:49Synchronous implementation
  5. 12:50Using Momoko
  6. 20:11Using Aiopg
  7. 27:18Asynchronous challenges
  8. 30:51Using Gevent
  9. 38:02Summary and Q&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.