[フレーム]
BT

InfoQ Software Architects' Newsletter

A monthly overview of things you need to know as an architect or aspiring architect.

View an example

We protect your privacy.

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Unlock the full InfoQ experience

Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources.

Log In
or

Don't have an InfoQ account?

Register
  • Stay updated on topics and peers that matter to youReceive instant alerts on the latest insights and trends.
  • Quickly access free resources for continuous learningMinibooks, videos with transcripts, and training materials.
  • Save articles and read at anytimeBookmark articles to read whenever youre ready.

Topics

Choose your language

InfoQ Homepage News Fastify Node.js Web Framework

Fastify Node.js Web Framework

Mar 07, 2020 1 min read

Write for InfoQ

Feed your curiosity. Help 550k+ global
senior developers
each month stay ahead.
Get in touch

Fastify is an open-source Node.js web framework that remains focused on providing excellent developer experience, minimal performance overhead, and a flexible plugin architecture.

Fastify's development efforts are focused on six main features and principles. First, as its name suggests, Fastify is focused on speed, and can currently serve up to 30,000 requests per second.

Fastify provides extensibility via hooks, plugins, and decorators.

The Fastify project strongly recommends the option of using JSON Schema to validate routes and serialize outputs to improve performance and accuracy.

Fastify leverages Pino, a very low overhead Node.js logger, for logging.

Fastify strives to be friendly for developers, with a focus on expressive code without sacrificing performance and security.

While not a TypeScript framework, Fastify is TypeScript-ready with full support for TypeScript type definitions.

Getting started with Fastify requires installation via npm:

npm install fastify

Fastify then provides APIs for working with routes, running the server, request/response validation and hooks, lifecycle management, middleware, error handling, content parsing, and much more.

The Fastify ecosystem has more than 100 core and community plugins supporting a wide range of features.

Fastify Performance benchmarks exist comparing Fastify to Koa, Express, Restify, and Hapi.

Fastify is open source software available under the MIT license and is part of the OpenJS Foundation. Contributions are welcome and should follow the Fastify contribution guidelines and code of conduct.

Rate this Article

Adoption
Style

Related Content

The InfoQ Newsletter

A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example

We protect your privacy.

BT

AltStyle によって変換されたページ (->オリジナル) /