The key Components of a Microfrontend Architecture
After spending time going through the principles of a microfrontend, now let’s look at some of the key components of a microfrontend architecture.
In this section, we will look at the essential components any microfrontend architecture needs to have, and we will look at some of the nuances associated with them.
After completing this section, you will be aware of the four basic components that make up any microfrontend architecture.
Routing Engine
As we saw in the previous chapter, depending on the type of microfrontend pattern you aim to build, the routing engine for your app will be partially or fully decoupled from your apps.
There are multiple approaches we can take. We can use NGINX as a reverse proxy and have a list of all the primary routes that map to the respective apps in the multi-SPA pattern. If the apps are deployed in a Kubernetes cluster, we can make use of Ingress routes to map the primary routes...