DEV Community

Discussion on: Micro-Frontends FAQs

Collapse
 
juniordevforlife profile image
Jason F • Edited

Is there ever a benefit to a small team using the micro-frontend architecture? Why is sharing global state bad?

Collapse
 
infoxicator profile image
Ruben Casas

There could be some benefit, for example, if each dev works independently and is responsible for a section of the application, then micro-frontends could help scale and improve developer speed, however, the benefits are better when dealing with large scale apps and multiple teams.

Regarding state, the problem is that if you have an abstraction that provides a shared state across micro-frontends, you introduce a centralised place that you have to update in order to be usable by other micro-frontends, in this case it creates coupling and you lose the benefits of independent deployments.