What are the drawbacks of using Next.js for server-side development in large applications?

I’ve been using Next.js for about six months, but I’ve heard from various developers that it’s not ideal for backend tasks. Many experienced programmers have warned against using Next.js API routes for server-side operations, particularly in larger projects.

I’m currently considering a significant project and I’m unsure whether I should continue using Next.js for the backend or choose an alternative. What specific challenges or concerns cause developers to hesitate when using Next.js for backend development? Are there certain situations where it becomes problematic as the application scales in complexity and user demand?

biggest issue i faced is being stuck in vercel’s ecosystem. switching from next.js backend to anything else is tough. the middleware isn’t flexible enough for complex requests like express. also, keep an eye on costs—serverless functions can add up quickly as you grow.

hmm, that’s interesting - what scale are we talking about? I’ve hit some performnce bottlenecks with API routes under heavy load, but I’m curious if you’re dealing with architecture probs or actual performance issues. Why’d you stick with Next.js for 6 months if you saw red flags early on?

The main problem? Next.js is a React framework, not a real backend solution. I’ve worked on enterprise apps and the biggest pain point is database connection pooling - it just doesn’t handle it well like actual backend frameworks do. Next.js API routes run as serverless functions, so you get cold start delays and can’t maintain persistent connections. Complex auth flows become a nightmare. The file-based routing gets messy fast when you’re dealing with hundreds of endpoints, and debugging server issues sucks compared to Express or Fastify tooling. Need real-time features, background jobs, or complex business logic? Next.js doesn’t have the architecture or performance optimizations that dedicated backend frameworks give you.