Breaking the Monolith: A Comprehensive Guide to Code Splitting
summary
Six concrete ways to split a monolith with tradeoffs and triggers: iframe embeds for simple modules, proxy (nginx) for framework migrations at the cost of performance, web components for a cross‑platform UI kit, npm packages as an easy first step but with harder debugging and release flow, single-spa for per‑URL apps and lifecycle control, and webpack 5 module federation to share modules and cache libraries so React isn’t loaded N times. Triggers to break are long CI (eg 6 hour builds), rising complexity, onboarding limited to seniors, or more than five active developers.
AI-written summary · about
chapters (20)
- 0:00intro
- 0:22preamble
- 0:38who is aleksandr
- 1:04speech plan
- 1:36there are 2 approaches
- 2:53monolith - is it bad?
- 6:02when should a monolith be broken?
- 7:34iframe
- 8:08nginx or another proxy server
- 9:24web components
- 10:44npm
- 12:47microfrontends
- 13:19single-spa
- 14:13webpack 5 module federation
- 14:54iframe
- 16:28proxy server
- 16:50web components
- 17:10npm
- 17:22single spa
- 17:54webpack 5 module federation
related talks
32mFrom Monolith to Micro Frontend
24mScaling Frontend Development using Micro-frontends
41mMicro-frontends: the golden circle
25mBreak up Monoliths and lay them to REST!
22mBreak Up With Your Frontend Monolith
15mBreaking Down Monoliths: Microfrontend Architecture with React
36mMicrofrontends: Scalability Savior or Unmanageable Maze?
36mMicro Frontends - Breaking Monoliths
