~/talk

Understanding Streams, Signals and Events in Nodejs

Talkat NodeConf NL 2019 · on Friday, 2019-06-07· [nodejs, javascript, web-performance]
slides:none on file

Examines Node.js source (lib JS and src C++) and shows concrete behavior: creating write streams with fs.createWriteStream, using cork, write returning a boolean that signals backpressure and drain, and piping via pipeline which handles drains for you; shows SIGINT is catchable but SIGKILL is not, inspects process metadata and signals handling, runs file benchmarks writing 100,000 and 200,000 rows to demonstrate performance, and points out that console.log is itself a stream which can stall tight loops.

AI-written summary · about

  1. 0:00Introduction
  2. 3:11Streams signals and events matter
  3. 6:03Basic Node.js concepts
  4. 7:06What is a stream
  5. 8:10Pipelines and back pressure
  6. 10:19Processes threads memory
  7. 11:46Event-driven architecture
  8. 13:32Process and signals deep dive
  9. 16:53Node.js signals source code
  10. 18:19Streams most powerful concept
  11. 22:20File streaming demo
  12. 24:51Back pressure write streams
  13. 26:36Process next tick event loop
  14. 28:20HighWaterMark chunks
  15. 29:45Pipeline seamless data flow
  16. 31:09Console.log stream impact
  17. 32:15Live demo closing
~/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.