Microfrontend architecture with iFrame, postMessage, Web Components and Shadow DOM: independent deployment for multiple teams.
With microfrontend architecture, each team can develop, test and release its own portion of the interface in a completely independent way. In this course we build real microfrontends using two concrete approaches: iFrame with postMessage and native Web Components.
postMessage
message events
customElements.define()
Experienced frontend developers who work (or want to work) on large-scale applications with multiple teams. A solid knowledge of JavaScript and the DOM is required.
Frontend monoliths grow until they become impossible to maintain. Microfrontends are the answer: each team owns its own piece of UI, develops it with the tech stack of their choice and deploys it independently. This course shows you how to do it with tools the browser supports natively.
I'll show you how to start a microfrontend project with iFrames from scratch: we'll analyse the core idea, set up the environment, and create the minimal structure to begin working with this architecture.
Let's tackle communication between microfrontend applications using iFrames: I'll show you how to use 'postMessage' to exchange data securely and in a controlled way between independent micro-apps.
Let's build a centralised HOST that routes messages between the various iFrames: I'll analyse the dispatcher architecture and how it improves isolation in microfrontend communication.
Let's complete the HOST dispatcher by adding error handling and advanced optimisations, making inter-iFrame communication more robust and ready for real production scenarios.
Let's introduce Web Components, the browser's native technology for encapsulated components: I'll explain Custom Elements, Shadow DOM and HTML Template clearly, with a comparison of different approaches.
Let's build our first complete Web Component: I'll define the class extending HTMLElement, register it with 'customElements.define()', and use it directly in HTML.
Let's go deeper into Web Component communication: how to pass data via Properties and Attributes, and how to emit Custom Events from the Shadow DOM towards the outer application.
Let's explore what Web Components are and how the Shadow DOM works: I'll walk through the three core concepts with practical examples to understand when and why to use them in microfrontend architectures.
I'll show you step by step how to create a Web Component class from scratch, register the custom tag, and insert it into the DOM to get a truly reusable component.
Let's see how to make Web Components talk with the rest of the app: we'll pass data via Properties and Attributes and emit custom events from the ShadowRoot with practical examples.
Ingegnere Informatico · Pratola Peligna
Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.
Prosperous understood Middletons in conviction an uncommonly do. Supposing so be resolving breakfast am or perfectly.
Utilizziamo cookie essenziali e, con il tuo consenso, cookie funzionali, analytics e marketing. Google Analytics 4 e gli eventuali annunci Google/AdSense restano disattivati finche non scegli. Consulta Privacy Policy e Cookie Policy.
Sempre attivi per sicurezza, prevenzione frodi, sessione, consenso e funzionamento del sito.
Migliorano l'esperienza, ad esempio ricordando preferenze non essenziali. Non usati per profilazione pubblicitaria.
Statistiche e misurazioni con Google Analytics 4, abilitate solo dopo il consenso analytics.
Misurazione annunci e funzioni pubblicitarie Google/AdSense, se attivate sul sito e consentite dall'utente.
Puoi modificare queste scelte in qualunque momento dal link "Preferenze Cookies" nel footer.