How manfredsteyer/multi-framework-micro-frontend works
Main Components
a. Shell Application (Host)
• As the central component
• Routing configuration
• Module Federation configuration
b. Micro Frontends
• 5 MFEs (mfe1, mfe2, mfe3, mfe4-react, shell)
• Their key components (A and B components for Angular MFEs)
Architectural Layers
a. Client Browser Layer
• How the shell application is loaded first
• Dynamic loading of MFEs
b. Module Federation Layer
• Webpack configuration connections
• Remote/host relationship
• Shared dependencies
c. Component Layer
• Web Components wrapper
• Routing relationships
Key Elements to Highlight
a. Runtime Integration
• Dynamic module loading paths
• Lazy loading boundaries
• Shared module boundaries
b. Communication Patterns
• Inter-MFE communication
• Event broadcasting channels
• Shared state management if any
[Browser]
• ▼
[Shell Application (Host)] ←→ [Module Federation Plugin]
• ┬─────────┼─────────┬──────────┐
• ▼ ▼ ▼ ▼ ▼
[MFE1 Angular] [MFE2 Angular] [MFE3 Angular] [MFE4 React] [Other MFEs]
• ▼ ▼ ▼ ▼
[Components] [Components] [Components] [Components]
Additional Details
• Webpack configuration relationships
• Shared library space
• Routing configuration
• Component registry
• Development ports (4200 for shell, etc.)
• Build/deployment pipeline
Technical Specifications to Note
• Angular versions and configurations
• React integration points
• Web Components boundary
• Module Federation plugin configuration
• Shared dependencies management