- Web framework for Node.js
- Build to be performant & secure
- Inspired by Express & Hapi
- Full async/await support
- Helpful and flexibly TypeScript support
- Rich and high-quality ecosystem
- Secure
- It's fast
Note: Will be using TypeScript, ESM & async/await Fastify does support JS, CJS and callbacks
- Build an instance of Fastify
- Start the server
- Register a route
- Request & reply
- Graceful shutdown
https://www.fastify.io/docs/latest/Reference/Plugins/
- Register routes as plugins
- Register external plugins
- Register with options
- Call order
https://www.fastify.io/docs/latest/Reference/Decorators/
- Modify the request object - addHook
- Add functionality to the Fastify instance - decorate
https://www.fastify.io/docs/latest/Reference/Hooks
- Lifecycle hooks
- Validate requests
- Validate responses