# Microfrontends

Microfrontends are a software development approach that involves breaking down a monolithic frontend application into smaller, independently deployable units or components. These units, also known as microfrontends, are developed and managed by different teams or departments within an organization and can be integrated together to create a cohesive user experience. This approach allows for greater flexibility and scalability in development, as well as faster deployment and testing of new features.

### Module Federation

Module federation is a feature in webpack that allows for the sharing of modules across different webpack builds. It allows for the creation of a centralized "entry" point for a set of modules that can be consumed by multiple other webpack builds, creating a modular and reusable codebase. This can greatly improve the efficiency and maintainability of large-scale projects by reducing code duplication and allowing for more flexible development.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://riceball.gitbook.io/frontend-dev-guide/frontend-deep-dive/microfrontends.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
