Search code examples
node.jscallbackeventemitter

Nodejs Callback or eventEmitter


Which is the best practice to write nodejs code.

There are so many callback in my current code and reduced the readability.

Any suggestion?


Solution

  • Try to look at some flow control libraries and articles in answer to this question: Async programming paradigm with nodejs and redis-node.