alxolr's blog

the road to node.js mastery

Blog posts

Articles 6 / 17

How to fork a nodejs stream into many streams

How to fork a nodejs stream into many streams

In the following tutorial, we will process a relatively big CSV file using nodejs streams API and the fast-csv module. The goal is to create a CSV file containing the data for each country separately.

Broadcast same shell command in multiple terminals

Broadcast same shell command in multiple terminals

In this tutorial, we will create a simple node.js global package that will broadcast one command in a list of other specified terminals.

Understanding memory leaks in node.js part 2

Understanding memory leaks in node.js part 2

In the second part, we will focus on event emitters and cached objects. Also, we will do some analysis using node clinic tool and chrome dev-tools to identify a nasty memory leak.

Understanding memory leaks in node.js part 1

Understanding memory leaks in node.js part 1

In this article we will learn about memory leaks in node.js, we will focus mainly on streams and promises

How to separate mocha tests in multiple files

How to separate mocha tests in multiple files

Sometimes our unit tests grow extremely large, so it is indispensable to separate them in multiple files to be able to maintain them properly learn how to do this in the next tutorial.

How to test locally AWS SQS queues in node.js

How to test locally AWS SQS queues in node.js

Recently got a particular task to mock amazon environment locally. The problem is if you want to test your application you need to connect to Amazon SQS.

Articles 6 / 17