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

What's hot (20)

PDF
"Micro-frontends, web development", Oleksandr Khivrych
Fwdays
 
PDF
Micro Frontend Platforms for Kubernetes
Entando
 
PPTX
Micro Front-End & Microservices - Plansoft
Miki Lombardi
 
PPTX
Micro-frontends – is it a new normal?
Lohika_Odessa_TechTalks
 
PDF
Micro Frontends Architecture
Rag Dhiman
 
PPTX
Micro Front Ends : Divided We Rule by Parth Ghiya - AhmedabadJS
KNOWARTH - Software Development Company
 
PPTX
'BUILDING ANGULAR APPS WITH NX' by Anastasia Necheporenko
OdessaJS Conf
 
PPTX
Micro-frontend
Miguel Angel Teheran Garcia
 
PDF
Micro Frontends
Spyros Ioakeimidis
 
PDF
State of Micro Frontend
Yugo Sakamoto
 
PDF
Mikrofrontend a Module Federation
The Software House
 
PPTX
Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...
Shift Conference
 
PPTX
Micro frontend
Amr Abd El Latief
 
PPTX
Mono Repo
Zacky Pickholz
 
PDF
Git flow
Valerio Como
 
PPTX
What’s New in Angular 14?
Albiorix Technology
 
PDF
Cloud Native Application
VMUG IT
 
PDF
Micro frontend: The microservices puzzle extended to frontend
Audrey Neveu
 
PDF
Understanding MicroSERVICE Architecture with Java & Spring Boot
Kashif Ali Siddiqui
 
PPTX
Getting Started with React.js
Smile Gupta
 
"Micro-frontends, web development", Oleksandr Khivrych
Fwdays
 
Micro Frontend Platforms for Kubernetes
Entando
 
Micro Front-End & Microservices - Plansoft
Miki Lombardi
 
Micro-frontends – is it a new normal?
Lohika_Odessa_TechTalks
 
Micro Frontends Architecture
Rag Dhiman
 
Micro Front Ends : Divided We Rule by Parth Ghiya - AhmedabadJS
KNOWARTH - Software Development Company
 
'BUILDING ANGULAR APPS WITH NX' by Anastasia Necheporenko
OdessaJS Conf
 
Micro Frontends
Spyros Ioakeimidis
 
State of Micro Frontend
Yugo Sakamoto
 
Mikrofrontend a Module Federation
The Software House
 
Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...
Shift Conference
 
Micro frontend
Amr Abd El Latief
 
Mono Repo
Zacky Pickholz
 
Git flow
Valerio Como
 
What’s New in Angular 14?
Albiorix Technology
 
Cloud Native Application
VMUG IT
 
Micro frontend: The microservices puzzle extended to frontend
Audrey Neveu
 
Understanding MicroSERVICE Architecture with Java & Spring Boot
Kashif Ali Siddiqui
 
Getting Started with React.js
Smile Gupta
 

Similar to Microfrontends Monoreops & Trunkbased based (20)

PDF
Rustam Aliyev and Ivan Martynov - From monolith web app to micro-frontends – ...
OdessaJS Conf
 
PDF
From monolith web app to micro-frontends
Rustam Aliyev
 
PPTX
Micro-Frontends JSVidCon
Amir Zuker
 
PPTX
'MICROFRONTENDS WITH REACT' by Liliia Karpenko
OdessaJS Conf
 
PPTX
Building Microtrends With React
Nisheed Jagadish
 
PPTX
“Micro Frontends”- You Keep Using That Word, I Don’t Think It Means What You ...
Shem Magnezi
 
PDF
Node.js BFFs - our way to the better/micro frontends
Eugene Fidelin
 
PDF
The Modern Web with Microfrontends
Nikki Dingding
 
PPTX
Building applications in a Micro-frontends way
Prasanna Venkatesan
 
PDF
Frontend Monoliths: Run if you can!
Jonas Bandi
 
PDF
Frontend Monoliths: Run if you can!
Jonas Bandi
 
PDF
Scaling frontend applications with micro-frontends Presentation.pdf
KatamaRajuBandigari1
 
PDF
Micro Frontends
Talentica Software
 
PDF
Front end microservices: architectures and solution
Mikhail Kuznetcov
 
PPTX
Micro Frontends.pptx
ShanAli738907
 
PPTX
Micro Front-Ends
Ori Calvo
 
PDF
micro-frontends-with-vuejs
Oleksandr Tserkovnyi
 
PDF
Building Micro-Frontends: Scaling Teams and Projects Empowering Developers 1s...
azmeelbronii
 
PPTX
JS Fest 2019/Autumn. Влад Федосов. Technology agnostic microservices at SPA f...
JSFestUA
 
PPTX
Frontend architecture design for large(r) team final
Chadchapol Vittavutkarnvej
 
Rustam Aliyev and Ivan Martynov - From monolith web app to micro-frontends – ...
OdessaJS Conf
 
From monolith web app to micro-frontends
Rustam Aliyev
 
Micro-Frontends JSVidCon
Amir Zuker
 
'MICROFRONTENDS WITH REACT' by Liliia Karpenko
OdessaJS Conf
 
Building Microtrends With React
Nisheed Jagadish
 
“Micro Frontends”- You Keep Using That Word, I Don’t Think It Means What You ...
Shem Magnezi
 
Node.js BFFs - our way to the better/micro frontends
Eugene Fidelin
 
The Modern Web with Microfrontends
Nikki Dingding
 
Building applications in a Micro-frontends way
Prasanna Venkatesan
 
Frontend Monoliths: Run if you can!
Jonas Bandi
 
Frontend Monoliths: Run if you can!
Jonas Bandi
 
Scaling frontend applications with micro-frontends Presentation.pdf
KatamaRajuBandigari1
 
Micro Frontends
Talentica Software
 
Front end microservices: architectures and solution
Mikhail Kuznetcov
 
Micro Frontends.pptx
ShanAli738907
 
Micro Front-Ends
Ori Calvo
 
micro-frontends-with-vuejs
Oleksandr Tserkovnyi
 
Building Micro-Frontends: Scaling Teams and Projects Empowering Developers 1s...
azmeelbronii
 
JS Fest 2019/Autumn. Влад Федосов. Technology agnostic microservices at SPA f...
JSFestUA
 
Frontend architecture design for large(r) team final
Chadchapol Vittavutkarnvej
 
Ad

More from Vinci Rufus (14)

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

Recently uploaded (20)

PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
July Patch Tuesday
Ivanti
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Biography of Daniel Podor.pdf
Daniel Podor
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 

Microfrontends Monoreops & Trunkbased based