Using a dedicated rendering server
The key idea behind the server-side composition is to have a central template server that works in combination with multiple rendering servers. Consequently, this is essentially producing a composition of multiple independent rendering servers into a single website. A natural question to ask is why we need multiple servers and what advantages and disadvantages we would have if only a single server is used.
Starting with the basics a single rendering server is a lot less infrastructure to operate – and pay for. With the rendering process in the hands of a single server, we also get a lot less internal network traffic. Finally, sharing state or optimizing rendering output is a lot simpler than the HTML manipulation we’ve had to deal with earlier in this chapter.
On the downside, the freedom of technology for micro frontends will be drastically reduced in most cases. While a certain degree is still possible, a lot of constraints coming...