Systems | Development | Analytics | API | Testing

Worker Threads in Node.js: A Complete Guide for Multithreading in JavaScript

Node.js is known for its non-blocking, event-driven architecture, making it great for handling I/O-bound tasks like web requests and file operations. But when it comes to CPU-intensive tasks, things get tricky. Because Node.js runs JavaScript in a single-threaded environment, heavy computations can block the event loop and degrade application performance. That’s where Worker Threads come in.

Using SQL in Node.js with Sequelize

Relational databases rely on SQL, or Structured Query Language, as the standard way to control and interact with their stored data. In the Node.js ecosystem, Sequelize is a prominent Object-Relational Mapping(ORM) library that bridges the gap between Node.js apps and SQL databases, enabling you to interact with your data using familiar JavaScript idioms. This article will guide you through using Sequelize to connect to databases, run queries, and handle results within your Node.js projects.

Performance and Stress Testing in Node.js

Performance and stress testing are two popular testing methodologies. They focus on determining how an application behaves under regular and unexpectedly high traffic, respectively. These tests are essential for assessing a system's robustness and scalability, particularly in applications with fluctuating traffic like Node.js backends. In this article, you'll learn about stress and performance testing, why they're important, the best tools available, and how to use them in Node. Let's dive in!

Introducing N|Sentinel: Your AI-Powered Agent for Node.js Performance Optimization

In the fast-paced world of modern software development, performance is no longer just a backend concern—it's a critical driver of user satisfaction, infrastructure cost, and business growth. At NodeSource, we're excited to unveil a new feature in the N|Solid platform that takes Node.js application performance to a new level: N|Sentinel.

NodeSource N|Solid Runtime Release - May 2025: Performance, Stability & the Final Update for v18

We're excited to share the latest N|Solid Runtime release for May 2025. N|Solid Runtime is the OSS runtime that powers N|Solid. Its a 100% compatible augmented version of Node.js developed by the expert engineers at NodeSource, and it connects with N|Solid to get the most relevant insights of your Node.js application.

What's New in Node.js 24

The latest Node.js release has arrived, and it's not just another incremental update. It delivers meaningful improvements that directly address real-world pain points and opens up new possibilities for JavaScript on the server. In this article, we'll cut through the changelog noise and focus on what's genuinely worth getting excited about in this release. Let's get started!

Node.js 24 Is Here: What You Need to Know

We want to express our appreciation to the many contributors to this release including NodeSource team members @RafaelGSS, @juanarbol. Thank you for all your efforts to keep moving Node.js forward! Node.js 24 has officially landed! This release brings some exciting improvements to JavaScript developers, making Node.js faster, more capable, and more aligned with the latest JavaScript standards.

N|Solid 6.1.8: Major AI Upgrades, UX Enhancements, and Tracing Improvements

As spring blooms, so does the N|Solid—with our latest release bringing an exciting wave of new features, critical improvements, and behind-the-scenes optimizations. This update (v6.1.8) is part of our ongoing commitment to deliver the most insightful, stable, and powerful Node.js monitoring and debugging experience available. Here’s what’s new.

How To Write Unit Tests in Node.js Using Mocha

Increasing the test coverage of a backend application is key to ensuring its reliability, functionality, and robustness. Thanks to its intuitive API and agnostic approach to assertions, Mocha has emerged as one of the most popular choices for unit testing in Node.js. In this guide, you'll learn what Mocha is, understand how it works, explore its features, and see it in action with a complete example. Time to become a Mocha unit testing expert!