Hey jack, amazing content! These concepts are too tough for beginners though 😂 can you give simple example of what basically microfrontend is
@jherr3 жыл бұрын
A micro-frontend is a shared piece of UI code at (using the Atomic UI leveling) the "organism" level. Meaning that it's a self-contained UI that manages its own state and interaction with the customer. Though it can also interact with the host container.
@omarkarim92983 жыл бұрын
This channel isn’t exactly for beginners!
@Brunoenribeiro3 жыл бұрын
His past videos dive deep in the concept :)
@CFXTBogard3 жыл бұрын
Jack's playlist answers all your questions regarding that.
@PeerReynders3 жыл бұрын
"Micro frontends is an approach where a web application is broken up by its pages and features, with each feature being owned end-to-end by a single [microservice] team." (Thoughtworks 2016 Technology Radar) What this video describes is using module federation as a cross-framework reuse mechanism - which only has some relevance to "SPA/PWA Composition" micro frontends. From: code.talks 2019, "Patterns for Micro Frontends" by Erik Dörnenburg. Anti Pattern: Cross-service Data Loading - An SPA/PWA that loads one monolithic JS bundle and then queries each service separately (or through an API gateway). Issue: The goal with microservices is to have autonomous teams which maintain loosely coupled services. Ideally each micro service has full, autonomous control over the client facing representation of the service. A monolithic frontend makes it impossible for a service's client facing representation to be updated independently of everything else. Fix: Patterns for Micro Frontends: 1. Web Approach - Each microservice has it's own page so each page is a micro frontend. 2. Server-Side Composition - The micro frontend for a microservice is injected via a server side include (SSI) or edge side include (ESI). Example: "A High-Performance Solution to Microservices UI Composition" by Arif Wider & Alexey Gravanov regarding the AutoScout24 Project Tatsu. 3. Client-side Composition - The microservice renders an HTML partial/fragment which is returned to the browser to be spliced into the DOM. 4. Client-side Rendering - The microservice returns JSON and JS to render it to the browser which uses both to complete the render into a static page. 5. SPA/PWA Composition - Here the microservice specific JSON/JS is rendered by an SPA/PWA instead of a static page. This differs from the "Cross-service Data Loading" anti-pattern because each service supplies the JS responsible for rendering the service's JSON - i.e. the rendering JS is not included in SPA/PWA bundle (doesn't matter if the bundle is code split).
@mccall71222 жыл бұрын
Holy crap. This was one of those rare times where a video is just great all the way through. No BS, just pure content. High quality content.
@amansaxena44463 жыл бұрын
Absolutely GOLD content for free available and just 31k views WHY? i know the topics which he covers are quite advanced and one might not able to catch up but still pls share this channel a lot could be learned from Sr. Devs like him. Lots of love from India
@claudioseccia93803 жыл бұрын
This is awesome. I'm currently integrating an application with a frontend bus using iFrames, due to company specifications. I think this solution is a game changer. Thanks (also for all the other videos)!
@jherr3 жыл бұрын
This solution is very much a game changer.
@Astral_Dusk9 ай бұрын
Just got tripped up on an interview with this term, absolutely essential to know. I've always used the "modular development" umbrella term for both components (that can make up a micro frontend) and micro frontends (that make up a complete application frontend).
@nikhilprabhakar7116 Жыл бұрын
Thanks!
@jakhongirabdukhamidov27962 жыл бұрын
Phenomenal, I had spent crazy time tryna figure this out and even took a Udemy course which was outdated, but this video met all my needs in just 10 mins. Huge respect
@lixiao28822 жыл бұрын
Thanks Jack! Your 2-hour tutorial posted by freecodecamp gave me confidence in navigating our switch from monolith to micro-FEs. Coffee on me!
@jherr2 жыл бұрын
Thank you so much!
@abdullahfurkanozbek755820 күн бұрын
Great explanation, I did know some stuff and how it works. But it is really great to see how we can setup these nested projects.Great video.
@theworld59372 жыл бұрын
This guy is the best developer instructor I have ever seen.
@Dev-Phantom7 ай бұрын
Best video for a basic understanding of micro frontends.
@SwiftySanders3 жыл бұрын
Ok you sold me on this with this video. I need to schedule some time to study this each week.
@garywaddell63092 жыл бұрын
Hey Jack! I searched KZbin for Module Federation with React and saw your posts, have never seen them before. I purchased a Udemy course on micro front ends that drags on so long for far too many hours and is very soon outdated, but your videos are so direct and to the point, no BS fluff, really like your style and explanation. Thanks for sharing this info, it’s super helpful, glad to start watching more of your vids 🙌🏻
@ram-bk4mu3 жыл бұрын
Great video quality!! You are one of the best programmers that I have found on the KZbin :)
@marcelinoborges5088 Жыл бұрын
I have never this explained so simple like you did. Great video!
@turokII3 жыл бұрын
Great content Jack, thank you! I’m currently importing several npm modules made with TSDX, but will be giving this approach a try
@fagundezantony23583 жыл бұрын
Hi Myles!! there is a lot of us, are you using plain rollupjs?? PD: I'm in the same situation. PD: sorry for my bad English 😅😅
@ngochunglongnguyen4523 Жыл бұрын
Awesome demonstration 🎉 and cool concept. It's really useful when the company wants to move gradually from one framwork to another.
@TheArkadyuti7 ай бұрын
Thank you sir, I have an upcoming HLD meeting in next 2 hr and I really needed this
@clouatre30343 жыл бұрын
Man, this rules. THANK YOU! Game changer for a lot of my future work.
@10x-developer Жыл бұрын
New stuff, good stuff, and also web presented greetings from Lithuania 🇱🇹
@shubhasingh75832 жыл бұрын
10 mins of great content, thank you for all your effort.
@rodrigomoura21082 жыл бұрын
This channel is the gold man. I'm impressed with the quantity and quality of our videos. Thank you for sharing.
@niloneregato50973 жыл бұрын
Great job Jack. Nice tool!
@lechos52456 ай бұрын
Wow, absolutely fantastic!
@ralphlargo9728 Жыл бұрын
You saved my job again Jack, thank you 🎉
@yusufansari76182 жыл бұрын
You are the gem jack!!!
@Luxcium Жыл бұрын
I did an online course on Udemy it was amazing but you sum all that in 10 minutes… I mean it would all have been Chinese 🇹🇼 to me [sic’] without the course 😅but at the same time it is just easier to understand with your explanation I wish I could have got that overview earlier in my learning process 🎉 🎉🎉 🧧🐰🇨🇦🇻🇳 Happy new year 🇨🇳🇭🇰 🥮🐇🧨🏮
@dattugaade3 жыл бұрын
Awesome video. Explained in an easy way with simple example. Thanks
@RobertoGPuentesDiaz2 жыл бұрын
Great Video Tutorial. Cheers from Argentina
@aileenchan37412 жыл бұрын
Woah, so much information here! Will do some research on micro-frontends! Thank you! : D
@AlexCrudu3 жыл бұрын
HOW DID I NOT STUMBLE ON YOU BEFORE! Amazing content. Thanks!
@jherr3 жыл бұрын
Blame KZbin. 😂
@LahiruKurukulasuriya3 жыл бұрын
I became a fan of you since I watched MFEs using single spa video
@trent3589Ай бұрын
Great video mate
@Hitotsuday2 жыл бұрын
Great explanation, wish I had this back in 2018. I tried to sell the idea of micro-frontend to my team, but they didn't understand it; didn't help that I only had 3 months of experience
@yassinebouchoucha3 жыл бұрын
cross Framework App ! that's what we 've been waiting for.
@matts88573 жыл бұрын
Awesome stuff as usual Jack!
@franklinendaya99063 жыл бұрын
Great intro on microfrontends! Can you also cover topics on how to share states between microfrontends in the future?
@miguelship3 Жыл бұрын
This is next level of coolness man!!
@theprodev3 жыл бұрын
Amazing content. So great to see this, and the cross framework example was spot on. Hoping to put these concepts into work soon.
@DevAditya Жыл бұрын
😳😳😳 Shocked! It's amazing BTW 😍
@saikun02932 жыл бұрын
This video is a gem! Thanks for the content
@DaggieBlanqx9 ай бұрын
This video is on point! Thank you!
@PiyushChauhan20113 жыл бұрын
Amazing, my cents for the book already
@chrissullivan3313 жыл бұрын
Thanks for the tutorial Jack, informative as always.
@alexandrkositsky7698 Жыл бұрын
Big thanks for video 🔥 Very clear explanation
@clebsgaming92 Жыл бұрын
Amazing content, thank you very much Jack!
@alinawaz40342 жыл бұрын
Amazing video, Very good teaching style
@mrc-kit839 ай бұрын
Useful and well explaned. Cheers!
@Drvo32 жыл бұрын
This is extremely good content. Finally something worth to watch. Great explanation and clarity of the topics.
@mdminhazahamedrifat3282 Жыл бұрын
Such a wonderful video. Thumbs up
@ParthaSarathylink Жыл бұрын
Great explanation
@kamertonaudiophileplayer8473 жыл бұрын
I use a micro frontend technology since 2000. It is certainly cool technology and I created dozen apps on it. I am glad that more people started using it now.
@danielpuerta23863 жыл бұрын
Really, really amazing explanation!! 🎉
@hamburger-fries3 жыл бұрын
Loving this content!
@matthew11063 жыл бұрын
Gold! This is so valuable. Thank you for sharing you knowledge.
@matthew11063 жыл бұрын
Jack my only question here is for the host/shell application can we handle ALL routing at that level for the remotes?
@jherr3 жыл бұрын
Yeah.There is a pattern called Full Site Federation that allows you to wire an entire site together using Module Federation. It's pretty intense: kzbin.info/www/bejne/jWG1k6V3j9mdbas
@matthew11063 жыл бұрын
@@jherr thanks!
@albo4life60822 жыл бұрын
U are so amazing. I love people that put their all into things they love 💯💯
@TheDorac13 жыл бұрын
This was amazing! Thank you.
@aseep01093 жыл бұрын
WOOWW it's greatt!!! thx Jack!!!!!
@kevinrobertandrews3 жыл бұрын
Hey Jack, cool video! I've never considered building microfrontends. Could you please describe some real-world use cases for this type of architecture?
@jherr3 жыл бұрын
Sure. Dashboard widgets are micro-frontends. Shared header/footers. Cart UIs in eCommerce applications. Those are just a few thoughts. Basically anywhere you want multiple teams to contribute to a single page.
@stevenrankin90562 жыл бұрын
@@jherr Getting confused by using module federation to build MFEs versus Web Components. Do you have any content which addresses this? Thx
@jherr2 жыл бұрын
@@stevenrankin9056 Web Components are a perfectly good MFE architecture to use. Really just depends on your requirements and the level of integration you want between the host application and the MFE.
@sagarreddy74613 жыл бұрын
It's amazing, zing zing jack. Thanks!
@kettenbach3 жыл бұрын
Another banger Jack my Boy. Great content. Thanks for sharing. How can we work webassembly and rust in to this 🤔
@jherr3 жыл бұрын
Challenge accepted. 😂
@aminomar78903 жыл бұрын
Easy peasy as you say :) have you a plan to talk about your long experience with different programming languages, and the best programming language from your point of view, cons and pros, what about functional programming language and its important, ….etc.
@jherr3 жыл бұрын
I hadn't really planned on it. I'll keep it in mind tho.
@SebastianVuye3 жыл бұрын
Great explanation, thanks!
@kaizhu17023 жыл бұрын
Great video, Jack. I just curious does all the apps have to run Webpack the same time to make this happen?
@jherr3 жыл бұрын
They all have to be bundled by Webpack 5. There is a rollup module federation plugin, but I think it can only consume federated modules.
@JoanJimenez3 жыл бұрын
This is brilliant.
@kamilkuriata17472 жыл бұрын
Great explanation :)
@zacharywagner35193 жыл бұрын
Jack thank you for the great vids! Some of the best module federation content I can find. Any plans on making create-mf-app more production-ready? Also, would love to get some details on your VS Code setup. Cheers!
@jherr3 жыл бұрын
create-mf-app is meant to just create POC applications so that you can then simulate enough of your production setup to test whether using Module Federation makes sense, and how you would architect it. We are adding some very basic stuff to it, like .gitignores, but probably not much past that.
@dars18163 жыл бұрын
it's like magic wtf
@Micsc Жыл бұрын
Thanks, I have to dive deeper into this stuff.
@fadiliabdeljalil7702 жыл бұрын
Great tutorial, Thanks
@flaviuivanciuc3859 Жыл бұрын
Hey Jack! Whats the plugin that you're using for 'cd' command to show you the directories to which you want to navigate? Thank you! Btw, great content!
@daytcg31862 жыл бұрын
Thank you It’s easy to be understood,
@helloworld27402 жыл бұрын
Just too awesome channel
@KriztianEinsamkeit2 жыл бұрын
Regardless of the content, which is excellent by the way, your explaining skills are exceptional. Thank you very much for taking the time to explain us this topic. Certainly I subscribe, of course I subscribe.
@jr-hp7er3 жыл бұрын
Wow, Jack! Amazing ❤️🙌
@GiriJeedigunta Жыл бұрын
Hey Jack, This is fantastic. Learned a lot about micro-frontends in 11 mins that any other source /course. Would you have an example with NX instead of yarn workspaces :)
@afrikanonyma Жыл бұрын
You just got a new subscriber ... great !
@alisanad90483 жыл бұрын
Thank you, you're amazing!
@RavindraSingh-lp9pl7 ай бұрын
plz create more such advanced topics
@natanloterio2 жыл бұрын
That was so cool, thank you
@joaomelo66423 жыл бұрын
amazing. great content! do you have any video that explores this tech in depth? like how it this magic works.
@jherr3 жыл бұрын
The videos in the playlist are definitely slower paced and go into more detail. And zack Jackson has some really deep videos on the internals.
@haquocviet92532 жыл бұрын
wow, so amazing. thanks your for open my eyes
@BetterDayEachDay3 жыл бұрын
This is freakin awesome
@sourabhvaishnav82352 жыл бұрын
He is the JACK of ALL.
@DuyTran-ss4lu3 жыл бұрын
Super awesome. Thanks
@abhisheksharma97963 жыл бұрын
Great video Jack. I have been meaning to implement this for a long time as our Frontend has ton of services. One question though: how do these apps share state, e.g Authentication states and stuff
@jherr3 жыл бұрын
You can check the playlist and the book, there are a ton of options there. Anything from simply subscribe to some RxJS observable hung off of window, all the way through state managers like Redux, Jotai, etc. They all work.
@MilMike8 ай бұрын
Hi, awesome content. I have a question. You have that micro frontend as a federated module. Is it also considered a "micro frontend" if I create a package and publish it to npm (or in my case to a private registry like verdaccio). So then I can install that micro frontend using npm. It looks just like a normal component which is sitting in npm.. which basically is. I am just starting with micro frontends and I am not sure about it. Any thoughts?
@jherr8 ай бұрын
The term micro-frontend doesn't AFAIK have a specific technical definition. If you have a self-contained component that manages all of its state and talks to the backend if it needs to and presents a complete user experience, then to me that's a micro-frontend.
@RobertoFabrizi3 жыл бұрын
Amazing Jack, I was wondering if you could do a deep dive on MFE using module federation, for example how the composition is made, how to handle one portion of the page being offline (is it called circuit break in this case too?), how to propagate for example a JWT with the currently logged user for auth handling, like which buttons are grayed out etc. I saw some material accross multiple sources, but they pale in comparison to your clarity and quality...
@jherr3 жыл бұрын
Many of those questions are answered in the videos in the Module Federation playlist: kzbin.info/aero/PLNqp92_EXZBLr7p7hn6IYa1YPNs4yJ1t1 Also, a federated module cannot be "offline", that's a common misconception. A federated module is just JavaScript code. So it should be deployed on an asset store (e.g. S3) just as you would any JavaScript module. So in order for it to be "down" S3 would need to be down. That being said, if you are super worried about that there are error boundaries and other mechanisms you can use.
@RobertoFabrizi3 жыл бұрын
@@jherr Awesome, thank you so much and I cannot wait for the next content
@davidk.6834 Жыл бұрын
Sick transition 😂
@mambatukaa2 жыл бұрын
Hey Jack, thanks. I have a one question. How that terminal suggestion work on terminal?
@jherr2 жыл бұрын
I use Fig and oh-my-zsh.
@mambatukaa2 жыл бұрын
@@jherr thanks 😀
@thomasmeerpohl24382 жыл бұрын
Hey Jack, thank you for the video. Is this only possible with webpack or do other bundlers also support module federation?
@jherr2 жыл бұрын
No other bundlers officially support Module Federation currently AFAIK.
@Kekfalar3 жыл бұрын
Hey Jack, first let me thank you for this awesome channel 👏. So in Micro Frontends, components usually need to talk to each other, for example we add an item to a cart which is a micro frontend react app and the cart itself is written in another microphone app in Vue, how can we send the info over to the cart or how to tell it to fetch the new data?
@jherr3 жыл бұрын
Really it's just JavaScript on the page, right? So pretty much any communications mechanism that the Micro-FEs can share will work. You could use custom-events fired against window if you want something super lightweight. You could also share another federated module that has an agnostic state manager (e.g. RxJS). Really just depends on how heavyweight you want the solution. For my money, less state sharing is better. Also, you can pass props down to MFEs. I didn't do it here so that I could keep the video short, but that works as well. So you could pass down both state and callback functions.
@rp30583 жыл бұрын
Love your videos! Quick question about the Practical Module Federation book: What is the book-format (printed book, ebook, kindle, pdf)?
@jherr3 жыл бұрын
It's PDF and ePub.
@rp30583 жыл бұрын
@@jherr Thanks!
@eferesen2 жыл бұрын
Thanks so much!
@dhawald72 жыл бұрын
Hi Jack! Great content! Quick question, if we change the publicPath in the remote app do we need any changes in the host app? I changed the remote url in the host app but get 'Chunk Load Error'. Would appreciate if you could guide me on this. Thanks!
@jherr2 жыл бұрын
As long as the remote entry location doesn't change you should be ok. That being said, maybe a cache problem, and maybe have a look at the network inspector to make sure it's loading from the same place. You can also take this question to the #module-federation channel on the Discord server.
@dhawald72 жыл бұрын
Thanks for the reply Jack! I found the problem. My remote app is on 3000 and host on 3001. When I change the publicPath in remote app the host app is tries to load the remote chunks from localhost:3001(the host's address itself) instead of localhost:3000(the remote's address). Not sure what could be the reason and how to resolve it.
@jherr2 жыл бұрын
@@dhawald7 You should join the Discord server and take your question to the #module-federation channel. But be sure to read the posting #rules first. Please don't post screenshots. And if you have a very small test app that demonstrates the issue that you can post on GitHub so that we can look at it, that would be great.
@antoncaballes18465 ай бұрын
Hello Jack I really love to watch your videos. I have a question about this topic. May I know when to use micro-frontend? Or what is the importance of it? Thank you.
@fagundezantony23583 жыл бұрын
Hey Jack!! Your content is amazing!!! Thanks for sharing this! Greetings from Argentina!
@the_coder2412 жыл бұрын
🔥🔥🔥🔥 love it!!
@fezekileplaatyi72242 жыл бұрын
Thanks, Jack, great content! Just a quick question, can we share the state for example updating the state on solid-js and have that replicated to react app with this architecture?
@jherr2 жыл бұрын
Yeah, you just need to have view library agnostic state manager. I tend to use something like RxJS for that. It's simple, somewhat lightweight, and it's easy to use and agnostic.
@fezekileplaatyi72242 жыл бұрын
@@jherr awesome, thank you so much. I will look into that
@goldydog1 Жыл бұрын
Thanks for the great video! Are there any approaches for handling global state or SSR with this approach? Would you still recommend module federation over something like Astro that allows multiple frameworks in a single app?
@jherr Жыл бұрын
Global state is actually pretty easy. I would recommend limiting the amount of shared state though. SSR is tricky because you have to figure out a way to force the servers or lambdas to update their MFEs. So that’s not trivial. As for running multiple frameworks. If you don’t need runtime loading, if you can do build time sharing then Astro is an excellent choice.