~/talk

What is Async and When Should I Use It

Talkat Open Source Bridge 2013 · 2013-06-18..06-21· [javascript]
slides:none on file

Explains Async using Tornado and a working long‑polling chat demo that actually forwards messages and scales without one thread per connection, using a single event loop that registers fd callbacks and blocks only in poll. Shows why sleeping blocks the whole loop, why async cuts per‑connection memory so servers hold tens or hundreds of thousands of idle sockets, and how generator coroutines (gen + yield) restore stack‑like code flow so nonblocking IO feels like normal code.

AI-written summary · about

  1. 0:00Start
  2. 4:51Service-Oriented Architecture
  3. 5:02Web Sockets
  4. 6:35Ajax Request
  5. 28:19What Does Running the Callback Entail
  6. 40:32Generators
  7. 42:05Inline Callbacks
~/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.