Matteo Collina
1, 2, 3... Fastify!
#1about 4 minutes
The philosophy and community behind Fastify
Fastify was built with an open, community-first governance model to ensure long-term maintenance and growth.
#2about 3 minutes
Setting up a basic server with logging
A live demo shows how to set up a minimal Fastify server, add a basic route, and enable structured JSON logging with Pino.
#3about 2 minutes
Refactoring the application for testability
The server startup logic is separated from the application configuration into a `build` function to make the app testable in isolation.
#4about 3 minutes
Writing unit tests with tap and app.inject
Learn how to write tests for Fastify routes using the `tap` framework and the `app.inject` method to simulate HTTP requests without a network socket.
#5about 4 minutes
Structuring routes with plugins and autoload
Organize your application by splitting routes into separate files, registering them as plugins, and using `fastify-autoload` to automatically load them.
#6about 9 minutes
Implementing schema-based request validation
Use JSON schema with `fluent-json-schema` to automatically validate incoming request bodies, headers, and query parameters for improved security and reliability.
#7about 2 minutes
Generating API documentation with Swagger
Add the `fastify-swagger` plugin to your application to automatically generate an interactive Swagger UI for your API endpoints.
#8about 3 minutes
Understanding Fastify's internal architecture and lifecycle
A look at the core components like the router and validator, the plugin encapsulation model, and the sequence of hooks in the request lifecycle.
#9about 2 minutes
Exploring key features and ecosystem plugins
An overview of other important Fastify features including first-class logging, fast JSON serialization, Express compatibility, and AWS Lambda support.
#10about 7 minutes
Comparing Fastify with NestJS and Express
A Q&A discussion covers how Fastify's plugin model supports microservices, its differences from opinionated frameworks like NestJS, and when to migrate from Express.
#11about 2 minutes
Discussing TypeScript support and developer tooling
The final Q&A confirms that TypeScript is a first-class citizen in the Fastify ecosystem, despite the core being written in JavaScript for performance.
Related jobs
Jobs that call for the skills explored in this talk.
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
MARKT-PILOT GmbH
Stuttgart, Germany
Remote
€75-90K
Senior
Java
TypeScript
+1
Matching moments
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
08:07 MIN
Exploring modern JavaScript performance and new CSS features
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
11:10 MIN
The only frontend stack that truly matters
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
09:00 MIN
Navigating the growing complexity of modern CSS
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
03:16 MIN
Improving the developer feedback loop with specialized tools
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
04:02 MIN
How a broken frontend culture impacts the web
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
Featured Partners
Related Videos
Things I learned while writing high-performance JavaScript applications
Michele Riva
Multiple Ships to the Island - Micro Frontends & Island Architectures
Florian Rappl
The Lean Web
Chris Ferdinandi
Node.js: More Threads Than You Think
Matteo Collina
One Framework To Rule Them All: Faster Websites With Astro
Eddy Vinck
The Naked Web Developer: Your Browser Is Your Framework
Avichay Eyal
Micro-Frontends with Module Federation: Beyond the Basics
Manfred Steyer
To New Frontiers: The Future of Frontend Development
Rainer Hahnekamp
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Confideck GmbH
Vienna, Austria
Remote
Intermediate
Senior
Node.js
MongoDB
TypeScript

Aufmaster GmbH
Frankfurt am Main, Germany
Remote
€50-62K
API
NoSQL
React
+8

TechBiz Global GmbH
REST
Docker
Node.js
JavaScript
Continuous Integration


nono
£75-120K
Intermediate
API
Node.js
Grafana
GraphQL
+9

nono
£75-120K
Intermediate
API
Node.js
Grafana
GraphQL
+9


OKAPI: Orbits
Barcelona, Spain
Remote
€70-90K
API
React
Node.js
+2

Optimus Search
Berlin, Germany
Remote
Intermediate
API
CSS
GIT
React
+4