SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Micro FrontEnd
Approches using Angular
By
Amr Abd El Latief
Agenda
• What is Micro FrontEnd
• Micro FrontEnd Principles
• Micro FrontEnd benfits
• Approaches
• Notes and Conclusion
• Questions
• Refrences
What is MicroFrontEnd Architecture
• Micro-frontends is a microservice-like architecture that applies the
concept of microservices to the browser side.
• Instead of one single UI App, multiple Frontend Apps, and try to
integrate in one host App
The Story (illustration )
The Story (illustration ).. Continue
Example
MicroFrontEnd Principles
• Stand-alon run
• Independent Development
• Stand-alone deployment
MicroFrontEnd Benefits
• Many Development teams
• Independent deploy
• Simplify maintenance
Approaches
• BackEnd Rendering
• Iframe
• Angular Register bundle methods
• Frameworks ( Single-Spa, Mooa , luigi)
Approaches
•BackEnd Rendering
• Iframe
• Angular Register bundle methods
• Frameworks ( Single-Spa, Mooa , luigi)
BackEnd Rendering
• Some techniques use nodejs app as html generator for the Front End side
• This may mean that there is no Frontend separate App (layer)
• Ex.
const express = require('express')
const app = express()
const port = 4000
app.get('/', (req, res) => {
res.send('<div class="row"><h1>This is the app body header</h1></div>
<div class="row">This is the body Content</div>')
})
app.listen(port, () => {
console.log(`app listening at http://localhost:${port}`)
})
Approaches
• BackEnd Rendering
•Iframe
• Rounting(http methods)
• Angular Register bundle methods
• Frameworks ( Single-Spa, Mooa , luigi)
Iframe Methode
• Ex.
• <iframe src="http://localhost:3000" width="400" height="200"></iframe>
• Advantages:
1 – simple approach
2 – content changes dynamically with the change on the hosted server
3 – suitable for the legacy large components
• Disadvantages:
1 – Component Communication
2 – User experience
Approaches
• BackEnd Rendering
• Iframe
• Rounting(http methods)
•Angular Register (bundle methods)
• Frameworks ( Single-Spa, Mooa , luigi)
Methode 1: bundles from Servers
• Steps:
1 – compress the angular apps (microfront ends) by bundling them in
one .js File
• ng build --prod --output-hashing none --single-bundle true
2 - refrence the bundle .js files from the servers in the main App
• <script type="text/javascript" src="http://localhost:8081/main.js"></script>
• <script type="text/javascript" src="http://localhost:8082/main.js"></script>
3- we use apps with their angular registered names
• <div style="margin-bottom: 10px;" id="flight-booking-container"><app-flight-booking></app-flight-
booking></div>
• <div id="train-booking-container"><app-train-booking></app-train-booking></div>
Methode 2: bundles inside the host
• Steps:
1 – compress the angular apps (microfront ends) by bundling them in
one .js File
• ng build --prod --output-hashing none --single-bundle true
2 – includes: generating and adding the js files of each micro front end
to the host app manually
3 -reference those files in angular.json
ex : ,
"scripts": ["micro-component/main.js", "micro-component/main-
train.js"]
Methode 2: bundles inside the host - continue
• Steps:
4 – add to the module.ts file of your Amgular App:
import { NgModule,CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
schemas: [
CUSTOM_ELEMENTS_SCHEMA
],
Approaches
• BackEnd Rendering
• Iframe
• Rounting(http methods)
• Angular Register (bundle methods)
•Frameworks ( Single-Spa, Mooa ,
Luigi)
FrameWorks
• single-spa is a framework for bringing together multiple JavaScript
microfrontends in a frontend application.
• Use multiple frameworks on the same page (angular , react , angularjs, vue)
• Deploy your microfrontends independently
• Write code using a new framework, without rewriting your existing app
• Lazy load code for improved initial load time
• Other Frameworks (Mooa , Luigi )
Notes & Conclusion
• 1 – not very simple to apply Different technologies
• 2 – interconnection between microfront end isnt professionally
handeled yet
Micro frontend
References
• https://dzone.com/articles/micro-frontends-benefits
• https://dzone.com/articles/build-micro-front-ends-using-angular-
elements-the
• https://www.slideshare.net/MiguelAngelTeheranGa/micro-frontend
• https://single-spa.js.org/docs/getting-started-overview
Micro frontend

More Related Content

PPTX
Micro-frontend
Miguel Angel Teheran Garcia
 
PDF
Micro Frontends
Spyros Ioakeimidis
 
PPTX
Micro-Frontend Architecture
Livares Technologies Pvt Ltd
 
PDF
Mikrofrontend a Module Federation
The Software House
 
PDF
Abhishek project
AbhishekRaj182
 
PDF
Understanding Monorepos
Benjamin Cabanes
 
PPTX
Micro frontend architecture_presentation_ssoni
Sandeep Soni
 
Micro Frontends
Spyros Ioakeimidis
 
Micro-Frontend Architecture
Livares Technologies Pvt Ltd
 
Mikrofrontend a Module Federation
The Software House
 
Abhishek project
AbhishekRaj182
 
Understanding Monorepos
Benjamin Cabanes
 
Micro frontend architecture_presentation_ssoni
Sandeep Soni
 

What's hot (20)

PDF
Micro frontends
Assaf Gannon
 
PDF
Micro Frontends Architecture - Jitendra kumawat (Guavus)
Tech Triveni
 
PPTX
[DevDay2019] Micro Frontends Architecture - By Thang Pham, Senior Software En...
DevDay Da Nang
 
PDF
FEVR - Micro Frontend
Miki Lombardi
 
PDF
"Micro-frontends, web development", Oleksandr Khivrych
Fwdays
 
PDF
Ivan Jovanovic - Micro Frontends - Codemotion Rome_2019
Codemotion
 
PPTX
Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...
Shift Conference
 
PDF
State of Micro Frontend
Yugo Sakamoto
 
PPTX
Micro Front-End & Microservices - Plansoft
Miki Lombardi
 
PPTX
Introduction To Micro Frontends
Meitar Karas
 
PDF
Micro Frontends Architecture
Rag Dhiman
 
PPTX
Micro-frontends – is it a new normal?
Lohika_Odessa_TechTalks
 
PPTX
Micro Front Ends : Divided We Rule by Parth Ghiya - AhmedabadJS
KNOWARTH - Software Development Company
 
PDF
Microservice Architecture | Microservices Tutorial for Beginners | Microservi...
Edureka!
 
PDF
"Micro-frontends: Scalable and Modular Frontend in Parimatch Tech", Kyrylo Ai...
Fwdays
 
PPTX
Micro Frontends: Rompiendo el monolito en las aplicaciones Web
Belatrix Software
 
PPTX
Building applications in a Micro-frontends way
Prasanna Venkatesan
 
PPTX
Microservice vs. Monolithic Architecture
Paul Mooney
 
PDF
How to build Micro Frontends with @angular/elements
MarcellKiss7
 
PPTX
Micro Frontends.pptx
ShanAli738907
 
Micro frontends
Assaf Gannon
 
Micro Frontends Architecture - Jitendra kumawat (Guavus)
Tech Triveni
 
[DevDay2019] Micro Frontends Architecture - By Thang Pham, Senior Software En...
DevDay Da Nang
 
FEVR - Micro Frontend
Miki Lombardi
 
"Micro-frontends, web development", Oleksandr Khivrych
Fwdays
 
Ivan Jovanovic - Micro Frontends - Codemotion Rome_2019
Codemotion
 
Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...
Shift Conference
 
State of Micro Frontend
Yugo Sakamoto
 
Micro Front-End & Microservices - Plansoft
Miki Lombardi
 
Introduction To Micro Frontends
Meitar Karas
 
Micro Frontends Architecture
Rag Dhiman
 
Micro-frontends – is it a new normal?
Lohika_Odessa_TechTalks
 
Micro Front Ends : Divided We Rule by Parth Ghiya - AhmedabadJS
KNOWARTH - Software Development Company
 
Microservice Architecture | Microservices Tutorial for Beginners | Microservi...
Edureka!
 
"Micro-frontends: Scalable and Modular Frontend in Parimatch Tech", Kyrylo Ai...
Fwdays
 
Micro Frontends: Rompiendo el monolito en las aplicaciones Web
Belatrix Software
 
Building applications in a Micro-frontends way
Prasanna Venkatesan
 
Microservice vs. Monolithic Architecture
Paul Mooney
 
How to build Micro Frontends with @angular/elements
MarcellKiss7
 
Micro Frontends.pptx
ShanAli738907
 
Ad

Similar to Micro frontend (20)

PDF
From MEAN to the MERN Stack
Troy Miles
 
PDF
MicroForntends.pdf
Sagar Bhosale
 
PDF
Griffon for the Enterprise
James Williams
 
PPTX
Valentine with Angular js - Introduction
Senthil Kumar
 
PDF
MEAN Stack Warm-up
Troy Miles
 
PDF
Angular meetup 2 2019-08-29
Nitin Bhojwani
 
PPTX
Webinar on How to use MyAppConverter
Jaoued Ahmed
 
PDF
Performance and Scalability Art of Isomorphic React Applications
Denis Izmaylov
 
PDF
Building Effective and Rapid Applications with IBM MobileFirst Platform
Andrew Ferrier
 
PDF
Angular Meetup 1 - Angular Basics and Workshop
Nitin Bhojwani
 
PPTX
Tech io spa_angularjs_20130814_v0.9.5
Ganesh Kondal
 
PDF
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
Fwdays
 
PPTX
Reactive application using meteor
Sapna Upreti
 
PPTX
Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...
Lucas Jellema
 
PPTX
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
TIMETOACT GROUP
 
PPTX
The future of web development write once, run everywhere with angular.js and ...
Mark Roden
 
PDF
The future of web development write once, run everywhere with angular js an...
Mark Leusink
 
PDF
Pragmatic Monolith-First, easy to decompose, clean architecture
Piotr Pelczar
 
PPT
Angular.ppt
Mytrux1
 
PDF
Escaping the yellow bubble - rewriting Domino using MongoDb and Angular
Mark Leusink
 
From MEAN to the MERN Stack
Troy Miles
 
MicroForntends.pdf
Sagar Bhosale
 
Griffon for the Enterprise
James Williams
 
Valentine with Angular js - Introduction
Senthil Kumar
 
MEAN Stack Warm-up
Troy Miles
 
Angular meetup 2 2019-08-29
Nitin Bhojwani
 
Webinar on How to use MyAppConverter
Jaoued Ahmed
 
Performance and Scalability Art of Isomorphic React Applications
Denis Izmaylov
 
Building Effective and Rapid Applications with IBM MobileFirst Platform
Andrew Ferrier
 
Angular Meetup 1 - Angular Basics and Workshop
Nitin Bhojwani
 
Tech io spa_angularjs_20130814_v0.9.5
Ganesh Kondal
 
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
Fwdays
 
Reactive application using meteor
Sapna Upreti
 
Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...
Lucas Jellema
 
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
TIMETOACT GROUP
 
The future of web development write once, run everywhere with angular.js and ...
Mark Roden
 
The future of web development write once, run everywhere with angular js an...
Mark Leusink
 
Pragmatic Monolith-First, easy to decompose, clean architecture
Piotr Pelczar
 
Angular.ppt
Mytrux1
 
Escaping the yellow bubble - rewriting Domino using MongoDb and Angular
Mark Leusink
 
Ad

More from Amr Abd El Latief (12)

PPTX
master-journey.pptx
Amr Abd El Latief
 
PPTX
I feel presentation [autosaved]
Amr Abd El Latief
 
PPTX
Design p atterns
Amr Abd El Latief
 
PPTX
AngularJs advanced Topics
Amr Abd El Latief
 
PPTX
Angular js slides
Amr Abd El Latief
 
PPTX
Data mining concepts and work
Amr Abd El Latief
 
PPTX
Test vector compression
Amr Abd El Latief
 
PPTX
Designing energy efficient lte
Amr Abd El Latief
 
PPT
Stock market analysis using ga and neural network
Amr Abd El Latief
 
DOCX
Chromium os architecture report
Amr Abd El Latief
 
PPTX
Marketing plane of cadbry bupply kids
Amr Abd El Latief
 
PPTX
Test vector compression in Digital Testing
Amr Abd El Latief
 
master-journey.pptx
Amr Abd El Latief
 
I feel presentation [autosaved]
Amr Abd El Latief
 
Design p atterns
Amr Abd El Latief
 
AngularJs advanced Topics
Amr Abd El Latief
 
Angular js slides
Amr Abd El Latief
 
Data mining concepts and work
Amr Abd El Latief
 
Test vector compression
Amr Abd El Latief
 
Designing energy efficient lte
Amr Abd El Latief
 
Stock market analysis using ga and neural network
Amr Abd El Latief
 
Chromium os architecture report
Amr Abd El Latief
 
Marketing plane of cadbry bupply kids
Amr Abd El Latief
 
Test vector compression in Digital Testing
Amr Abd El Latief
 

Recently uploaded (20)

PDF
Exploring AI Agents in Process Industries
amoreira6
 
PPTX
Presentation about Database and Database Administrator
abhishekchauhan86963
 
PPTX
Role Of Python In Programing Language.pptx
jaykoshti048
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
PDF
vAdobe Premiere Pro 2025 (v25.2.3.004) Crack Pre-Activated Latest
imang66g
 
PDF
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
PPTX
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
PPTX
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PPTX
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
PDF
New Download MiniTool Partition Wizard Crack Latest Version 2025
imang66g
 
PDF
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
PDF
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
PPTX
Explanation about Structures in C language.pptx
Veeral Rathod
 
PDF
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
PDF
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PPTX
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PPTX
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
PPTX
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
Exploring AI Agents in Process Industries
amoreira6
 
Presentation about Database and Database Administrator
abhishekchauhan86963
 
Role Of Python In Programing Language.pptx
jaykoshti048
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
vAdobe Premiere Pro 2025 (v25.2.3.004) Crack Pre-Activated Latest
imang66g
 
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
New Download MiniTool Partition Wizard Crack Latest Version 2025
imang66g
 
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
Explanation about Structures in C language.pptx
Veeral Rathod
 
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 

Micro frontend

  • 1. Micro FrontEnd Approches using Angular By Amr Abd El Latief
  • 2. Agenda • What is Micro FrontEnd • Micro FrontEnd Principles • Micro FrontEnd benfits • Approaches • Notes and Conclusion • Questions • Refrences
  • 3. What is MicroFrontEnd Architecture • Micro-frontends is a microservice-like architecture that applies the concept of microservices to the browser side. • Instead of one single UI App, multiple Frontend Apps, and try to integrate in one host App
  • 5. The Story (illustration ).. Continue
  • 7. MicroFrontEnd Principles • Stand-alon run • Independent Development • Stand-alone deployment
  • 8. MicroFrontEnd Benefits • Many Development teams • Independent deploy • Simplify maintenance
  • 9. Approaches • BackEnd Rendering • Iframe • Angular Register bundle methods • Frameworks ( Single-Spa, Mooa , luigi)
  • 10. Approaches •BackEnd Rendering • Iframe • Angular Register bundle methods • Frameworks ( Single-Spa, Mooa , luigi)
  • 11. BackEnd Rendering • Some techniques use nodejs app as html generator for the Front End side • This may mean that there is no Frontend separate App (layer) • Ex. const express = require('express') const app = express() const port = 4000 app.get('/', (req, res) => { res.send('<div class="row"><h1>This is the app body header</h1></div> <div class="row">This is the body Content</div>') }) app.listen(port, () => { console.log(`app listening at http://localhost:${port}`) })
  • 12. Approaches • BackEnd Rendering •Iframe • Rounting(http methods) • Angular Register bundle methods • Frameworks ( Single-Spa, Mooa , luigi)
  • 13. Iframe Methode • Ex. • <iframe src="http://localhost:3000" width="400" height="200"></iframe> • Advantages: 1 – simple approach 2 – content changes dynamically with the change on the hosted server 3 – suitable for the legacy large components • Disadvantages: 1 – Component Communication 2 – User experience
  • 14. Approaches • BackEnd Rendering • Iframe • Rounting(http methods) •Angular Register (bundle methods) • Frameworks ( Single-Spa, Mooa , luigi)
  • 15. Methode 1: bundles from Servers • Steps: 1 – compress the angular apps (microfront ends) by bundling them in one .js File • ng build --prod --output-hashing none --single-bundle true 2 - refrence the bundle .js files from the servers in the main App • <script type="text/javascript" src="http://localhost:8081/main.js"></script> • <script type="text/javascript" src="http://localhost:8082/main.js"></script> 3- we use apps with their angular registered names • <div style="margin-bottom: 10px;" id="flight-booking-container"><app-flight-booking></app-flight- booking></div> • <div id="train-booking-container"><app-train-booking></app-train-booking></div>
  • 16. Methode 2: bundles inside the host • Steps: 1 – compress the angular apps (microfront ends) by bundling them in one .js File • ng build --prod --output-hashing none --single-bundle true 2 – includes: generating and adding the js files of each micro front end to the host app manually 3 -reference those files in angular.json ex : , "scripts": ["micro-component/main.js", "micro-component/main- train.js"]
  • 17. Methode 2: bundles inside the host - continue • Steps: 4 – add to the module.ts file of your Amgular App: import { NgModule,CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; schemas: [ CUSTOM_ELEMENTS_SCHEMA ],
  • 18. Approaches • BackEnd Rendering • Iframe • Rounting(http methods) • Angular Register (bundle methods) •Frameworks ( Single-Spa, Mooa , Luigi)
  • 19. FrameWorks • single-spa is a framework for bringing together multiple JavaScript microfrontends in a frontend application. • Use multiple frameworks on the same page (angular , react , angularjs, vue) • Deploy your microfrontends independently • Write code using a new framework, without rewriting your existing app • Lazy load code for improved initial load time • Other Frameworks (Mooa , Luigi )
  • 20. Notes & Conclusion • 1 – not very simple to apply Different technologies • 2 – interconnection between microfront end isnt professionally handeled yet
  • 22. References • https://dzone.com/articles/micro-frontends-benefits • https://dzone.com/articles/build-micro-front-ends-using-angular- elements-the • https://www.slideshare.net/MiguelAngelTeheranGa/micro-frontend • https://single-spa.js.org/docs/getting-started-overview