A short list of what we need (SSG + ISR on Demand) #1133
welschmoor
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please, allow me to describe those users of frontend frameworks who are often silent, but those that are always looking for new solutions for all the same problems. "We" in the title refers to businesses of large and medium size. The reason "we" mainly use NextJs, besides the ease and fast speed of development, the SPA "experience", its versatility, ease of self-hosting, image optimization etc.. is the ability to generate and revalidate static pages.
When you have hundreds of customers on say your ecommerce site, then the 70req/s the getServerSideProps of Next.js may come close to the limit of what a server can handle. By generating static versions of the pages, the server can handle about 10 times more requests, 600-700req/s, which is insanely fast for almost any business.
The TODOMVC version of your create solid app handles 350req/s, tested locally with
hey
tool. By addingsolid-start-static
* to this project, it can handle 6000req/s. Six thousand per second.Since the majority of the websites are ideal candidates for static pages - sites like: forums, reddit, ebay, ecommerce, youtube, twitter - we would be in the right to argue that a good static page generator is what the majority of us need, without the bundle size and slowness of Nextjs, but with the feel and UX of an SPA.
So, speaking for many others, here's a short list of what we need:
As of today, only Next.js can do it. And this is one very strong reason why new projects end up using Next.js. Svelte has now also been added to the list, but svelte revalidation only works when deployed to Vercel. And from Ryan we know Solid Apps grow larger with increasing component count and grow faster than even React, so that might influence the decision too. If I were today to decide on the frontend tech for a new large project, it would without any doubt or hesitation be Next.js. Can we please have a choice?
Forgive my ignorance for not knowing how hard or easy it is to implement something like that. I am only giving you the perspective of what most users need.
Astro3 is nice, but handling state and javascript is awkward and for this reason not suitable for large projects.
Have a good one!
*For those who want to know how to do it:
add "solid-start-static" package to your solid start project, then in vite config add the plugin and finally run build again:
Beta Was this translation helpful? Give feedback.
All reactions