Skip to the page

Structure, logging, testing and shutdown · mid

Express vs Fastify vs NestJS vs Hono

Express is the simple, unopinionated default; Fastify is faster with built-in schema validation and logging; NestJS adds an opinionated structure with modules, decorators and dependency injection on top of Express or Fastify; Hono is a small Web-Standards framework that runs on edge runtimes, Bun, Deno and Node.

The notes

What you must know

  • Express (5.3 in November 2026): the biggest ecosystem and the most tutorials; minimal, so you choose structure and validation.
  • Fastify (5.x): JSON-schema validation and fast serialization per route, plugins with encapsulation, Pino logging built in, a hooks lifecycle; higher throughput in benchmarks.
  • NestJS (12.x): Angular-like architecture: modules, controllers, providers, dependency injection, guards, pipes, interceptors. Good for big teams that want conventions; more boilerplate. It runs on an Express (default) or Fastify adapter.
  • Hono (4.x): built on the Fetch API Request/Response, so the same code runs on Cloudflare Workers, Vercel and Netlify edge, Bun, Deno, AWS Lambda and Node.
  • Choose by team and constraints: existing code and hiring -> Express; performance and schemas -> Fastify; large codebase with strict conventions -> NestJS; edge or multi-runtime -> Hono; a BFF inside a Next.js app -> route handlers.
  • The framework is rarely the bottleneck: database queries and network calls usually are.

The red pen

Common traps: mistake → fix

  • Mistake: Switching to Fastify or Hono will fix a slow API

    Fix: slow APIs are usually slow queries or N+1, not the framework.

  • Mistake: NestJS is a different runtime

    Fix: it is a framework on top of Express or Fastify, still Node.

Easy to hard

Questions interviewers ask, easy to hard

  1. Why Express? Have you used anything else?
  2. Express vs Fastify vs NestJS: when would you pick each?
  3. What is Hono and why is it popular for edge functions?

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview