Next.js Discord

Discord Forum

High IO usage self hosted

Answered
Red-billed Pigeon posted this in #help-forum
Open in Discord
Red-billed PigeonOP
Hello! We recently moved off of vercel to self hosted but noticed we hit IO throughput issues before RAM and CPU issues. This is across many servers in our prod environment. Is the cause of this being ISR and various caching? Is the solution to just use something like redis for global caching?
Answered by Arinji
Yes, nextjs uses a local folder called .next for doing quite a lot of its tasks
View full answer

14 Replies

Yes, nextjs uses a local folder called .next for doing quite a lot of its tasks
Answer
including as you mentioned.. caching
also nextjs image caching uses .next/cache/images so you can make your own image solution
make more files ssg over isr
use redis
etc
@Red-billed Pigeon
@Arinji also nextjs image caching uses .next/cache/images so you can make your own image solution
Red-billed PigeonOP
is this even while using a custom image loader?
thanks for the info btw
nope, custom image loader means its being handled by you and nextjs wont use .next
@Red-billed Pigeon thanks for the info btw
no worries
Red-billed PigeonOP
sounds good, will look to setup redis, thanks again
nw, mark a solution if it helped
Original message was deleted
boop