Node.js · Async Programming · Junior · Concept
Promise.all vs Promise.allSettled vs Promise.race — when?
Short Interview Answer
all fails fast; allSettled waits for all outcomes; race settles with the first.
Detailed Explanation
Use allSettled for fan-out where partial success matters. race for timeouts (careful with leaked work). all for required dependencies.