Learn Fastify One Plugin at a Time

certificate
Recording and certification are available to Multipass and Full ticket holders only
Please login if you have one.
Rate this content
Bookmark

Fastify is an HTTP framework for Node.js that focuses on providing a good developer experience without compromising on performance metrics. What makes Fastify special are not its technical details, but its community which is wide open for contributions of any kind. Part of the secret sauce is Fastify plugin architecture that enabled developers to write more than a hundred plugins.

This hands-on workshop is structured around a series of exercises that covers from basics "hello world", to how to structure a project, perform database access and authentication.

https://github.com/nearform/the-fastify-workshop

This workshop has been presented at Node Congress 2021, check out the latest edition of this JavaScript Conference.

FAQ

Fastify is a web framework designed for building fast web applications with minimal overhead compared to NodeCore. It is extensible, supports hooks, plugins, decorators, and is schema-based, providing a great developer experience especially in production environments.

The source code for the Fastify workshop is publicly available on GitHub at the repository 'github.com/NearForm/the-fastify-workshop'.

Fastify's core features include high performance (fast execution and handling of requests with minimal overhead), extensibility through hooks, plugins, and decorators, built-in schema-based handling, and default logging capabilities.

Yes, Fastify provides good support for TypeScript, enhancing the developer experience by ensuring type safety and facilitating tooling and integrations.

Yes, Fastify is suitable for production applications. It was designed with performance and scalability in mind, making it capable of handling real-world production workloads effectively.

Fastify has built-in logging through the Pino logger. Pino is highly performant and allows for customized logging strategies, making it suitable for both development and production environments.

Fastify uses a schema-based approach to validate and serialize input and output. It typically uses JSON Schema for validation, which helps in defining the structure of the data and ensuring that the data adheres to specified formats.

To start the Fastify workshop, you need to have Node.js installed, specifically a Long Term Support (LTS) version such as Node 14. This setup ensures compatibility and stability with the Fastify framework.

Matteo Collina
Matteo Collina
128 min
02 Aug, 2021

Comments

Sign in or register to post your comment.

Video Summary and Transcription

This Fastify Workshop covers the basics of the framework and its key plugins, highlighting its speed, extensibility, and schema-based approach. It emphasizes the importance of using Node.js LTS version 14 and ESM modules. The workshop includes exercises on folder organization, route creation, dynamic imports, logging with Pino, schema validation, unit testing, JWT authentication, environment variable configuration, and integration with Fastify Autoload. The speaker also discusses Fastify use cases, compares it to Golang, and recommends Fastify for better developer productivity. The workshop concludes with insights on data access, upcoming Fastify features, and contributions to the project.
Available in Español: Aprende Fastify Un Plugin a la Vez
Video transcription and chapters available for users with access.