The Microfrontend Revolution: Using Webpack 5 Module Federation with Angular | Manfred Steyer

Поделиться
HTML-код
  • Опубликовано: 13 апр 2021
  • The implementation of microfrontends has so far been anything but easy. Since common frameworks and build tools did not even know this idea, you had to dig into the bag of tricks.
    Module Federation offered by Webpack 5 initiates a crucial change of direction here. It allows you to load separately compiled applications at runtime and to share libraries between them.
    In this session you will learn how you can use this mechanism to create microfrontends with Angular. In addition to the happy day scenarios, we also discuss pitfalls and approaches to avoid them. Furthermore, we take a look at possible alternatives.
    At the end of the session you have an overview of the topic and know how you can use Module Federation in your projects and what the consequences are.
    Speaker: Manfred Steyer
    😊 Come, join us at the next International JavaScript Conference | javascript-conference.com/​
    👉 Follow us on Twitter | / javascriptcon​
    👍 Like us on Facebook | / javascriptcon
  • НаукаНаука

Комментарии • 25

  • @charlyr2678
    @charlyr2678 2 года назад

    Excelent video! thank you very much.

  • @4lm0std0n3
    @4lm0std0n3 3 года назад +4

    this video is the most beautiful thing I've seen this year. Thanks for explaining module federation in angular

  • @vsh-torch
    @vsh-torch Год назад

    Very good explanation. Patience is a Gift. Agree :)

  • @daviddonadze221
    @daviddonadze221 2 года назад

    Thank you so much.

  • @nagakrushnay4254
    @nagakrushnay4254 2 года назад

    Nice explanation 👏

  • @marcosalpereira
    @marcosalpereira Год назад

    Thank you for sharing

  • @BenRacicot
    @BenRacicot 3 года назад +2

    What a great explanation.
    Can we get references for the first Q/A? 41:06
    "The Angular team gaurantees component compiled with version N still works with version N+1"

  • @rhinavlad
    @rhinavlad Год назад +2

    Great explanation @Manfred. Is there any example of standalone Angular components which are rendered on the same route? I only found one component per route, but what if we have case when we want to render multiple MFE-s which are actually standalone components - but on the same route?

  • @09marhen
    @09marhen 8 месяцев назад

    Great @Manfred. Is it possible resilient header and footer on shell, just call loadChildren with another and header and footer default for all?

  • @stevenrankin9056
    @stevenrankin9056 Год назад

    I am interested in using module federation for a new project, however I am struggling with the idea of web components and how they would be used or fit in conjunction with module federation. I am pretty new to the UI space having been a backend developer for pretty much all my years.
    If I had a shell app, I could import a child web component (or even an entire app) by importing the web component js from its deployed path.
    But I could also do the same with module federation and webpack?
    Could someone help me understand why one would use both, or would you pick one solution, or do they work together? I am finding it hard to conceptually differentiate between the two. Ideally I want to be able to compose some MFEs with in shell/host app, with apps built by other teams.

  • @Vinod2451
    @Vinod2451 3 года назад +1

    Can you please explain more about public path and assets sharing

  • @emanuelcassimiro8299
    @emanuelcassimiro8299 2 года назад

    How does it works for production.
    For production we need to set other urls besides localhost. Is there any way of doing this? Because we need to build the application, depoy it to test, and then move it to production, if we hard code the urls it will break

  • @kamalshaik1266
    @kamalshaik1266 3 года назад

    How to transfer data between diffent projects in module federation angular projects??

  • @eliasalvest.i.646
    @eliasalvest.i.646 2 года назад +1

    Gratidão.

  • @maneeshthareja7405
    @maneeshthareja7405 2 года назад +3

    I am looking some help to create an architecture where we can migrate the existing Angular 11 monolith application into small independent self compiled build with the help of moudle federation and load those remote apps on demand at run time. In this migration we want to provide scalabilty and high availability for our end users hence we are thinking to deploy 4 instances of Shell Module and 4 instances of each remote module running on different containers.
    Whenever end user will try to load our app then with the help of load balancer it will load the available shell module and then shell app will load the remote modules running on different containers. Now the question here is that if we have multiple instances of remote modules which are running on different conatiners then can we put another load balancer between shell module app and remote module app so that we can load remote modules as well as per their availability?
    It would be really help if somebody has done that in past or interested to do the same with me. Thanks in advance for showing interest on this interesting idea.
    Thanks
    Maneesh

    • @claudit13
      @claudit13 Год назад

      did you able to accomplish this?

  • @RanjithKumar-qj9mn
    @RanjithKumar-qj9mn Год назад

    loadManifest for nested microservice front end is not loading ex shell loadsmanifest --->mfe1 loadsmanifest ---->mfe2 but mfe1 cannot bootstrap manifest file

  • @rajathvenkatesh3253
    @rajathvenkatesh3253 2 года назад

    I am looking to share services and make them as singletons to be used between my shell and micro front ends in angular.
    I use angular architects module federation!
    I have multi repo MFEs so NX share libraries would not be a good option.
    Any advise?

    • @tonysonu06
      @tonysonu06 Год назад

      Hello, have you got a chance to implement this ?

  • @pradeepgorai5885
    @pradeepgorai5885 2 года назад +1

    Could you please share video tutorial in module federation where react as MF and angular as container

  • @Vinod2451
    @Vinod2451 3 года назад +2

    How do we load assets which were used in remote module to shell?

    • @purnimakamble9481
      @purnimakamble9481 2 года назад

      Hi please share solution , if you got the solution for the same

  • @Chillouttrance123
    @Chillouttrance123 2 года назад +1

    All your videos contains same stuff, nothing different. There are more issues like how to load assets of microfrontend in shell application. No update of those stuff

    • @purnimakamble9481
      @purnimakamble9481 2 года назад

      Hi please share solution if you got the answer, i am facing same issue