Think 2021: The premier hybrid cloud and AI event, May 11-12 Register now

The Unsung Story of Events, Streams, and Promises

Once upon a time, Node.js shipped with Promises. Then, Promises were no more. Finally, Promises were back in JavaScript, and therefore in Node.js. However, much had changed in Node-land, and all Node APIs were either callbacks or based on the reliable EventEmitter.

Our hero story starts here: how could we navigate a world of EventEmitters with just Promises? Crashes and memory leaks were daily perils. But our hero was not alone — the Node.js team started working eagerly to add several tools they could wield to protect themselves from these perils!