Alexander Zybailo’s Post

Async/Await Made Us Lazy in Node.js Async/await made our code cleaner. But it also made performance issues easier to hide ⚠️ Today, everything looks synchronous — even when it’s not. And that leads to patterns like this: await getUser(); await getOrders(); await getRecommendations(); Readable? Yes. Efficient? Not really. That’s 3 sequential operations instead of running them in parallel 🚨 In production, this adds up fast: • slower response times • wasted resources • hidden bottlenecks The better approach: await Promise.all([ getUser(), getOrders(), getRecommendations() ]); Same logic. Different performance. Async/await is a great tool — but it can hide how your system really behaves. Clean code matters. But understanding execution matters more 👇 #nodejs #javascript #backend #backenddevelopment #softwareengineering #asyncawait #performance #scalability #systemdesign #programming #webdevelopment #coding #developers #tech #engineering #cleancode #architecture #concurrency #eventloop #api #microservices #devlife #techleadership #it #codequality

  • graphical user interface

I've also seen cases where Promise.all caused issues, like overwhelming downstream services or hitting rate limits. So parallelization isn't always the answer either.

Totally agree. async/await made people forget about Promise.all and concurrency.

I get your point, but I still think readability is more important in many cases. Especially for teams with mixed experience levels, promise.all can sometimes make things harder to follow 🤔

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories