June 2014
Intermediate to advanced
696 pages
38h 52m
English
As you create Node.js applications and design code, you need to keep in mind the event model described in the previous section. To leverage the scalability and performance of the event model, make sure you break up work into chunks that can be performed as a series of callbacks.
When you have designed your code correctly, you can use the event model to schedule work on the event queue. In Node.js applications, you schedule work on the event queue by passing a callback function using one of these methods:
Make a call to one of the blocking I/O library calls, such as writing to a file or connecting to a database. ...
Read now
Unlock full access