Micro-Frontends Antipatterns
summary
Micro‑frontends start in 2015, gain traction by 2019 and by 2021 reveal recurring failures and fixes: confusing microfrontends with shared UI components causes over‑granularity; using module federation (Webpack 5) with bi‑directional sharing creates tight coupling so prefer unidirectional data flow; loading legacy editors into an iframe anti‑corruption layer avoids runtime clashes; global shared state becomes global state = org coupling and pub/sub or event emitters reduce coordination; API fan‑out from many fragments creates cascade costs and needs boundary rework or consolidated endpoints.
AI-written summary · about
