Architectural boundaries
When discussing architectural boundaries, we are already entering the code level. Here, we go beyond the domain model and into the following areas:
- What capabilities do the micro frontends have?
- How much freedom do we give the micro frontends regarding their structure and design?
- Which APIs (for example, of the Document Object Model (DOM)) can the micro frontends use?
- Where are the micro frontends decoupled from the application and where are they really tightly bound to the surrounding system?
As usual, the answer is "it depends," but we can still come up with things to consider and keep in mind that they will apply to almost every sound solution.
Let's start with shared capabilities, before determining what is needed for choosing the right level of freedom. After an example of accessing the DOM, we'll conclude with a discussion about the universality of micro frontends.
Shared capabilities
When creating...