Use request traces, CPU profiles, event-loop delay, and connection-pool metrics to diagnose slow NestJS endpoints. Locate bottlenecks in DTO conversion, serialization, queries, and queueing, then verify improvements with load tests.
Use Express for small services, prototypes, and webhooks. Use NestJS for a business backend a team will keep maintaining. Nest still runs on Express by default. Switch to Fastify only if a load test shows the HTTP layer is the bottleneck.
NestJS handles complex backends. Next.js handles React pages and SEO. The names look alike; the layers do not. Compare positioning, architecture, routing, realtime, performance, testing, and how to choose in 2026.