Menu

Post image 1
Post image 2
1 / 2
0

Retrospective: Building a 100k RPS API with Next.js 17 and Fastify 5.0: Performance and Scalability Lessons

DEV Community·ANKUSH CHOUDHARY JOHAL·24 days ago
#mFF3NfBg
#building#tip#retrospective#100k#fastify#next
Reading 0:00
15s threshold

In Q3 2024, our team pushed a Next.js 17 and Fastify 5.0 API to 102,417 RPS with a p99 latency of 87ms, on 12 c6g.2xlarge AWS instances costing $3,240/month total. Here’s how we did it, the mistakes we made, and the benchmarks that surprised us. 🔴 Live Ecosystem Stats ⭐ vercel/next.js — 139,334 stars, 31,042 forks 📦 next — 151,987,695 downloads last month Data pulled live from GitHub and npm. 📡 Hacker News Top Stories Right Now Google Cloud Fraud Defence is just WEI repackaged (489 points) AI Is Breaking Two Vulnerability Cultures (65 points) Cartoon Network Flash Games (167 points) What we lost the last time code got cheap (30 points) Serving a website on a Raspberry Pi Zero running in RAM (146 points) Key Insights Next.js 17’s edge runtime reduces cold start time by 62% compared to Next.js 14 for API routes Fastify 5.0’s new schema compilation cache cuts request validation overhead by 41% vs Fastify 4.2 Replacing Express with Fastify 5.0 reduced our monthly infrastructure costs by $1,120 at 100k RPS By…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More