How rajasegar/awesome-micro-frontends works
Key Components
a. Main Architectural Components:
• Frontend Layer (Micro-Frontends)
• Integration Layer
• Backend Services
• Shared Resources
b. Common Patterns (based on the collected resources):
• Module Federation Pattern
• Composition Pattern
• Routing Pattern
• Communication Pattern
┌─────────────────────────────────────────────────────────┐
• Client Browser Layer │
• ┘
• ↓
┌─────────────────────────────────────────────────────────┐
• Micro-Frontend Layer │
• ┬───────────┬───────────┬───────────┬────────┤
• MF App 1 │ MF App 2 │ MF App 3 │ MF App 4 │ ... │
• ┴───────────┴───────────┴───────────┴────────┘
• ↓
┌─────────────────────────────────────────────────────────┐
• Integration Layer │
• ┬───────────┬───────────┬───────────┬────────┤
• Router │Orchestrator│ Shared │ Event │ │
• State │ Bus │ │
• ┴───────────┴───────────┴───────────┴────────┘
• ↓
┌─────────────────────────────────────────────────────────┐
• Backend Services │
• ┘
Important Elements to Highlight
a. Integration Patterns:
• Different composition strategies (Build-time, Run-time, Server-side)
• Communication patterns between micro-frontends
b. Cross-Cutting Concerns:
• Authentication/Authorization
• Shared styling
• State management
• Asset loading
Implementation Details
• Container Application structure
• Micro-frontend boundaries
• Shared dependencies
• Communication protocols
• Loading strategies
• State management approach