Module Federation, With Next.js and SSR
summary
Explains runtime module federation that lets independently deployed builds dynamically import chunks for Next.js SSR, shows a working setup using delegate modules and importDelegatedModule that runs on Node and the browser, demos a 60‑second single‑repo-to-production deploy and production reflection in 2–4 seconds, introduces a Medusa control plane for graphing versions and orchestrating rollouts, demos a Netlify Edge worker streaming SSR with federated remotes, and compares webpack to rspack (50k modules in ~3.7s; webpack 7.7s vs rspack 2.3s).
AI-written summary · about
chapters (10)
- 0:00Introduction and motivation
- 3:53What is Module Federation
- 7:25Basic configuration examples
- 10:12Advanced Federation concepts
- 13:20When to use Module Federation
- 17:52Next.js SSR and hot reloading
- 20:03Medusa control system demo
- 22:10Edge Federation with Netlify
- 23:56Future of Federation and RS Pack
- 28:36Q&A
