Thursday, 27 April 2017

What modern Promise Library should I use for my NodeJS application?

I have been building a NodeJS application. TO handle Async, I have been using the ES6 Promises available as global.Promise.

However, after going through the various benchmarks on google, I have found out that ES6 Promises are slow, and memory intensive as compared to the other thrid party promise libraries available like bluebird and Q.

So I was wondering, which promise library would work best in a IO intensive REST API server, scaleable to the most degree, and offer the best performance with the same resources available. I would also prefer the library to have the same syntax as the ES6 Promise so that it is easier to grasp and convert my existing code if needed.

P.S. If anyone has a better suggestions on how to handle Async except Promises and callbacks, I will appreciate them too.



via Ayush Gupta

No comments:

Post a Comment