3 ms·
What are you building? You should be able to articulate the pros and cons of choosing an SPA, SSR, SSG, or some combination of the above based on your user need
by solardev 2y ago
What are you building? You should be able to articulate the pros and cons of choosing an SPA, SSR, SSG, or some combination of the above based on your user needs and team resources and constraints and the purpose of the app.
Most of the app can be statically built, first rendered on the server and then cached on a CDN as static files. Then certain rerenders and calls can be clientside and others can go through the server if needed.
It shouldn't just be a fashion choice, but a measured analysis. Like what is on your backend and what is on the edge, how would consistency work, what are the regional considerations, etc.
I feel like asking which infra to build without knowing the app is putting the cart before the horse. A dashboard is different from a chatbot is different from a marketing site is different from a graphics app, etc., and each has different architectural considerations.