DEV Community

Discussion on: Implementing micro-frontends – A path to evolve legacy codebases

Collapse
 
steveleve profile image
Steve Leve

Thank you very much for sharing the details of this journey. I've been studying the micro-frontend pattern for a while now and I'm always glad to see practical experience based examples.

What was happening on the server side while you implemented this pattern? I most often see BFF (backend for fontend) used with micro-frontend, did you do something similar when breaking your monolith?

Collapse
 
mbellagamba profile image
Mirco Bellagamba

In our case, we have a small team so applying BFF at 100% would have required to much maintenance effort. We decided to create a general purpose API for each micro front end (mobile apps will share the same API of the corresponding micro front end). However, refactoring the monolith to micro services on server side is something we are still evaluating, due to codebase complexity.

Collapse
 
steveleve profile image
Steve Leve

that sounds like a good compromize, you're at least creating an API for each front end, behind that you can work on your monolith as you need to but have a clear and concise API for the front end. Thanks for your answer.