~/talk

Next.js is my main web server for all APIs. And I like it!

Talkat Kongres Next.js 2024 · on Friday, 2024-02-02· [nodejs]
slides:none on file

Argues that Next.js can be a full web server for REST/GraphQL, using Next 14 route handlers, middleware (runs on the Edge), Node streams for file streaming, OpenAPI via libraries like next-swagger, validation with Zod/Joi and next-connect for Express‑style middleware; shows a quick internal MVP and a custom-server attempt (Standalone build breaks). Benchmarks with autocannon (40s, 100 concurrency, 10 pipelined) show Fastify: ~28k req/s vs Next’s best ~3k req/s, pages/API routes beat app router by ~60%, and the app router drops ~300 errors in ~75k requests.

AI-written summary · about

  1. 0:00The case for using Next.js
  2. 2:36App router and functionality
  3. 5:43Validation and architecture
  4. 7:11Middleware and configuration
  5. 9:31Legacy and library solutions
  6. 11:30Internal service implementation
  7. 16:03Performance benchmarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.