Thursday, August 15, 2013

Async.js : A great Node.js utility module for working with asynchronous JavaScript



"Async is a utility module which provides straight-forward, powerful functions for working with asynchronous JavaScript. Although originally designed for use with node.js, it can also be used directly in the browser.
Async provides around 20 functions that include the usual 'functional' suspects (map, reduce, filter, each…) as well as some common patterns for asynchronous control flow (parallel, series, waterfall…). All these functions assume you follow the node.js convention of providing a single callback as the last argument of your async function."

That's straight from Async.js.

So when you face a difficulty with multiple asynchronous tasks and you would like to do them in an order or in parallel or some other constraint, you would definitely turn to async. I had to.

But the best resource for me was : Node.js async in practice: When to use what?

Explicit and having multiple scenarios, makes it more worth a reference.

That being said, Async.js is a cool library but there are certain things i would like to observe after working with async.
  • Asynchronous Communication
  • Asynchronous JavaScript
  • Patterns for Asynchronous Control Flow
  • Other libraries : Q and it's promises that other people are talking about.

No comments:

Post a Comment