Summary
In this chapter, you learned how server-side composition can help us to bring together micro frontends already on the backend. Using server-side composition, we get the advantages of the web approach without much indirection and performance penalty. You’ve seen that many tools and frameworks exist to help us implement server-side composition swiftly, as well as a more complete example for implementing this pattern from scratch.
Server-side composition makes the most sense for information-driven web applications such as e-commerce websites, where fast response times and less usage of JavaScript are important. The complexity of the setup and the required infrastructure need to be considered before investing in the implementation of this pattern.
A potentially much simpler alternative is to use a single rendering server. This also has the advantage that data can still be distributed, but the rendering process is done on a single machine, leaving much more room for...