CodePark/ questions / Micro-frontends & monorepos
START PRACTICINGPRACTICE
Frontend question · Frontend system design › Micro-frontends & monorepos

A startup with one frontend team of six engineers wants faster builds and clearer ownership of features. What should you recommend?

A monorepo with feature packages, enforced module boundaries and build caching

A monorepo with feature packages, enforced module boundaries and build caching is the right choice. Cached, affected-only builds (rebuilding only what changed) fix the speed problem. Module boundaries fix ownership. "Runtime micro-frontends with Module Federation" is the tempting wrong answer. Micro-frontends solve the coordination problem between many teams. One team does not have that problem, so their runtime and operational costs buy nothing.