Category: node js

Automatic integration tests for Express apps

February 16, 2023 By Mark Otto 0

How To Scale Node Apps with Clustering — Node’s cluster module can be used to run and manage multiple Node instances as a way to distribute workloads. Stanley gives a thorough and practical walkthrough of how to do it and why and when it yields a benefit.…

Bringing JavaScript to WebAssembly

February 10, 2023 By Mark Otto Off

It looked quiet at first but wow, what an epic week this turned out to be. There’s a lot to chew on here, and we even have a variety of bonus items at the very end of the issue. Enjoy!__Your editor, Peter Cooper Monitoring Your NestJS…

Node gets a new URL parser

February 9, 2023 By Mark Otto 0

Ada 1.0: Node’s Forthcoming New URL Parser — Node.js is moving to a new, faster URL parser called Ada (ironically written in C++ and not Ada). It passes the full WHATWG and Node test suites, though we’d be surprised if there aren’t a few teething…

Ways to remove event listeners

February 3, 2023 By Mark Otto Off

You’ve Got Options for Removing Event Listeners — Unnecessary event listeners can cause all sorts of odd problems so it’s good to clean them up when you don’t need them anymore. How? There are several approaches and Alex looks at their pros and cons. (once is…

SQL in your JavaScript

February 2, 2023 By Mark Otto 0

AlaSQL.js 3.0: Isomorphic JavaScript SQL Database — A SQL database you can use in Node.js and the browser. The interesting bit, for me, is how it opens up the idea of using SQL to query JavaScript objects – as in this example. “The library adds…

Astro 2.0 and TypeScript 5.0 beta

January 27, 2023 By Mark Otto Off

Astro 2.0: The Next-Gen ‘Islands’-Oriented Web Framework — 2.0 includes hybrid rendering (mixing of SSR and SSG outputs), type safety for Markdown & MDX, and an upgrade to Vite 4.0. Astro is worth exploring when performance is key as it works with popular frameworks but…

Automating the desktop with Node

January 26, 2023 By Mark Otto 0

Building Reliable Distributed Systems in Node — This post introduces the concept of durable execution which is used by a variety of companies and services to run reliable distributed systems. Temporal is a platform that coordinates workflows and durable jobs built around them. Loren Sands-Ramshaw IN…

Why document.write() is bad

January 20, 2023 By Mark Otto Off

Why Not document.write()? — Many moons ago, document.write was a mainstay of client-side JavaScript code, but it’s long been considered a bad practice – why? Harry digs in, noting that it “guarantees both a blocking fetch and a blocking execution, which holds up the parser…

We’re going on a memory leak hunt

January 19, 2023 By Mark Otto 0

Fixing a Memory Leak in a Production Node App — Kent encountered a variety of weird memory and CPU usage spikes in his Node-powered app and decided to figure out what was going on. This post walks through his complete journey, with plenty of side…

Java-Script Jarre

January 13, 2023 By Mark Otto Off

The State of JS 2022 — The State of JS is one of the JavaScript ecosystem’s most popular surveys and this time 39,471 folks took part giving us a snapshot of the tools, technologies, and language features people are using (or not using!) There’s a…