Manfred Steyer
Micro Frontends with Module Federation: Why and How?
#1about 3 minutes
Software architecture is about evaluating consequences
Software architecture is not about finding the single best solution, but about evaluating the consequences of different approaches for your specific situation.
#2about 1 minute
Understanding the micro frontend architectural style
Micro frontends break down a large application into smaller, independently developed and deployed parts that are integrated into a common shell at runtime.
#3about 5 minutes
Exploring real-world use cases for micro frontends
Case studies from healthcare, payroll, and banking illustrate how large organizations use micro frontends to manage complexity across different business domains.
#4about 3 minutes
The primary reasons for adopting micro frontends
The main drivers for adopting micro frontends are scaling development across multiple teams, enabling long-term technology evolution, and quickly adapting to changing requirements.
#5about 3 minutes
Common challenges and implementation drawbacks
Implementing micro frontends introduces challenges such as the effort to build an orchestration layer, difficulties in sharing code at runtime, and maintaining a consistent user experience.
#6about 5 minutes
How Module Federation enables runtime integration
Module Federation, a Webpack 5 feature, allows a host application to dynamically load code from a separately compiled remote application, solving a key challenge for micro frontends.
#7about 2 minutes
Sharing libraries and handling version conflicts
Module Federation simplifies sharing common libraries like Angular or React to reduce bundle sizes and includes built-in strategies to manage potential version mismatches between micro frontends.
#8about 5 minutes
Live demo: Initial setup with an Angular plugin
A live demonstration shows how to use an Angular CLI plugin to quickly add the necessary builders and initial Webpack configuration for Module Federation to a project.
#9about 6 minutes
Live demo: Configuring the host and remote
The Webpack configuration is adjusted to expose a module from the remote micro frontend and define the remote's URL in the host shell application for lazy loading.
#10about 4 minutes
Implementing dynamic federation at runtime
The implementation is refactored from static federation to dynamic federation, allowing the application to determine which micro frontends to load at runtime from a backend configuration.
#11about 4 minutes
Combining Module Federation with Web Components
Using Web Components with Module Federation allows for mixing different frameworks and versions in one application, but requires careful handling to avoid conflicts.
#12about 5 minutes
Conclusion and key takeaways on micro frontends
Micro frontends are primarily a solution for scaling teams and domains, and while they introduce runtime dependencies, Module Federation provides a straightforward implementation path.
Related jobs
Jobs that call for the skills explored in this talk.
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
Douglas GmbH
Düsseldorf, Germany
Intermediate
Senior
TypeScript
React
MARKT-PILOT GmbH
Stuttgart, Germany
Remote
€75-90K
Senior
Java
TypeScript
+1
Matching moments
11:10 MIN
The only frontend stack that truly matters
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
04:02 MIN
How a broken frontend culture impacts the web
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
09:00 MIN
Navigating the growing complexity of modern CSS
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
03:16 MIN
Improving the developer feedback loop with specialized tools
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
05:28 MIN
The origin story of the Polypane developer browser
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
Featured Partners
Related Videos
Micro-Frontends with Module Federation: Beyond the Basics
Manfred Steyer
Advanced Micro Frontends: Multi-Version and Multi-Framework Scenarios
Manfred Steyer
Native Federation: The Future of Micro Frontends and Plugin-Systems in Angular
Manfred Steyer
The Microfrontend Revolution- Using Webpack 5 Module Federation with Angular
Manfred Steyer
Stairway to Heaven - Scaling Frontends the Right Way
Florian Rappl
Front-End Micro Apps
Serg Hospodarets
Multiple Ships to the Island - Micro Frontends & Island Architectures
Florian Rappl
Microfrontends at Scale
Josh Goldberg
Related Articles
View all articles


.gif?w=240&auto=compress,format)
From learning to earning
Jobs that call for the skills explored in this talk.


Visonum GmbH
Remote
Junior
Intermediate
React
Redux
TypeScript

Confideck GmbH
Vienna, Austria
Remote
Intermediate
Senior
Node.js
MongoDB
TypeScript

Paradigma Digital
Barcelona, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Gijón, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
A Coruña, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Municipality of San Sebastian, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Pamplona, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Municipality of Bilbao, Spain
API
React
Svelte
Vue.js
WebPack
+3