Book Image

Professional Node.js

By : Glenn Dayton
Book Image

Professional Node.js

By: Glenn Dayton

Overview of this book

Through Professional Node.js, you will be presented with various sets of patterns that you can use to efficiently solve your everyday development and design problems. You will understand what different traditional design patterns look like in Node.js, and how to design modules that focus on performing a single task at a time. You will gain an understanding of the basic building blocks and principles of writing large and well-organized Node.js applications. You will be able to apply these principles to problems that don't fall within the scope of existing patterns.
Table of Contents (8 chapters)
Chapter 5
Coding with Streams
Content Locked
Section 5
Asynchronous Control Flow with Streams
Going through the examples that we have presented so far, it should be clear that streams can be useful not only to handle I/O, but also as an elegant programming pattern that can be used to process any kind of data. But the advantages do not end at the simple appearance; streams can also be leveraged to turn the asynchronous control flow into flow control, as we will see in this video.