Francisco Javier Palacios PérezFco. Javier Palacios Pérez
Software Developer

Tutorials

Tutorials

Calling other services: timeouts, retries and errors that don't lie14Node.js for Backend Developers

Calling other services: timeouts, retries and errors that don't lie

fetch has no timeout, a 500 comes back as a response and broken JSON blows up on read: how to call another service without hanging yours or charging twice.

The runtime you already have: test runner, permissions, threads and TypeScript13Node.js for Backend Developers

The runtime you already have: test runner, permissions, threads and TypeScript

Test runner, argument parsing, type stripping, permission model, threads and file watching: what you installed yesterday ships with Node today.

Final project: a real API, assembled12Node.js for Backend Developers

Final project: a real API, assembled

Eleven lessons of loose pieces, and here they meet: layers, validation, centralised errors, logs with an identifier and a CRUD that answers properly.

Errors, validation and structure: the service that holds11Node.js for Backend Developers

Errors, validation and structure: the service that holds

One place for errors, Zod at the boundary, logs with an identifier and a shutdown that drops no requests: from a pile of routes to a service.

Express without magic: what each piece does10Node.js for Backend Developers

Express without magic: what each piece does

Sixty-five packages for what you wrote in twenty lines yesterday. We take Express apart: middleware, express.json, routers and the 413 you never wrote.

HTTP from scratch: a server without a framework9Node.js for Backend Developers

HTTP from scratch: a server without a framework

createServer, reading the body by hand, a router in a Map, and why Express ends up being the answer: bare HTTP, with its real output.

Files, paths and environment variables: what you touch every day8Node.js for Backend Developers

Files, paths and environment variables: what you touch every day

Reading a 2 GB log with readFile isn't slow, it's a bug. fs/promises, streams, join versus resolve, and configuration that fails at startup.

Globals, modules and the standard library: the ground you work on7Node.js for Backend Developers

Globals, modules and the standard library: the ground you work on

process, Buffer, import.meta, package.json exports and the five runtime modules you actually use, with their real output.

async/await in practice: async code that reads like normal code6Node.js for Backend Developers

async/await in practice: async code that reads like normal code

The three mistakes everyone makes: forgetting the await, using forEach with async, and running in series what could run in parallel.

Callbacks and promises: from the nested pyramid to the value that arrives later5Node.js for Backend Developers

Callbacks and promises: from the nested pyramid to the value that arrives later

Why the (err, data) style forced you to nest, what a promise is inside, and when to fire ten requests at once instead of one after another.

The event loop: the mental model that changes everything4Node.js for Backend Developers

The event loop: the mental model that changes everything

Why a zero-millisecond setTimeout takes three hundred, why your server goes quiet, and the order your code actually runs in once promises are involved.

Modules, template literals, and the array methods that replace your loops3Node.js for Backend Developers

Modules, template literals, and the array methods that replace your loops

Why import sometimes works and sometimes explodes, what optional chaining buys you, and how to stop writing loops to walk an array.