Static Site Generation (SSG) and Server-Side Rendering (SSR) are two popular techniques used in web development to create applications and websites. While SSG generates the website or application at build time, SSR creates the markup at runtime.
In Static Site Generation approach you have three main types of outputs - Static HTML.
As the name suggests, Static HTML output type renders the website or application as static HTML files. These static HTML files can be easily served by a web server such as Nginx, this makes the website very efficient to load.
However, the disadvantage of this approach is that it doesn't account for client-side routing and other issues.
On the other hand, when we use Dynamic HTML output type, the server-end generates HTML and also creates a data file for Web Pages. However, https://radelect.ir/ssr-relay-electronic/ of the disadvantages of this approach is that it requires increased server load for these extra JSON files, which can be costly in terms of page loading speed.
When it comes to React SSG, the server takes the static HTML output and wraps it with dynamic UI components, which enables server-side rendering and gives the same performance benefits as the static site generation but also maintains the dynamic functionality of Web Applications.
In static site regeneration you also have a different set of options - Web Pages.
When you use the updated static page type, during every request the server end creates an updated static HTML. However one of the main disadvantages of this approach is the server load consideration.
If you decide to go with the Static HTML and JSON output type type, then this means your server will have to regenerate both HTML and JSON files.
Static Site Generation (SSG) and Server-Side Rendering (SSR) are two popular techniques used in web development to create applications and websites. While SSG generates the website or application at build time, SSR creates the markup at runtime.
In Static Site Generation approach you have three main types of outputs - Static HTML.
As the name suggests, Static HTML output type renders the website or application as static HTML files. These static HTML files can be easily served by a web server such as Nginx, this makes the website very efficient to load.
However, the disadvantage of this approach is that it doesn't account for client-side routing and other issues.
On the other hand, when we use Dynamic HTML output type, the server-end generates HTML and also creates a data file for Web Pages. However, https://radelect.ir/ssr-relay-electronic/ of the disadvantages of this approach is that it requires increased server load for these extra JSON files, which can be costly in terms of page loading speed.
When it comes to React SSG, the server takes the static HTML output and wraps it with dynamic UI components, which enables server-side rendering and gives the same performance benefits as the static site generation but also maintains the dynamic functionality of Web Applications.
In static site regeneration you also have a different set of options - Web Pages.
When you use the updated static page type, during every request the server end creates an updated static HTML. However one of the main disadvantages of this approach is the server load consideration.
If you decide to go with the Static HTML and JSON output type type, then this means your server will have to regenerate both HTML and JSON files.
0 Comentários
0 Compartilhamentos
73 Visualizações
0 Anterior
