Francisco Javier Palacios PérezFco. Javier Palacios Pérez
Software Developer
Category: Node.js

Category: Node.js

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

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 TypeScript

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, assembled

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 holds

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 does

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 framework

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 day

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 on

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 code

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 later

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.