~/talk

The good, the bad and the ugly of nodejs streams

Talkat jsday 2024 · 2024-04-11..04-12· [nodejs]
slides:none on file

Explains when Node streams actually win: counting spaces in huge files by streaming chunks, copying files via createReadStream/createWriteStream and handling errors and backpressure, and inserting a gzip transform in middle to compress on the fly. Shows custom Readable/Writable/Transform classes and a duplex TCP toy BBS built with two pipelines that works. Compares Web Streams and async iterators and claims pipeline returns a promise and async iterators cost <2% overhead.

AI-written summary · about

  1. 0:00Node.js streams intro
  2. 1:32Why use streams
  3. 3:04Reading files with streams
  4. 6:02Copy files with streams
  5. 7:54Error handling in streams
  6. 9:40Simplify streams with pipeline
  7. 10:44Compress files with transform
  8. 11:47Understanding duplex streams
  9. 13:15Custom readable streams
  10. 14:22Custom writable streams
  11. 15:30Transform streams for data
  12. 16:15Web streams intro
  13. 17:43Creating readable web streams
  14. 18:45Consuming web streams
  15. 20:35Async iterators explained
  16. 22:02Async iterators with streams
  17. 23:55Summary
~/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.