Load test
Unanswered
Florida White posted this in #help-forum
Florida WhiteOP
Hey guys, I would like to ask you about load testing for Nextjs application. How to perform it, what results are fine, what we can do to speed it up etc. Currently I have pretty simple route handlers (api) which fetch from external api and my results are very poor - 120 requests/per second... how it looks on your side?
greetings
greetings
13 Replies
Dutch
its same with other api load tests, nothing specific to next.js
120RPS is depends on your scale, does your app can get 120RPS regulary
also if its fetching from external api, first you need to test it
Florida WhiteOP
yeah external api is totally fine, .net - app service in azure
my nextjs is on windows server VM
2v cores, 8gigs of ram
just thinking if I can run it in cluster or something
Florida WhiteOP
actually I cannot cache too much + I'm using external api so api/server components/server actions works as proxy almost
it's coming from there with no-store already so propably on my side I shouldn't do the same 😄
Florida WhiteOP
because it's coming from external .NET api without cache already? and generally it's not like static page or something but pretty dynamic system with a lot of dependencies - for example managable dictionaries etc and they needs to be available bo like 20k users
@Florida White  because it's coming from external .NET api without cache already? and generally it's not like static page or something but pretty dynamic system with a lot of dependencies - for example managable dictionaries etc and they needs to be available bo like 20k users 
I mean something like caching the result of the external .net apis, setting up a revalidate-caching system