DEV Community

Discussion on: Micro Frontends: a deep dive into the latest industry trend.

 
seanmclem profile image
Seanmclem

Why would you iframe 2 components from 2 separate frontends into a 3rd SPA frontend instead of just using 2 components in your SPA

Thread Thread
 
patricklai profile image
Patrick • Edited

In the video we go in depth about this... There are reasons but I think the host and I both feel the true benefits are harnessed in very niche cases and a good Components model can provide most if not all the benefits at this point in time.

As for the 2 iframe thing. Spotify is actually done like that, so it is currently being successfully used in a large scale production app that most people would say is a leader in the industry. It's also worth noting that some of the problems it solves is not technical but organisational. So even though from a computer science perspective it may seem a bit silly, but from certain organisation/management perspectives it might actually make alot of sense.

Thread Thread
 
seanmclem profile image
Seanmclem

Cool. Please describe where I can see Spotify doing this

Thread Thread
 
aregee profile image
Rahul Gaur

If you are still interested in learning about service oriented architecture for frontend I have written a post on this topic here