A blog to discuss about Node.js Backend development. It focuses on Fastify web framework to help the community to skill up and build secure RESTful API faster.
A few days ago I reviewed a Fastify pull request that added a new route option, requestLogLevel. The motivation was one every backend developer recognizes: your orchestrator calls /health every 5 seco
React 18+ introduced renderToPipeableStream, a powerful API for streaming server-rendered HTML to the browser. Instead of waiting for the entire page to render before sending it to the client, you can
Did you see the "Verified" badge on some GitHub commits and wonder how to get it for your own commits? Well,GitHub shows the ‘Verified’ badge when a commit has a valid signature from a trusted key (GPG, SSH, S/MIME, or GitHub’s own). In this article...
Marcus gets a "quick fix" request from his product manager. The user authentication flow needs "just a small tweak", maybe an hour of work. He fires up his AI coding assistant and starts exploring the auth module. Three hours later, Marcus has rewrit...
The hardest part of my job is thinking like a malicious user... or like an AI in its early stages of writing HTTP servers!This exercise is not easy because I love my clients' HTTP requests, and I'm sure they love my server!But that is not always the ...
I was looking at the Fastify plugin list and found myself asking, "What is this @fastify/request-context plugin?"So, I checked it out, and here I am, writing a post about it to share what it is and how it can be useful for you! What is AsyncLocalStor...
Dear Backend.cafe readers, I have something special for you! If you've ever wanted to master Fastify, the lightning-fast Node.js framework, you're in for a treat. Today, I’m launching Fastify Mini Course—a free resource designed to help you build hig...
We are excited to announce that the Node.js Cookbook, 5th Edition is set to be released on November 15th, 2024! This latest edition, authored by Bethany Griggs, is the ultimate guide for developers who want to master the Node.js v22 API and build sca...
In April 2021, I tweeted about a quick experiment where I streamed a large GoPro video using Fastify. That initial experiment sparked some interest, and just a few months ago, a user reached out with an intriguing question: how could they modify the ...
This article is a continuation of Real-time data Replication in Postgres and Node.js. Before reading this article, I recommend you read the previous one because it provides essential context to the points I cover. In our previous article, we discusse...
In today's fast-paced digital landscape, businesses rely heavily on data to drive decision-making processes. Real-time data replication has emerged as a critical capability for organisations seeking to stay ahead of the curve, enabling them to synchr...
In today's digital landscape, chatbots have become a ubiquitous part of our online interactions. These versatile and intelligent programs help automate tasks, answer queries, and provide a seamless conversational experience. One popular platform for ...
Fastify v4.23.0 has just been released, featuring a brand-new onListen Application hook. In this article, we'll explore what it is and how you can leverage it in your Fastify applications. Understanding Fastify hooks Fastify's hooks are a fundamental...
In recent years, we have been surrounded by cool, interactive data visualizations. These visualizations are powered by datasets stored in databases and made available through APIs. Clients can then query the API and get the data they need to render t...
Are you a mid/expert back-end engineer looking to build highly scalable and maintainable API servers? Are you already familiar with Node.js and other back-end frameworks? If so, then "Accelerating Server-Side Development with Fastify" is the book you...
If you are an hapi developer, you may know the joi library. It is a powerful validation library that allows you to define programmatic schemas for your data and validate them with ease. One of the hardest things about migrating from hapi to fastify i...
As a backend developer, logging is essential to monitoring and debugging applications. Traditionally, changing an application's log level required restarting it or modifying the configuration and redeploying it. However, there are scenarios where cha...
Me (Manuel Spigolon), Maksim Sinik and Matteo Collina are thrilled to share some exciting news with the Fastify community! After two years of hard work and dedication, we are delighted to announce the official release date of our book! 'Accelerating ...
Every time I have to deal with emojis in Node.js, I have to google the same things over and over again. So I decided to write this post to have a reference for myself and you, dear reader. If you know precisely why '😊'.length equals 2, you can skip ...
I always strive to write actionable articles, but let’s face it: improving code performance can be a bit intimidating. Not today, my friends!In this post, I’ll share some lesser-known but highly effective strategies to speed up your codebase — starti...