Learn to build faster web applications implementing maintainable and pluggable APIs with Fastify
Key Features
- Learn the 'Fastify' mindset of building APIs from the experts maintaining Fastify
- Get an architectural overview of Fastify's feature that enables microservices development
- Step-by-step explanation to help you build complete apps in Fastify, from app design to production
Book Description
Fastify is a plugin-based web framework designed to be high performant. It fosters code reuse and, therefore, improves your time to market. Additionally, one of the most important propositions of developer experience is one of the most important propositions of Fastify.
Accelerate Web Development with Fastify is a complete guide to server-side app development in Fastify, written by the core contributors of Fastify. It starts from the core concepts, continuing with a real-world project, and even touching more advanced topics to enable developers to build highly maintainable and scalable backend applications. You will learn to develop real-world RESTful applications from zero to deployment, including designing the app and building highly reusable components.
By the end of this book, you will be able to design, implement, deploy, and maintain an application written in Fastify.
After reading this book, we aim for the developers to gain so much confidence in developing plugins and APIs in Fastify that they will be able to contribute back to the Fastify community and Open Source in general.
What you will learn
- Deep dive into the encapsulation techniques implemented by Fastify
- Learn how to deploy, monitor, and handle errors in a running Fastify instance
- Organize the project structure and implement a microservices architecture
- Explore Fastify's core features like encapsulation, code reuse, runtime speed, among others
- Discover best practices in implementing Fastify for real-world RESTful apps
- Understand advanced backend development concepts like performance monitoring and logging
Who This Book Is For
The book is for mid to expert-level backend web developers who have already used other backend web frameworks and have worked with HTTP protocol and its peculiarities. It helps developers who wish to migrate to Fastify and learn how it can be a good fit for the next project, avoiding the architecture pitfalls and building highly responsive and maintainable API servers. The book assumed knowledge of JavaScript programming, Node.js, and backend development.
Table of Contents
- What is Fastify?
- Plugin System and Boot Process
- Working with Routes
- Hooks, Decorators, and Content-Type Parsers
- Exploring Validation and Serialization
- Project Structure and Configuration Management
- Building a RESTful API
- Authentication and Files Handling
- Application Testing
- Process monitoring for a healthy application
- Meaningful Application logging
- From Monolith to Microservices
- Performance Assessment and Improvement
- Developing GraphQL API
- Implementing WebSockets