#​470 — January 19, 2023

Read on the Web

Together with  Frontend Masters logo
Node.js Weekly

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 problems encountered along the way, before discovering the root cause was where he least expected it.

Kent C Dodds

How To Handle Asynchronous Tasks with BullMQBullMQ is a Redis-based job queue system you can use to offload asynchronous tasks from your app to run in the background. This is a very thorough, practical walkthrough in typical DigitalOcean style.

Stanley Ulili

Become a Fullstack Engineer through this Curated Learning Path — Expand your abilities with a wide range of courses covering the entire stack: servers, databases, SQL, command line, VIM, node.js, APIs, AWS, and more!

Frontend Masters sponsor

Bun v0.5 ReleasedBun is another JavaScript runtime taking the world by storm and unlike Deno, some level of Node compatibility has been considered important from the start. v0.5 adds support for node:readline, workspaces, a node:dns shim, and network socket creation support such that more Node.js-based database libraries work out of the box.

Ashcon Partovi

From Ruby to Node: Overhauling Shopify’s CLI — E-commerce platform Shopify is well known as a Ruby shop but even they found a compelling reason to switch to Node for their CLI tool. There are numerous reasons explained here, though easier cross-platform packaging was clearly a big motivation.

Pedro Piñera (Shopify)

IN BRIEF:

Blue Green Deployment for Node.js without Kubernetes — Discover how to perform Blue-Green deployments from scratch without Kubernetes, along with CI/CD integration, some Nginx, and the PM2 process manager.

Bikash Paneru and Dan Ackerson

The Gotcha of Unhandled Promise Rejections — A rough edge with promises that can sneak up on you. Jake looks at a ‘gotcha’ around unhandled promise rejections and how to work around them.

Jake Archibald

▶  Whiskey Web and Whatnot: Your New Favorite JavaScript Podcast

Whiskey Web and Whatnot sponsorpodcast

Send UDP Messages in Node Without dns.lookup
Herman J. Radtke III

🛠 Code & Tools

Glob 8.1: Match Files Using Shell-Style Patterns“Match files using the patterns the shell uses, like stars and stuff.” I still think this is the cutest logo of any Node project out there (if you disagree, hit reply and show us a cuter one).

Isaac Z. Schlueter

Prisma 4.9: Node + TypeScript Database Toolkit — The popular ORM adds initial support for database views and multi-schema support for SQL Server, amongst other minor things and bug fixes. A live ▶️ what’s new in Prisma session takes place on YouTube next Thursday.

Prisma

Let Us Help You Reduce Your Tech Debt. Let’s Modernize Your JS Stack — Need a reliable, cost-effective service agency to upgrade your dependencies? Contact UpgradeJS to reduce your tech debt.

UpgradeJS: A Productized Node.js Upgrade Service sponsor

node-html-to-image: Generate Images from HTML — Wraps around Puppeteer, but also lets you use Handlebars for added logic in your HTML.

Yvonnick Frin

Blockman: Highlight Nested Code Blocks in VS Code — If you’re working with deeply nested code, this could be handy as it provides a more visual way to see each nested block than VS Code’s usual pale lines. There’s a ▶️ one minute introductory video to convince you.

Levan Katsadze

💻 Jobs

Backend Engineer, TypeScript (Berlin / Remote) — Thousands of people love our product (see Trustpilot for yourself). Join the team behind it and help us scale. 🚀
Feather

Find Tech Jobs with Hired — Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It's free for job-seekers.
Hired