Friday 29 April 2016

Do I even need async?

I've been constructing an app in Node, which I am very new to. I need to iterate over a loop of templates, query a database of potential recipients, then send to each one. The functionality is completely solid, but I've been trying to asyncronize my functions via async and Promises for clean console logging, so I see things happen in order, and can quickly debug.Another strategy I've seen for this that may apply is simply using timed functions. I'm not sure if this is a good practice or not.I guess my question is am I on the right track with this async thing, or should I look for another route to tracking what's going on behind the scenes?

Submitted April 30, 2016 at 06:25AM by hypecraft

No comments:

Post a Comment