DEV Community

Discussion on: What are micro frontends?

Collapse
 
dastasoft profile image
dastasoft

One additional thing is that any solution other than iframes will make you change the project. Many companies can adopt a new architecture if the product is new and you are in the planning phase, but if you have a lot of projects already done, frameworks like single-spa don't fit at all.

So my bet is that if any company starts migrating to this architecture they will choose iframes because they can combine existing projects with new ones more easily.

I will keep an eye out for changes to the Webpack Module Federation as it looks very promising.

Thanks for sharing!

Collapse
 
vicnovais profile image
Victor Novais

You are definitely right! Iframe is commonly picked to help companies migrate their monolithic apps.

Collapse
 
dgreene1 profile image
Dan Greene

they can combine existing projects with new ones more easily

Single-spa can bring together many UI frameworks (not just SPAs). Check out their website, it’s pretty impressive.

And unlike iframes, you can still test it really easily. Iframes have all kinds of challenges in UI testing.

Collapse
 
dastasoft profile image
dastasoft

Yes, you can combine them, but you have to adapt existing projects, that's the real problem with legacy projects.