-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server performance degrades as more concurrent users hit an SSR-ed Vue app #10383
Comments
Give $ pnpm dlx degit fastify/fastify-vite/starters/vue-base vue-fastify-ssr
$ cd vue-fastify-ssr
$ pnpm install
$ pnpm build
$ pnpm start |
I will give it a try, but I have noticed the same with Nuxt where H3 is used. So I don't think, in this case, it's a server-type issue |
@Shyam-Chen Same with fastify-vite as well |
Also tried the same test (as much as I could) with Fastify Vite Vanilla React as well. There the problem is far lesser compared with Vue. |
Tested with the recent commits (4bc9f39, 6af733d, ca84316) on your repo, they did improve things significantly. On my machine the curl response time stays consistent within the 0.006 to 0.02s range throughout the k6 run. There are still room for improvements but I believe this can be considered solved for now. |
That is absolutely amazing @yyx990803 Thank you so much! |
Vue version
3.4.19
Link to minimal reproduction
https://github.com/prashantpalikhe/vue-ssr-perf-showcase
Steps to reproduce
In the reproduction repo
What is expected?
Server response time should stay as close to the app render time when the number of concurrent users increases.
What is actually happening?
App render time stays low. But the server response time increases dramatically as the number of concurrent users increases.
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: