> How do server-side only things will happen then?
By calling a service from JavaScript. What you're probably getting at is, how do I dynamically generate web pages?
That's different. As a web developer you're probably used to generating the presentation tier on the server at least some of the time. You query a database and spit out some HTML. The so-called "static" approach here means:
1. Generate more stuff up front with build tools that you previously would do at request time. For example, why write server code to generate and cache a blog on every request when you can just build it whenever you write a new blog post?
2. In many cases this greatly narrows down the dynamic stuff that might need to happen. See if you can use JavaScript to fill in the rest. Instead of inserting that ad banner with server code, write a JavaScript function to fetch it from a service (like Lambda) and update the DOM.
3. You can be as dynamic as you want to be by expanding on what you do with JavaScript and services. This is sometimes called writing a single page app. It's maybe more complicated but on the plus side, it's how you write mobile apps and you may be able to share the same backend.
By calling a service from JavaScript. What you're probably getting at is, how do I dynamically generate web pages?
That's different. As a web developer you're probably used to generating the presentation tier on the server at least some of the time. You query a database and spit out some HTML. The so-called "static" approach here means:
1. Generate more stuff up front with build tools that you previously would do at request time. For example, why write server code to generate and cache a blog on every request when you can just build it whenever you write a new blog post?
2. In many cases this greatly narrows down the dynamic stuff that might need to happen. See if you can use JavaScript to fill in the rest. Instead of inserting that ad banner with server code, write a JavaScript function to fetch it from a service (like Lambda) and update the DOM.
3. You can be as dynamic as you want to be by expanding on what you do with JavaScript and services. This is sometimes called writing a single page app. It's maybe more complicated but on the plus side, it's how you write mobile apps and you may be able to share the same backend.