Learn a powerful way to handle a lot of data in Node.js. ⏰ Timestamps 00:00 - Project setup and dependencies 01:33 - Creating a file to copy 01:56 - Copying a file synchronously 03:29 - Copying a file asynchronously 04:45 - Copying a file with streams 06:44 - Generating a large CSV without streams 09:44 - Generating a large CSV with streams 10:34 - The problem of backpressure 11:37 - Handling backpressure while generating a large CSV 14:55 - Copying a file with streams and backpressure handling 17:31 - Outro 📜 Description To illustrate the power of streams, this video compares several ways to copy a file using Node.js: • synchronous, • asynchronous, and finally • via streams. We’ll also explore using streams to generate a large file without a large memory footprint, including how to mitigate a common gotcha that could completely undermine our memory gains — backpressure! #nodejs #streaming #server #backend #webdevelopment 📝 Article For a written version of this tutorial, check out my article on Medium: https://levelup.gitconnected.com/an-introduction-to-streams-in-node-js-e021650f0440 🔗 Links • Node.js: https://nodejs.org/en • TypeScript: https://www.typescriptlang.org/
Learn a powerful way to handle a lot of data in Node.js. ⏰ Timestamps 00:00 - Project setup and dependencies 01:33 - Creating a file to copy 01:56 - Copying a file synchronously 03:29 - Copying a file asynchronously 04:45 - Copying a file with streams 06:44 - Generating a large CSV without streams 09:44 - Generating a large CSV with streams 10:34 - The problem of backpressure 11:37 - Handling backpressure while generating a large CSV 14:55 - Copying a file with streams and backpressure handling 17:31 - Outro 📜 Description To illustrate the power of streams, this video compares several ways to copy a file using Node.js: • synchronous, • asynchronous, and finally • via streams. We’ll also explore using streams to generate a large file without a large memory footprint, including how to mitigate a common gotcha that could completely undermine our memory gains — backpressure! #nodejs #streaming #server #backend #webdevelopment 📝 Article For a written version of this tutorial, check out my article on Medium: https://levelup.gitconnected.com/an-introduction-to-streams-in-node-js-e021650f0440 🔗 Links • Node.js: https://nodejs.org/en • TypeScript: https://www.typescriptlang.org/