Replies: 2 comments 14 replies
-
|
stock market app? ISR? Traders want LIVE market data; they won’t wait for cache invalidation. you need to re-evaluate Nextjs architecture is suitable for the job |
Beta Was this translation helpful? Give feedback.
14 replies
-
|
let's upvote my answer |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I have a next js app router configured on ec2 using pm2 cluster mode. I have an auto scaling setup having a core of 2 vCpus. My website has dynamic pages for a stock market application. So currently I have CDN on top of my elb for sometime to cache the html for a short amount of time. But it mostly skips CDN for now and goes to the machine which computes all data as SSR. All n/w calls are done on my website to handle seo and page awareness.
But the problem what I face is when I see a spike of 6k requests in 5 mins that’s approx 100rps. And my cpu of all the machines I have go up to 90%+.
I came across ISR recently. And generateStaticParam to generate build of certain paths at buildtime. I would want to know from the smart guys out there, how are you managing load and concurrent users ?
Will SSR fail here ? Will ISR come to rescue ? But even then computing 10k pages with each having 1sec time also is 10000secs which is just too much right ?
Also came across PPR but not sure if it’ll help with CPU for dynamic pages.
I’m just confused and looking for help, please let me know what you know.
Cheers
cc @icyJoseph @ijjk @timneutkens @sokra @huozhi @Timer @leerob
Additional information
https://www.reddit.com/r/nextjs/comments/1p33ozg/over_10k_dynamic_pages_handling/Example
No response
Beta Was this translation helpful? Give feedback.
All reactions