I'm not saying async of ES7, but async functions in general like callback and promisses.
So, for all I studied about NodeJS and event loop. Everything leads me to believe that NodeJS has a false sense of async.
As far as I understand this only works well when the function has to be passed through an external medium. Example, execute a read file (which will be used by the OS API), or else a request that will use the external API as well.
I found few subjects talking about it, and I would like to discuss this with you here. My questions are: Am I right with that thought? And also if there are practical ways to find out where does async work and where does it not pay? On some occasions if I am correct async will only serve to spend more memory.
So, for all I studied about NodeJS and event loop. Everything leads me to believe that NodeJS has a false sense of async- you need to study again then - one uses async functions in nodejs when the function one uses is async ... you can't decide to write synchronous code using async functions - sure, many functions have both a sync and async version, but in the majority (more than 50%) of cases, the async version is preferred;-)after the "you need to study again" - was tongue in cheek comment, not meant to be harsh at all :p