Thank you to Saúl Ibarra Corretgé, of the libuv core team, for reviewing this post.

As Node.js developers, we are extremely spoiled. The level of abstraction provided to us by JavaScript allows us to focus on creating interesting applications instead of wrestling with low level system concepts such as threads and synchronization. But, whether we like to think about it or not, our JavaScript code sits on top of a lot of low level code, mostly written in C/C++, as shown in the following figure. This article will trace a simple JavaScript function call as it traverses various layers of this figure. A basic understanding of the event loop is assumed. If you need an introduction or refresher, check out this guide.

Continue reading

Stability first

Guest post by Mathias Buus. Thank you Mathias!

I am an npm module author. I’ve written close to 500 modules. Just this past week I’ve published around 10 new ones. Modules I maintain have been downloaded more than 750 million times. Lots of my close friends are module authors as well.

You could say I’m invested in the Node.js ecosystem.

I’ve been using Node since version 0.4. Recently Node 7 was released. When reading the release notes two things caught my eye.

  • It introduced a new core url module – a module that could easily have been published to npm instead.
  • It deprecated the Buffer constructor when not using new. A change that deprecated >1000 npm modules and their dependents.

In addition there is now a PR open to deprecate the Buffer constructor entirely. A change that affects tens of thousands modules if not more.

All these changes made me realize how much the priorities of Node has changed in the past years.

Continue reading

The enterprise software industry has a problem. I’m going to point out the elephant in the room. In fact, I’m going to walk right over and give its trunk a good, hard tug.

Most enterprise software projects are still delivered late and over budget.

Let’s think for a moment about what the software that we build is supposed to do: deliver business logic. Yep, the grubby business of helping our clients to sell stuff and make money.

Not too elevated a goal, is it? Not exactly up there with the ceiling of the Sistine Chapel, or the software system that took the space shuttle into orbit.

Yet our behavior often suggests that we – the developers and architects of enterprise software – think of ourselves as creators of great art, or that we are writing the world’s most expensive code. We strive for perfection. We think big. We tend to rely on intuition (take as an example unit testing, which feels like a good idea).

Let’s bring ourselves down to earth. Our code has business problems to solve, users to serve, content to deliver. As our first step back on terra firma, let’s re-acquaint ourselves with our old friends, science and engineering, as embodied in components.

Continue reading

Guest post by Stefan Thies from Sematext. Thanks Stefan.

During the Node Interactive event in Amsterdam we had the pleasure of speaking with Matteo Collina from nearForm about the blazingly fast logger “Pino”. In this post we’ll share our insights into Pino and the additional steps required to have a reliable and fast log management solution for Node.js applications.

Let’s first summarize Matteo’s talk: The tool named “Pino” was developed by nearForm to increase the performance of Node.js applications by making logging as fast as possible. The idea is simple: the faster the logger the less CPU it uses, the more CPU time the app will have to serve e.g., HTTP requests. nearForm tuned Pino to be the fastest logger for Node.js, thus increasing throughput and reducing the response latency of their customers’ apps, which of course saves money for cloud computing resources!

Performance of Node.js logging frameworks.  Source: The cost of Logging

Performance of Node.js logging frameworks.
Source: The cost of Logging

Why is Pino so fast?

Continue reading

Like all good things, NodeConfEU 2016 has come to an end. Without a doubt, this year’s conference has been the biggest, most engaging conference we have ever hosted.

Now in its fourth season, NodeConfEU has come far. With a touch of luxury and a pinch of quintessentially Irish hospitality (and working Wifi) we feel NodeConfEU has matured nicely into something the whole community can be proud of.

“If you create a fun and engaging space filled with really interesting people,

magic can happen”

Continue reading

Page 1 of 2212345...1020...Last »