~/talk

Taking Node.js to The Ex-Stream: Stream to Scale

Talkat Node.js Global Summit 2020 · on Saturday, 2020-05-30· [nodejs, data-engineering]
slides:none on file

A production microservice moves from fetching entire JSON results into memory to a streaming pipeline that reads from Presto (self-managed to avoid athena’s 5-concurrent-query limit), transforms JSON-to-CSV with node.js Streams, and writes to s3 while keeping memory near 21 MB versus 2.6 GB for the in-memory approach. Code uses stream pipeline + util.promisify for reliable error handling and demonstrates generator/async-iterator integration to scale to gigabytes or terabytes.

AI-written summary · about

  1. 0:00Start
  2. 3:29Don't be afraid of Streams
  3. 4:47LOVE Streams
  4. 8:32In memory solution
  5. 12:24What are Streams?
  6. 17:58Readable Stream Example
  7. 19:05Transform Stream Example
  8. 20:15Streams Tips
  9. 23:14Back pressure
  10. 24:20ObjectMode option
  11. 25:18highWaterMark option
  12. 28:04Async Generator Function Creates Async Iterable Object Async Generator
  13. 29:13Async Generator and Async Iterator
  14. 29:29Pipeline API Supports Generators
  15. 30:39Summary • Take Node to the ex-Stream!
~/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.