SlideShare a Scribd company logo
Microfrontends, MonoRepos, &
Trunk based Development
1
Vinci Rufus
@areai51
2
Vinci Rufus
• Sr. Director Technology Publicis Sapient London
• Ex-Google Developer Expert for Web & Angular
• Been playing with JS frameworks since 2012
• Wrote a book on AngularJS
• Spend a lot of time with React JS
• Love Svelte
• Learning Rust
Are SPAs really that great?
Microfrontends Monoreops & Trunkbased based
Microfrontends Monoreops & Trunkbased based
Microfrontends Monoreops & Trunkbased based
Monoliths on top of Microservices
Microservices
Single Page Apps (SPA)
Microfrontends the way forward
Microfrontends on Microservices
Microservices
Microfrontends
Core Principles of MicroFrontend.
• Breaking down your App by Domain Context
• Deploy Each Micro App Independently
• Isolate Failure
• Highly Observable
• Culture of Automation
Types of Microfrontends
Every Component
is MicroApp
Every Page is
MicroApp
Collection of
Routes is
MicroApp
Microfrontends
MFE
MicroApps Pattern
MAP

Microfrontends MonoRepos Trunk based
Development
Routing
Independent
Deployments
Sharing State
Common Architectural Challenges
Routing
Single SPA
• Basic Router to bootstrap JS
bundles
• You write JS
• Not a lot of community support
• Not seen anyone using it in
production
• Battle tested server / reverse proxy
• Extensively used in production for
different purposes.
• Configuring would need decent
nginx config skills
State Management
Don’t share State between the different MicroApps
Individual Deployments
High Level Microfrontend Architecture
Nginx - Applevel Routing
GraphQL -Applevel State
MicroApp1
MicroApp2
MicroApp3
MicroApp4
Microservices
MonoRepos
19
A Single Repo for the entire
Organisation
Splitting a repo into a
MonoRepo
Multi-repo vs MonoRrepo
21
Multi Repos Mono Repos
• Maximum Flexibility
• Module upgrades can be deferred / delayed.
• Breaking changes needs to be fixed by the
respective repo owners
• Code Ownerships easily setup at a Repo Level.
• Build times can be kept Optimal as number of
repositories grow.
• Setting Up CI & CD is relatively easy.
• Teams get siloed and diverge very quickly
• Intentionally Restricting Flexibility.
• Module upgrades, have a direct impact on all
apps.
• Breaking changes needs to be fixed by the Core
Team.
• As more number of apps get added to the Repo
Checkout and build times Increase.
• Setting up CI & CD is complex. Have to make
use of Caching
• Encourages InnerSource Collaboration and
learning.
22
Lerna Nx
• Most advanced set of tools for MonoRepos.
• Generators and Schematics to build Angular
React, Node Apps.
• Scaffolds Storybook
• Scaffolds out Cypress for E2E testing
23
NX Folder Structure
Microfrontends Monoreops & Trunkbased based
Core Team
Feature 1 Team
Feature 2 Team
CODEOWNERS
for folder level
access control
Trunk Based Development
27
During Active Development
Once your Code is Deployed to Production
Server Side Rendering (Options)
/header
/products
/featured
Kubernetes
/products
/header
/featured
Microfrontends
Src: https://martinfowler.com/bliki/MicroservicePremium.html
Nitro2 Nitro3
Component Level Micro App
• Lerna
• TailorJS
• Firebase Cloud Functions (SSR)
Github.com/xt/nitro2
Page Level Micro App
• Nrwl NX
• Next.js, React
• Kubernetes
Github.com/areai51/nitro3
Microfrontends Monoreops & Trunkbased based
thank you
34
@areai51
github.com/xt/nitro2
github.com/areai51/nitro3

More Related Content

PDF
Mikrofrontend a Module Federation
PPTX
Micro Front Ends : Divided We Rule by Parth Ghiya - AhmedabadJS
PPTX
PDF
"Micro-frontends, web development", Oleksandr Khivrych
PPTX
Micro-frontends – is it a new normal?
PDF
"Micro-frontends: Scalable and Modular Frontend in Parimatch Tech", Kyrylo Ai...
PPTX
Micro frontend
PPTX
Micro frontend architecture_presentation_ssoni
Mikrofrontend a Module Federation
Micro Front Ends : Divided We Rule by Parth Ghiya - AhmedabadJS
"Micro-frontends, web development", Oleksandr Khivrych
Micro-frontends – is it a new normal?
"Micro-frontends: Scalable and Modular Frontend in Parimatch Tech", Kyrylo Ai...
Micro frontend
Micro frontend architecture_presentation_ssoni

What's hot (20)

PPTX
[DevDay2019] Micro Frontends Architecture - By Thang Pham, Senior Software En...
PDF
Micro Frontends Architecture - Jitendra kumawat (Guavus)
PDF
Micro frontends
PDF
FEVR - Micro Frontend
PPTX
Angular vs. React
PDF
State of Micro Frontend
PPTX
Introduction To Micro Frontends
PDF
Micro Frontends
PPTX
Microservice vs. Monolithic Architecture
PPTX
Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...
PDF
Micro Frontends Architecture
PDF
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
PDF
Micro Frontends
PPTX
JIRA 업무 생산성 향상 및 프로젝트 관리
PDF
클라우드 네이티브 IT를 위한 4가지 요소와 상관관계 - DevOps, CI/CD, Container, 그리고 MSA
PDF
Angular vs React vs Vue | Javascript Frameworks Comparison | Which One You Sh...
PDF
Ivan Jovanovic - Micro Frontends - Codemotion Rome_2019
PDF
Microservices architecture
PPTX
Micro Front-End & Microservices - Plansoft
PDF
Next.js Introduction
[DevDay2019] Micro Frontends Architecture - By Thang Pham, Senior Software En...
Micro Frontends Architecture - Jitendra kumawat (Guavus)
Micro frontends
FEVR - Micro Frontend
Angular vs. React
State of Micro Frontend
Introduction To Micro Frontends
Micro Frontends
Microservice vs. Monolithic Architecture
Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...
Micro Frontends Architecture
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
Micro Frontends
JIRA 업무 생산성 향상 및 프로젝트 관리
클라우드 네이티브 IT를 위한 4가지 요소와 상관관계 - DevOps, CI/CD, Container, 그리고 MSA
Angular vs React vs Vue | Javascript Frameworks Comparison | Which One You Sh...
Ivan Jovanovic - Micro Frontends - Codemotion Rome_2019
Microservices architecture
Micro Front-End & Microservices - Plansoft
Next.js Introduction
Ad

Similar to Microfrontends Monoreops & Trunkbased based (20)

PDF
From monolith web app to micro-frontends
PDF
Rustam Aliyev and Ivan Martynov - From monolith web app to micro-frontends – ...
PPTX
Micro-Frontends JSVidCon
PPTX
'MICROFRONTENDS WITH REACT' by Liliia Karpenko
PPTX
Building Microtrends With React
PPTX
“Micro Frontends”- You Keep Using That Word, I Don’t Think It Means What You ...
PDF
Node.js BFFs - our way to the better/micro frontends
PDF
The Modern Web with Microfrontends
PPTX
Building applications in a Micro-frontends way
PDF
Frontend Monoliths: Run if you can!
PDF
Frontend Monoliths: Run if you can!
PDF
Scaling frontend applications with micro-frontends Presentation.pdf
PDF
Front end microservices: architectures and solution
PPTX
Micro Frontends.pptx
PPTX
Micro Front-Ends
PDF
micro-frontends-with-vuejs
PDF
Building Micro-Frontends: Scaling Teams and Projects Empowering Developers 1s...
PPTX
JS Fest 2019/Autumn. Влад Федосов. Technology agnostic microservices at SPA f...
PPTX
Frontend architecture design for large(r) team final
PPTX
DIGIT Noe 2016 - Overview of front end development today
From monolith web app to micro-frontends
Rustam Aliyev and Ivan Martynov - From monolith web app to micro-frontends – ...
Micro-Frontends JSVidCon
'MICROFRONTENDS WITH REACT' by Liliia Karpenko
Building Microtrends With React
“Micro Frontends”- You Keep Using That Word, I Don’t Think It Means What You ...
Node.js BFFs - our way to the better/micro frontends
The Modern Web with Microfrontends
Building applications in a Micro-frontends way
Frontend Monoliths: Run if you can!
Frontend Monoliths: Run if you can!
Scaling frontend applications with micro-frontends Presentation.pdf
Front end microservices: architectures and solution
Micro Frontends.pptx
Micro Front-Ends
micro-frontends-with-vuejs
Building Micro-Frontends: Scaling Teams and Projects Empowering Developers 1s...
JS Fest 2019/Autumn. Влад Федосов. Technology agnostic microservices at SPA f...
Frontend architecture design for large(r) team final
DIGIT Noe 2016 - Overview of front end development today
Ad

More from Vinci Rufus (14)

PPTX
Spas are dead Long Live Microfrontends
PPTX
Getting Productive & Performant with Angular
PPTX
Demand driven Applications with GraphQL
PPTX
Dos & Donts when making Technology choices
PPTX
Progressive Web App
PPTX
It's just Angular
PPTX
Angular PWA
PPTX
Taking Control of your Data with GraphQL
PPTX
Making Angular2 lean and Fast
PPTX
Re-thinking Performance tuning with HTTP2
PPTX
Teams Pizza Team vs Jigsaw Puzzle Team
PPTX
Gesture based Interactions in JavaScript
PPTX
Components Approach to building Web Apps
PPTX
Angular JS and Magento
Spas are dead Long Live Microfrontends
Getting Productive & Performant with Angular
Demand driven Applications with GraphQL
Dos & Donts when making Technology choices
Progressive Web App
It's just Angular
Angular PWA
Taking Control of your Data with GraphQL
Making Angular2 lean and Fast
Re-thinking Performance tuning with HTTP2
Teams Pizza Team vs Jigsaw Puzzle Team
Gesture based Interactions in JavaScript
Components Approach to building Web Apps
Angular JS and Magento

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
Teaching material agriculture food technology
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
The AUB Centre for AI in Media Proposal.docx
Dropbox Q2 2025 Financial Results & Investor Presentation
Teaching material agriculture food technology
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Review of recent advances in non-invasive hemoglobin estimation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Empathic Computing: Creating Shared Understanding
Building Integrated photovoltaic BIPV_UPV.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
“AI and Expert System Decision Support & Business Intelligence Systems”
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Mobile App Security Testing_ A Comprehensive Guide.pdf
Understanding_Digital_Forensics_Presentation.pptx
MYSQL Presentation for SQL database connectivity
Network Security Unit 5.pdf for BCA BBA.
Machine learning based COVID-19 study performance prediction
NewMind AI Weekly Chronicles - August'25 Week I
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

Microfrontends Monoreops & Trunkbased based