System Design · Senior · Question 25 of 75
What ways of composing micro-frontends exist?
- ✓Correct answer: At build time, on the server and at runtime in the browser
- 2Only via iframe - there are no other ways
- 3Only via a shared npm package built into one bundle
Explanation
Build-time composition is simple but rules out independent deploys. Server-side composition assembles HTML from fragments. Runtime composition gives independent releases at the cost of complexity and dependency coordination. iframes give isolation but are poor for UX and SEO.