~/talk

Async Iterators: a new future for streams

Talkat NodeConf.EU 2019 · 2019-11-10..11-13· [nodejs, frontend-architecture]

Claims that async iterators can match or beat Node.js streams for throughput, with promise performance now good enough; demonstrates an uppercase transform and a CSV to JSON newline‑delimited pipeline built from async generator transforms and a small pipeline helper; measures bytes/sec and shows near‑identical or slightly higher throughput for iterators; surfaces real pitfalls that break correctness or perf—microtask starvation, for‑await consuming the whole source, and the need to throttle or use setImmediate for batching and HTTP/request iterators.

AI-written summary · about

  1. 0:00Intro
  2. 0:31The basics
  3. 1:41Custom async iterators
  4. 2:50Node.js streams
  5. 4:08Stream transforms
  6. 5:38Now something more complex
  7. 8:14async-iterator-pipe
  8. 9:22HTTP servers
  9. 10:07How does http-iterator work?
  10. 10:31Pagination
  11. 13:56Batching
  12. 15:41For-await fully consumes
  13. 15:52Microtasks are higher priority
  14. 18:26Remember dezalgo?
~/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.