Micro frontend architecture advice

后端 未结 8 2299
隐瞒了意图╮
隐瞒了意图╮ 2020-12-30 00:57

We have several web applications that we wish to present under one single page application. We are looking for a micro-frontend architecture/framework to use. As we see it,

8条回答
  •  星月不相逢
    2020-12-30 01:56

    This topic is pretty old, but still, maybe someone will find it interesting to read the answer later because it's still a very good topic.

    This package you've posted in your question - https://github.com/single-spa/single-spa looks very good and we tried to work with it, however, it has too many framework-specific things, that makes onboarding for new engineers super difficult.

    I think first you need to choose the approach for the microfrontend composition of your application:

    • Build-time composition
    • Server-side composition
    • Client-side composition
    • Route composition

    I've tried to describe them with some useful links in the article https://medium.com/@danielostapenko/frontend-architecture-in-scale-for-large-organizations-593930ed10cd

    Also, I would really encourage you to look at the Module Federation feature provided by Webpack 5. It looks super promising and comfortable to work within the micro-frontends world.

提交回复
热议问题