---
title: "Building a Modular Portal with Webpack Module Federation"
description: "Zalando's logistics transport teams built an internal portal from independently deployed micro frontends using Webpack Module Federation, so five teams could ship new and legacy apps without redeploying the host."
url: "https://swe.quest/articles/building-a-modular-portal-with-webpack-module-federation-75d7d2c713b07810"
canonical: "https://engineering.zalando.com/posts/2024/10/building-modular-portal-with-webpack-module-federation.html"
source: "Zalando Engineering"
published: "2024-10-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["frontend","system-design","identity-auth","react","web-performance"]
---

# Building a Modular Portal with Webpack Module Federation

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2024-10-16, 9 min read, Case study. Original: [https://engineering.zalando.com/posts/2024/10/building-modular-portal-with-webpack-module-federation.html](https://engineering.zalando.com/posts/2024/10/building-modular-portal-with-webpack-module-federation.html)

## Summary

Zalando's logistics transport teams built an internal portal from independently deployed micro frontends using Webpack Module Federation, so five teams could ship new and legacy apps without redeploying the host. A central backend proxy handles authentication and OPA-style authorisation, returns the list of apps each user may access, and the portal fetches each app's manifest (menu items, permissions, remoteEntry bundle path) to lazy-load it on route activation. Version conflicts are handled by sharing singletons like React and lodash, and cross-app communication goes through a single prop interface for session data, logout, navigation and error reporting. The portal now hosts 11 apps from 4 teams, with a shared npm UI-kit keeping the design consistent.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [Web performance](https://swe.quest/tags/web-performance.md) (Web & mobile)

## Prerequisites

- Webpack bundling
- React ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- micro frontends concept

## Keywords

Webpack Module Federation, React, OPA, micro frontends, Zalando

## Related posts

- [Micro Frontends: from Fragments to Renderers (Part 1)](https://swe.quest/articles/micro-frontends-from-fragments-to-renderers-part-1-6d1454b8ffffb834.md): Zalando Engineering · 2021-03-10 · Easy · 6 min read · Frontend, System design, React, GraphQL, Design systems
  Zalando replaced its Mosaic micro-frontend architecture, built on team-owned page Fragments, with Interface Framework, a unified platform where pages are trees of typed Entities (Product, Collection, Outfit) mapped via declarative rendering rules to React Renderers that declare data needs in GraphQL.
- [How we use GraphQL at Europe's largest fashion e-commerce company](https://swe.quest/articles/how-we-use-graphql-at-europe-s-largest-fashion-e-commerce-company-98c53d6b8b858147.md): Zalando Engineering · 2021-03-03 · Easy · 6 min read · GraphQL, API design, Microservices, E-commerce, Resilience
  Zalando replaced a sprawl of per-page and per-platform Backend-for-Frontend services with a single unified GraphQL API owned via a shared monorepo across 12+ domain teams.
- [Shopify’s platform is the Web platform](https://swe.quest/articles/shopify-s-platform-is-the-web-platform-7efe3322420f447d.md): Shopify Engineering · 2023-07-26 · Medium · 10 min read · Frontend, Browsers, React, Developer tools, E-commerce
  Remix is now Shopify's recommended framework for building Admin apps, backed by a rewritten, final version of App Bridge that makes cross-origin iframes behave like a normal web environment.
- [An Introduction to the Zalando Design System](https://swe.quest/articles/an-introduction-to-the-zalando-design-system-4b3d34eb4aa32f29.md): Zalando Engineering · 2022-07-20 · Medium · 10 min read · Design systems, Frontend, React, CSS
  Zalando's web design system is layered on an extended atomic-design model: design tokens, "electrons" (a restricted CSS grammar like paddingTop\_m), atoms (the only layer that touches CSS), molecules (generic React components) and team-owned organisms.
- [How we built multi-region support for Linear](https://swe.quest/articles/how-we-built-multi-region-support-for-linear-acbf98e7bc2a3edb.md): Linear · 2024-05-23 · Medium · 9 min read · System design, Distributed systems, Identity & auth, Infrastructure as code, PostgreSQL
  Linear added an EU region by replicating its entire production deployment per region rather than sharding the database, keeping each region isolated and letting engineers keep writing against a single Postgres instance.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
