Principles for doing Node right at scale

1 week ago 5
Club.noww.in

#​549 — September 24, 2024

Read on the Web

The Nine Node Pillars: Principles for Doing Node Right in the Enterprise — An interesting resource from a group of prolific and productive Node.js contributors. It’s designed to act as a checklist to identify gaps in your current Node development practices, particularly when building larger scale apps.

Snell, Venditto, Dawson, Collina, et al.

Node v22.9.0 (Current) Released — The latest cutting edge Node has a new API for retrieving the stack trace of the current execution. It also disables V8’s Maglev optimizing JIT due to upstream reliability problems and the necessity for Node v22 to stick with V8 v12.4 when it goes LTS next month.

Rafael Gonzaga

WorkOS Enterprise Ready Conference — A one-day event in SF for product and engineering leaders shaping the future of enterprise SaaS. Speakers from OpenAI, Asana, Slack, Canva, Vanta, and more. Topics will include user identity, compliance, encryption, and logging — common features you need to support to sell to enterprises.

WorkOS sponsor

What's New in Express.js 5.0We mentioned Express 5.0 and some of its new features recently, but here's a deeper look at what it has to offer. The updates are largely incremental, but set the stage for Express’s future. A few breaking changes necessitate the major version bump.

Trevor I. Lasn

📺 If you'd prefer a live, video walkthrough, CJ of Coding Garden has one in 'Express v5 is Here' over on YouTube.

IN BRIEF:

Now You Can Compile and Run C in JavaScript — Well, if you’re using Bun, anyway. Bun v1.1.28 lands experimental support for compiling and native C code and then running its functions from JavaScript.

Jarred Sumner (Bun)

A Comprehensive Guide to Node.js Addons — If you’d rather stick with Node than use Bun’s newest feature to bring C/C++ etc. into JavaScript, writing your own addon remains a dependable approach.

Mert Can Altin

Roll Your Own Autoscaler — Prefer to keep your autoscaling in-house? Here’s how we built ours.

Judoscale sponsor

📄 Node 20 Upgrade: A Journey Through Unexpected Heap Issues with Kubernetes Ztec / Deezer

📄 Getting Started with Testcontainers for Node.js Ajeet Raina

📄 Why We Switched from Cypress to Playwright S Varun (BigBinary)

🛠 Code & Tools

Deno 2.0 Release Candidate — Deno started life as a manifestation of ideas that Node’s original creator, Ryan Dahl, had after his experiences with Node. Deno 2 is the next step: how the Deno team thinks Deno should ultimately be. Many changes await: window is gone and Node’s process appears, dependency management has been improved, numerous APIs have gone stable (e.g. WebGPU), and both Node.js API and CommonJS support have continued to improve.

Bartek Iwańczuk and Andy Jiang

ts-remove-unused: Remove Unused Code from TypeScript Projects — A tool to auto-fix unused exports and delete modules that have no referenced exports. Knip is another established tool in this space focused more on detecting removable things.

LINE

📰 Classifieds

🚀 Run, scale & secure your Node.js apps in one command. Works for your stack. Just plug & play.

🟢 Node.js user? Here are 9 guiding principles for creating robust, scalable & maintainable apps in enterprise environments.

ts-blank-space: Fast Type-Stripping TypeScript to JS Compiler — It’s job is simple. Be the fastest TS to JS compiler written in JS (it’s 5.6x faster than tsc.) Types are simply replaced with whitespace. It preserves the coordinates of the JS code which eliminates the need for sourcemaps entirely.

Ashley Claymore / Bloomberg

libpg-query-node: Postgres' SQL Parser, Exposed for Node — Use Postgres’s SQL parser at a low level from Node via libpg_query. If you want something higher level, this library is used by pgsql-parser which gives the ability to parse and serialize queries into/from ASTs.

Dan Lynch

💌 And if you're into Postgres, be sure to check out our Postgres newsletter.

Piscina 4.7: Node.js Worker Pool Library — Efficiently run CPU-intensive tasks in parallel using worker threads in a controlled manner. GitHub repo.

James M Snell et al.

Read Entire Article