Monorepos vs. Polyrepos
Compare and contrast different repository strategies for managing multiple Micro Frontends and their shared code.
Repository Choices for MFEs
When building Micro Frontends, how you structure your code repositories is a crucial decision. It impacts development workflows, deployment, and team collaboration.
There are two primary strategies: Monorepos and Polyrepos. Let's explore each one and understand their implications for your federated applications.
Understanding Monorepos
A Monorepo (monolithic repository) is a single version-controlled repository that contains multiple distinct projects. These projects can be related or unrelated.
For Micro Frontends, this means all your host applications, remote applications, and shared libraries live in one place.