Working with Fastify – The Web Framework
In Chapter 4, we learned about the low-level APIs provided by Node.js core for building web applications. However, using those APIs can be challenging sometimes, demanding substantial effort to translate conceptual ideas into functional software. For this reason, web frameworks are pivotal for quickly developing robust HTTP servers within the Node.js ecosystem. A web framework abstracts web protocols into higher-level APIs, allowing you to implement your business logic without the need to address everyday tasks, such as parsing the body of an HTTP request or reinventing an internal router.
This chapter introduces Fastify, the fastest web framework with the lowest overhead available for Node.js. Fastify places a high emphasis on enhancing the developer’s experience, powering you to build APIs while ensuring outstanding application performance. It closely adheres to web standards, ensuring compatibility and reliability. Moreover...