Skip to Content
Beginning Node.js
book

Beginning Node.js

by Basarat Ali Syed
December 2014
Beginner content levelBeginner
308 pages
7h 10m
English
Apress
Content preview from Beginning Node.js

CHAPTER 5

image

Events and Streams

Before we examine specific areas of Node.js development, we need to address a few more core concepts about JavaScript in general and Node.js in particular. Node.js is focused on being the best-performing, simplest way to create server applications. Events and streams play an important role in achieving this goal.

Node.js is single-threaded; we have already discussed advantages of this fact. Due to this evented nature of Node.js, it has first-class support for an event subscription/unsubscription pattern. This pattern is very similar to the way you would handle events using JavaScript in the browser.

Streaming data ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Node.js in Action, Second Edition

Node.js in Action, Second Edition

Bradley Meck, Nathan Rajlich, TJ Holowaychuk, Mike Cantelon, Tim Oxley, Alex Young
Node.js for Beginners

Node.js for Beginners

Ulises Gascón
Node.js in Action

Node.js in Action

TJ Holowaychuk, Nathan Rajlich, Mike Cantelon, Marc Harter

Publisher Resources

ISBN: 9781484201879Purchase book