DEV Community

Discussion on: next.js 14 server action, API route vs separate backend

Collapse
 
robiulman profile image
Robiul

I think it depends on our application.

E-commerce Product Search
Imagine a complex product search server action that filters and sorts millions of products based on various criteria. If a large number of users perform searches simultaneously, the server load could spike, leading to performance issues.

Social Media Feed Generation
Consider a server action that personalizes a user's social media feed by fetching and processing data. With a massive user base, generating personalized feeds for each user concurrently could overwhelm the server.