Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I believe author misses one important point.

Async/await optimizes for throughput, not latency. Use case is many lightweight tasks you want to parallel as wholes. Web APIs, web sites are usual examples.

However, if you need other kind of optimizations, like two parallel saves within one request, maybe async/await is not what you need in the first place.



The performance characteristics of promises and async/await are identical, no?


Yes, however capabilities are not the same. Promises are lower level primitives.


they are. async functions sre just syntactic sugar for returning promises.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: