All posts

Frontend architecture in the era of micro frontends; what is worth the complexity

Published · 2 min read

Since I’ve worked on a few projects that used micro frontends, and I’ve seen both the upsides and the downsides pretty clearly, I decided to document my thoughts about this topic here.

First of all, I should say the idea sounds good on paper, splitting a large frontend into smaller, independent pieces so different teams can work without stepping on each other. But in practice, it often adds complexity that isn’t always justified.

One of the first times I worked with micro frontends was on a fairly large internal tool. Different teams owned different parts of the application, and they wanted to release their sections independently. At the beginning, it felt like a good fit. We used Module Federation to load different parts of the app at runtime. Each team could deploy their piece without touching the main application.

However, things got messy once we started sharing components and state across these independent pieces. We ended up creating a shared UI library that was published as an npm package. Every micro frontend would install the same version of this library. This helped keep the look and feel consistent, but it also meant that whenever we updated the shared library, we had to coordinate releases across multiple repositories. A small change in a button component could suddenly require multiple teams to update and test their parts.

Another challenge was handling shared dependencies. We tried to share as many libraries as possible (like some utility packages) to keep the bundle size reasonable. But version mismatches happened more often than we expected. One team would upgrade a library for a new feature, and suddenly another part of the app would break. We eventually had to put strict rules around which versions could be shared and create a clear process for updating them.

On a different project, we took a simpler approach. Instead of going full micro frontends with runtime loading, we used a single repository with multiple packages. Each “micro frontend” was still a separate package, but everything was built and deployed together. This gave us most of the team independence we wanted without the runtime complexity of loading separate applications. Communication between parts was much simpler because we could just import functions and components directly.

What I believe is that micro frontends tend to make sense when you have clear team boundaries and truly independent features. If the different parts of the app don’t need to share a lot of state or UI components, the overhead is manageable. But once you start needing tight integration, shared authentication, consistent navigation, or complex data flow, the complexity can quickly outweigh the benefits.

For most projects I’ve seen, the real value comes from having a strong shared design system and clear module boundaries, rather than splitting everything into separate runtime applications. Micro frontends can be useful, but they’re rarely the first solution I reach for. I usually try to solve the problem with better modular structure inside a single application first, and only move toward micro frontends when team autonomy and independent deployments become real bottlenecks.

So the question isn’t whether micro frontends are good or bad. It’s whether the added complexity actually solves a real problem your team is facing. If it does, and you’re willing to invest in the extra tooling and processes, it can work well. If not, simpler modular approaches inside a single frontend often deliver better results with less pain.