SlideShare a Scribd company logo
Live peacefully with your legacy
Ran Wahle
About me
● Programmer at Tikal
● Old
● Working for world peace
Not that peace
That peace - Between old and new
Let’s stop with militant sayings such as...
Legacy code should Move away
Who wrote this sh..t ?
We are in 2018. Why use ...
You can’t beat legacy
Rewriting is expensive
You’ll have to reverse engineer old code
Your management probably won’t let you
Micro frontends to the rescue
If you can’t beat it, move away
Have another micro app
Interact with it
What do we need?
SPA look & feel
“Router-outlet” for micro apps
Micro-service like integration
Using legacy code with micro frontends
Our demo
Three micro apps
World cup teams (jQuery)
World cup games (angular 6)
World cup team details (angular 5 & Firebase)
Shell app using micro frontends library
We had to use iframes…
Because we are dealing with legacy
Make shell App
Register apps
Routing
Each micro app gets its own url
The shell app will present micro app by URL
Routing implementation
Listen to popstate event
Match route
Invoke handler
Read more
Blend legacy app in
Inner routes
Whenever route change inside a micro app,
the browser address bar should reflect that.
When we reload, the micro app should be at
Its last route
Events
Run setState on the micro-app
Micro-app side (angular)
Change route in micro app
Service bus
Let’s reuse legacy app services
We have used iframe but...
Iframes are too isolated
We cannot really control their styling
Heavy bundles
Their performance are poor
Web components
Less isolated but still independent
We may create custom element
Inside it, we may use whatever we want
We can give up the global pub-sub and use the DOM
But… it won’t help us with our efw years old legacy
Demo - Run one app as component
Let’s wrap
We can use micro frontends to extend legacy code
We blended some micro apps into one SPA
We worked with inner route
We have reused services
And achieved world peace(?)
Thank you
Ran Wahle
@ranwahle
ranw@tikalk.com
ran.wahle@gmail.com
Demo code: https://github.com/ranwahle/micro-frontends-demo

More Related Content

PDF
Pwa is the future. The Presentation I gave at PWA event
PDF
Addon sdk content scripts
PDF
Spawny: A New Approach to Logins
PDF
Deccan ruby-conf-talk
PDF
Infinum - Building API based apps without an API
PDF
AWS re:Invent "The secrets to building and delivering amazing apps at scale"
PPTX
Transformação Digital com API Management
PPTX
Outpost24 webinar - Api security
Pwa is the future. The Presentation I gave at PWA event
Addon sdk content scripts
Spawny: A New Approach to Logins
Deccan ruby-conf-talk
Infinum - Building API based apps without an API
AWS re:Invent "The secrets to building and delivering amazing apps at scale"
Transformação Digital com API Management
Outpost24 webinar - Api security

What's hot (17)

PPTX
API Strategy & Practice Conference - API Consumption from the Hackathon Trenches
PPTX
Apache Camel & The Art of Entreprise Integration
PDF
APIdays Paris 2019 - The Mother of All APIs - From Engelbart to the Present b...
PDF
Learn react the right way
PDF
Reusable APIs
PDF
API Lifecycle Management
PDF
PDF
Android : Background Processing
PDF
apidays LIVE Hong Kong 2021 - Better API DX with a CLI by Phil Nash, Twilio
PPT
Air apps-and-smart-cards
PDF
Building APIs with Node.js and MonogDB
PPT
apidays LIVE New York 2021 - Designing API's: Less Data is More! by Damir Svr...
PDF
Welcome Note by Abhinav Asthana, CEO at Postman
PDF
Building REST APIs that don't suck for modern day SPAs
PPT
Bpstudy ajnreview
PDF
Our Technical Proficiencies
DOC
Php development
API Strategy & Practice Conference - API Consumption from the Hackathon Trenches
Apache Camel & The Art of Entreprise Integration
APIdays Paris 2019 - The Mother of All APIs - From Engelbart to the Present b...
Learn react the right way
Reusable APIs
API Lifecycle Management
Android : Background Processing
apidays LIVE Hong Kong 2021 - Better API DX with a CLI by Phil Nash, Twilio
Air apps-and-smart-cards
Building APIs with Node.js and MonogDB
apidays LIVE New York 2021 - Designing API's: Less Data is More! by Damir Svr...
Welcome Note by Abhinav Asthana, CEO at Postman
Building REST APIs that don't suck for modern day SPAs
Bpstudy ajnreview
Our Technical Proficiencies
Php development
Ad

Similar to Using legacy code with micro frontends (20)

PDF
Micro frontends
PPTX
MicroFrontend With Iframes, dirty laundry that can be cleaned
PDF
Building Micro-Frontends: Scaling Teams and Projects Empowering Developers 1s...
PDF
JSFest 2019: Technology agnostic microservices at SPA frontend
PDF
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
PDF
Bd conf sencha touch workshop
PDF
Building Micro-Frontends: Scaling Teams and Projects Empowering Developers 1s...
PPTX
JS Fest 2019/Autumn. Влад Федосов. Technology agnostic microservices at SPA f...
PDF
An Introduction to Sencha Touch
PDF
Grails for hipsters
PPTX
Micro Front Ends : Divided We Rule by Parth Ghiya - AhmedabadJS
PDF
Create a mobile web app with Sencha Touch
PDF
How to migrate large project from Angular to React
PDF
A mobile web app for Android in 75 minutes
PPTX
Bridging the Gap: Single-Page Apps and AEM
PDF
Component based User Interface Rendering with State Caching Between Routes
PPTX
DIGIT Noe 2016 - Overview of front end development today
PDF
Refactoring to a Single Page Application
PPTX
Refactoring to a SPA
PDF
"Progressive Web Apps" by Riza Fahmi (Hacktiv8)
Micro frontends
MicroFrontend With Iframes, dirty laundry that can be cleaned
Building Micro-Frontends: Scaling Teams and Projects Empowering Developers 1s...
JSFest 2019: Technology agnostic microservices at SPA frontend
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
Bd conf sencha touch workshop
Building Micro-Frontends: Scaling Teams and Projects Empowering Developers 1s...
JS Fest 2019/Autumn. Влад Федосов. Technology agnostic microservices at SPA f...
An Introduction to Sencha Touch
Grails for hipsters
Micro Front Ends : Divided We Rule by Parth Ghiya - AhmedabadJS
Create a mobile web app with Sencha Touch
How to migrate large project from Angular to React
A mobile web app for Android in 75 minutes
Bridging the Gap: Single-Page Apps and AEM
Component based User Interface Rendering with State Caching Between Routes
DIGIT Noe 2016 - Overview of front end development today
Refactoring to a Single Page Application
Refactoring to a SPA
"Progressive Web Apps" by Riza Fahmi (Hacktiv8)
Ad

More from Ran Wahle (20)

PPTX
Implementing promises with typescripts, step by step
PPTX
HTML dialog element demonstration session
PPTX
Into React-DOM.pptx
PPTX
Lets go to the background
PPTX
Permissions api
PPTX
Lets go vanilla
PPTX
Custom elements
PPTX
Web workers
PPTX
Ngrx one-effect
PPTX
Angular migration
PPTX
Javascript async / await Frontend-IL
PPTX
Boost js state management
PPTX
Angular 2.0 change detection
PPTX
Code migration from Angular 1.x to Angular 2.0
PPTX
Async patterns in javascript
PPTX
Angular js 2
PPTX
Asyncawait in typescript
PPTX
Angular%201%20to%20angular%202
PPTX
What’s new in angular 2 - From FrontEnd IL Meetup
PPTX
angularJs Workshop
Implementing promises with typescripts, step by step
HTML dialog element demonstration session
Into React-DOM.pptx
Lets go to the background
Permissions api
Lets go vanilla
Custom elements
Web workers
Ngrx one-effect
Angular migration
Javascript async / await Frontend-IL
Boost js state management
Angular 2.0 change detection
Code migration from Angular 1.x to Angular 2.0
Async patterns in javascript
Angular js 2
Asyncawait in typescript
Angular%201%20to%20angular%202
What’s new in angular 2 - From FrontEnd IL Meetup
angularJs Workshop

Recently uploaded (20)

PDF
Understanding NFT Marketplace Development_ Trends and Innovations.pdf
PPTX
Essential Infomation Tech presentation.pptx
PDF
AI in Product Development-omnex systems
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
ai tools demonstartion for schools and inter college
PPTX
FLIGHT TICKET RESERVATION SYSTEM | FLIGHT BOOKING ENGINE API
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Materi-Enum-and-Record-Data-Type (1).pptx
DOCX
The Five Best AI Cover Tools in 2025.docx
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
L1 - Introduction to python Backend.pptx
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPT
JAVA ppt tutorial basics to learn java programming
Understanding NFT Marketplace Development_ Trends and Innovations.pdf
Essential Infomation Tech presentation.pptx
AI in Product Development-omnex systems
Odoo POS Development Services by CandidRoot Solutions
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
ISO 45001 Occupational Health and Safety Management System
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
ai tools demonstartion for schools and inter college
FLIGHT TICKET RESERVATION SYSTEM | FLIGHT BOOKING ENGINE API
How to Migrate SBCGlobal Email to Yahoo Easily
Online Work Permit System for Fast Permit Processing
Softaken Excel to vCard Converter Software.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
Materi-Enum-and-Record-Data-Type (1).pptx
The Five Best AI Cover Tools in 2025.docx
Which alternative to Crystal Reports is best for small or large businesses.pdf
L1 - Introduction to python Backend.pptx
2025 Textile ERP Trends: SAP, Odoo & Oracle
JAVA ppt tutorial basics to learn java programming

Using legacy code with micro frontends