Description
In this course, you will learn :
- Learn advanced techniques for asynchronous programming and data streaming in Node.js, including how to manage processes and enforce sequential, parallel, and concurrent execution using asynchronous patterns such as callbacks, promises, and async/await.
- Introduces the four types of streams—readable, writeable, duplex, and transform—and demonstrates how to minimise backpressure, or data transmission buildup.
- How to combine the techniques and create an HTTP server for web-based video streaming.
- Learn how to make the stream cross-browser compatible and how to collect multipart/form-data from the upload stream, such as text data and files.
Syllabus :
1. Asynchronous Patterns
- Callback pattern
- Resolving promises
- Rejecting promises
- The promisify function
- Sequential execution
- Sequential execution with async/await
- Parallel execution
- Concurrent tasks
- Logging concurrent tasks
2. Advanced Streams
- Why streams?
- Readable streams
- Using readable streams
- Writable streams
- Backpressure
- Piping streams
- Duplex streams
- Transform streams
3. HTTP Streaming
- Streaming to the browser
- Handling range requests
- Forking and uploading streams
- Parsing multipart/form-data