Static Site vs. HTML in the Backend


Another way to save money on compute and memory resources, as well as network bandwidth costs, is to do client-side rendering. This means that the main data coming from your web servers to the user’s browser is NOT a bunch of bloated and often redundant HTML but instead a more slimed down JSON. Then, using something like ReactJS, the user’s browser uses their CPU and memory to take the JSON and render it as HTML.

Generating the HTML server side is not a massive computational challenge, nor an exceptional amount of extra data to send over the network. But after rendering thousands of pages for millions of users, it will add up in a big way.