Node.js Async

In my previous post I discussed how asynchronous (with callbacks) nature of Node.js is useful to develop non-blocking server side implementations. Let's now see how async functions are developed with an example. Async functions are typically developed with a single callback with result arguments and an optional error. Here's an example code: https://gist.github.com/4553831 Now if … Continue reading Node.js Async

Understanding node.js

Essentially Node has an approach of making I/O operations non-blocking. All the I/O operations run independently and generate an event when they are done. ┬áNode follows an execution model of having an event loop (a concept existing in JavaScript) that handles events that are generated by I/O operations ( like database, HTTP requests, file I/O … Continue reading Understanding node.js