You Don't Know Node.js
summary
Dives into concrete Node.js mechanics with runnable examples: readFileSync vs readFile shows blocking behavior, streams process an 8MB infographic so streaming endpoint returns far faster, and buffers hit limits around gigabyte-sized files. Demonstrates process/global APIs, event emitters for composable callbacks, scaling with PM2 vertical scaling and cluster/master-worker, handling async errors with process uncaughtException and domain, and building C++ addons via node-gyp configure and build to expose native methods.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:19You Don't Know Node Quick Intro to 5 Core Features
- 2:14Starting with basics: Why Use Node?
- 2:30Input/output is one of the most expensive type tasks ( CPU)
- 3:00Node has non- blocking I/O
- 8:17Blocking systems have to be multi- threaded
- 15:28Who likes and understands callbacks?
- 19:42Streams Abstractions for continuous chunking of data
- 20:12Streams Inherit from Event Emitter
- 20:48Input typically comes from the keyboard used to start the process.
- 21:55Data written to standard output is visible on the command line.
- 22:58What data type to use for binary data?
- 24:46How to scale a single threaded system?
- 27:50How to handle async errors?
- 30:42C++ Addons
related talks
32mNODE.JS WORLD
25mA JavaScript Parody: A Fun Journey through Hot Topics of Node.js and JS
22mScaling Node.js and unblocking the Event Loop
39mYou Don’t Node.js
36mGetting Started with Node.js
41mDissecting NodeJS - How it works under the hood
34mUnderstanding Streams, Signals and Events in Nodejs
28mThe good, the bad and the ugly of nodejs streams
