Microfrontends in Safety Critical Aviation Systems

Rate this content
Bookmark

Are you being asked to create more frequent release with higher quality, but the team in the other office is constantly breaking your features? Microfrontends might be the answer for you! During this flight, we will fly over the pros and cons of microservices and frontend architectures, navigate the turbulent airs of migrating products to new architecture, and finally land at our destination of scalable software.

Jarred Utt
Jarred Utt
9 min
17 Jun, 2024

Comments

Sign in or register to post your comment.

Video Summary and Transcription

AWS SafeKit is a market leader in airport control software, managing the entire operation of an airport. Microfrontends extend microservice architecture to the frontend, allowing components to be combined at runtime. Module federation from Webpack is a popular approach for loading remote modules. Microfrontends offer benefits such as incremental upgrades and deployment independence, but also come with downsides like poor performance and complexity. Microfrontends are recommended for large-scale enterprise applications with distinct requirements and the need for experimentation.

1. Introduction to AWS SafeKit and Aviation Systems

Short description:

Today we're going to talk about micro functions and safety critical aviation systems. AWS SafeKit is a market leader in airport control software, managing the entire operation of an airport from arrival to departure. Air traffic is doubling every 15 years, and there's a 50% capacity shortage expected by 2035. AWS SafeKit works with over 2,700 airports and has over 1,200 employees in 38 offices worldwide.

My name's Jared, and I'm a technical leader at AWS SafeKit. Today, we're going to talk a little bit around micro functions and safety critical aviation systems. AWS SafeKit is a global market leader in airport control software and visual docking guidance systems, and the software we're talking about today manages the entire operation of an airport from arrival to departure, including real-time aircraft position tracking, gate and stand planning, and integration to all core systems to deliver a single source of truth.

Airports are connected to each other, much like the nodes of a network, and if one node is slow or failing, there's a domino effect for each node coming next. In addition to that, air traffic is actually doubling every 15 years, growing at a rate of 4.4% annually. There's a 50% capacity shortage expected by 2035 in half the world's airports if we don't take any action. This ultimately means that 237 million passengers won't be able to fly by 2035. So buckle up, sit back, and let's enjoy the flight.

A little bit around AWS SafeKit. We're a little over 1,200 employees in 38 offices spread across the world, and we work with over 2,700 airports. Myself, I've been having fun with code for 13 years. Started with a lot of robotics, and then moved into web and mobile applications, then received a degree in computer engineering, and I've been with AWS SafeKit for the past five years in various technical roles. A fun fact, I actually moved from the US to Sweden three years ago.

2. History and Introduction to Microfrontends

Short description:

We begin with a little bit of history, starting with a simple monolith and eventually moving into the web and introducing microservices. However, we faced a complex question of combining 60 different products into a single web application. Microfrontends are an extension of microservice architecture to the frontend, allowing components to be combined at runtime. Module federation from Webpack is a popular approach to achieve this, facilitating the loading of remote modules and managing dependencies.

We begin our journey with a little bit of history. Our current application stack's been through a couple of major reworks. We started with a very simple monolith, a C++ backend and a Qt frontend. We started to get more demand for more feature-rich applications and tightly integrated solutions. So ultimately, we moved into the web, introduced Angular, and other teams started building new products on the same tech stack, and we found a lot of synergies in those products.

But with every flight, there's always a chance for turbulence. So if we go back to that traditional monolith, we all know this picture, teams contributing code into a single codebase. And you will hit a point where it's a good idea to separate these things. You have a frontend and backend, you have better separation of concern, and you speed up your development. And you might hit a certain point where the backend grows so large that you introduce microservices, a really popular concept. And for us, this is how we've developed products for years. We have a lot of microservices separated from things.

But one day you come to work and you get a really interesting question, a really complex question. Can we take 60 of these different products and combine them into a single web application? And for us developers, that meant we had 46 applications and 22 libraries spread across 20 repositories. Even worse, we're spread all over Europe. We have developers in Sweden, Austria, Germany, Poland, and the UK. And when you first look at the problem, you might picture something like this, where you have a lot of backend services and one giant frontend. It seems really scary. Luckily, much like an aircraft, there's some instruments and controls that we can use to make our lives easier.

So the big question, what are microfrontends? Of course, naturally it's just an extension of microservice architecture to the frontend. And what that means is we take our components or group of components and put them into standalone bundles and then combine these during runtime to create a single application in the browser. It's important to note that this is framework agnostic. You can have a React, Vue, Angular app all running in the same browser at the same time. It's hard to talk about microfrontends without mentioning module federation from Webpack. And this is the original mental model that's really popularized the idea of microfrontends. It allows you to take separate Webpack builds and to form a single application. And it facilitated the loading of these remote modules at runtime asynchronously. For you, it might look like lazy loading. And it also provides mechanisms to manage different dependencies across different builds and to have an optimized bundle size. If you're not using Webpack, there's some other options like native federation.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Scaling Up with Remix and Micro Frontends
Remix Conf Europe 2022Remix Conf Europe 2022
23 min
Scaling Up with Remix and Micro Frontends
Top Content
Do you have a large product built by many teams? Are you struggling to release often? Did your frontend turn into a massive unmaintainable monolith? If, like me, you’ve answered yes to any of those questions, this talk is for you! I’ll show you exactly how you can build a micro frontend architecture with Remix to solve those challenges.
Full Stack Components
Remix Conf Europe 2022Remix Conf Europe 2022
37 min
Full Stack Components
Top Content
Remix is a web framework that gives you the simple mental model of a Multi-Page App (MPA) but the power and capabilities of a Single-Page App (SPA). One of the big challenges of SPAs is network management resulting in a great deal of indirection and buggy code. This is especially noticeable in application state which Remix completely eliminates, but it's also an issue in individual components that communicate with a single-purpose backend endpoint (like a combobox search for example).
In this talk, Kent will demonstrate how Remix enables you to build complex UI components that are connected to a backend in the simplest and most powerful way you've ever seen. Leaving you time to chill with your family or whatever else you do for fun.
Understanding React’s Fiber Architecture
React Advanced Conference 2022React Advanced Conference 2022
29 min
Understanding React’s Fiber Architecture
Top Content
We've heard a lot about React's Fiber Architecture, but it feels like few of us understand it in depth (or have the time to). In this talk, Tejas will go over his best attempt at understanding Fiber (reviewed by other experts), and present it in an 'explain-like-I'm-five years old' way.
A Framework for Managing Technical Debt
TechLead Conference 2023TechLead Conference 2023
35 min
A Framework for Managing Technical Debt
Top Content
Let’s face it: technical debt is inevitable and rewriting your code every 6 months is not an option. Refactoring is a complex topic that doesn't have a one-size-fits-all solution. Frontend applications are particularly sensitive because of frequent requirements and user flows changes. New abstractions, updated patterns and cleaning up those old functions - it all sounds great on paper, but it often fails in practice: todos accumulate, tickets end up rotting in the backlog and legacy code crops up in every corner of your codebase. So a process of continuous refactoring is the only weapon you have against tech debt.In the past three years, I’ve been exploring different strategies and processes for refactoring code. In this talk I will describe the key components of a framework for tackling refactoring and I will share some of the learnings accumulated along the way. Hopefully, this will help you in your quest of improving the code quality of your codebases.

Debugging JS
React Summit 2023React Summit 2023
24 min
Debugging JS
Top Content
As developers, we spend much of our time debugging apps - often code we didn't even write. Sadly, few developers have ever been taught how to approach debugging - it's something most of us learn through painful experience.  The good news is you _can_ learn how to debug effectively, and there's several key techniques and tools you can use for debugging JS and React apps.
Building a Voice-Enabled AI Assistant With Javascript
JSNation 2023JSNation 2023
21 min
Building a Voice-Enabled AI Assistant With Javascript
Top Content
In this talk, we'll build our own Jarvis using Web APIs and langchain. There will be live coding.

Workshops on related topic

AI on Demand: Serverless AI
DevOps.js Conf 2024DevOps.js Conf 2024
163 min
AI on Demand: Serverless AI
Top Content
Featured WorkshopFree
Nathan Disidore
Nathan Disidore
In this workshop, we discuss the merits of serverless architecture and how it can be applied to the AI space. We'll explore options around building serverless RAG applications for a more lambda-esque approach to AI. Next, we'll get hands on and build a sample CRUD app that allows you to store information and query it using an LLM with Workers AI, Vectorize, D1, and Cloudflare Workers.
Building a Shopify App with React & Node
React Summit Remote Edition 2021React Summit Remote Edition 2021
87 min
Building a Shopify App with React & Node
Top Content
WorkshopFree
Jennifer Gray
Hanna Chen
2 authors
Shopify merchants have a diverse set of needs, and developers have a unique opportunity to meet those needs building apps. Building an app can be tough work but Shopify has created a set of tools and resources to help you build out a seamless app experience as quickly as possible. Get hands on experience building an embedded Shopify app using the Shopify App CLI, Polaris and Shopify App Bridge.We’ll show you how to create an app that accesses information from a development store and can run in your local environment.
Micro Frontends with Module Federation and React
JSNation Live 2021JSNation Live 2021
113 min
Micro Frontends with Module Federation and React
Workshop
Alex Lobera
Alex Lobera
Did you ever work in a monolithic Next.js app? I did and scaling a large React app so that many teams can work simultaneously is not easy. With micro frontends you can break up a frontend monolith into smaller pieces so that each team can build and deploy independently. In this workshop you'll learn how to build large React apps that scale using micro frontends.
Build a chat room with Appwrite and React
JSNation 2022JSNation 2022
41 min
Build a chat room with Appwrite and React
WorkshopFree
Wess Cope
Wess Cope
API's/Backends are difficult and we need websockets. You will be using VS Code as your editor, Parcel.js, Chakra-ui, React, React Icons, and Appwrite. By the end of this workshop, you will have the knowledge to build a real-time app using Appwrite and zero API development. Follow along and you'll have an awesome chat app to show off!
Hard GraphQL Problems at Shopify
GraphQL Galaxy 2021GraphQL Galaxy 2021
164 min
Hard GraphQL Problems at Shopify
WorkshopFree
Rebecca Friedman
Jonathan Baker
Alex Ackerman
Théo Ben Hassen
 Greg MacWilliam
5 authors
At Shopify scale, we solve some pretty hard problems. In this workshop, five different speakers will outline some of the challenges we’ve faced, and how we’ve overcome them.

Table of contents:
1 - The infamous "N+1" problem: Jonathan Baker - Let's talk about what it is, why it is a problem, and how Shopify handles it at scale across several GraphQL APIs.
2 - Contextualizing GraphQL APIs: Alex Ackerman - How and why we decided to use directives. I’ll share what directives are, which directives are available out of the box, and how to create custom directives.
3 - Faster GraphQL queries for mobile clients: Theo Ben Hassen - As your mobile app grows, so will your GraphQL queries. In this talk, I will go over diverse strategies to make your queries faster and more effective.
4 - Building tomorrow’s product today: Greg MacWilliam - How Shopify adopts future features in today’s code.
5 - Managing large APIs effectively: Rebecca Friedman - We have thousands of developers at Shopify. Let’s take a look at how we’re ensuring the quality and consistency of our GraphQL APIs with so many contributors.
High-performance Next.js
React Summit 2022React Summit 2022
50 min
High-performance Next.js
Workshop
Michele Riva
Michele Riva
Next.js is a compelling framework that makes many tasks effortless by providing many out-of-the-box solutions. But as soon as our app needs to scale, it is essential to maintain high performance without compromising maintenance and server costs. In this workshop, we will see how to analyze Next.js performances, resources usage, how to scale it, and how to make the right decisions while writing the application architecture.