Alberto Gimeno

  Ecosystem engineer at @github. Sometimes I write about JavaScript, Node.js and frontend development.

     



5 Stories by Alberto Gimeno

Divide and conquer: Scale your Node.js app using distributed queues

In a previous article, I talked about how to run background tasks/jobs in Node.js (with the new worker_threads module in particular). But what happens...
0 9 min read

Node.js multithreading: What are Worker Threads and why do they matter?

Since the release of Node.js v10.5.0 there’s a new worker_threads module available. What exactly is this new worker thread module and why do we...
0 10 min read

How to protect your Node.js applications from malicious dependencies

You have probably heard about a recent incident where a popular npm package, event-stream, included malicious code that could have affected thousands of apps...
0 4 min read

Testing with Jest: from zero to hero

I’ve been a regular user of Jest for quite some time. Originally, I used it like any other test runner but in some cases,...
0 6 min read

Promise chaining is dead. Long live async/await

​​While async functions have been around forever, they are often left untouched. Async/await is what some may consider an outcast. ​​Why? ​​​​A common misconception...
0 4 min read