← All case studies Case study · Platform & performance

A zero-downtime micro-frontend platform

Product teams needed to release their modules independently, without slowing down the first load or loading the app before a user had signed in.

Role
Architect
Stack
React, TypeScript, Module Federation, Vite, Rollup, Keycloak
Environments
Dev, UAT, Production

The shell

The platform is a React shell built on Module Federation. Each product module is built and released on its own, and the shell loads it at runtime.

Under 5 KB before sign-in

I wrote a custom Vite plugin so the first thing the browser downloads is a tiny loader. The React bundles are held back until Keycloak confirms the user's sign-in, so nothing heavy is downloaded for users who aren't authenticated.

  1. < 5 KB loader
  2. Keycloak SSO check
  3. Load React shell
  4. Resolve module URLs + health check
  5. Mount module

Simplified load sequence.

Other performance work

Security

Keycloak single sign-on with role-based access control decides what each user can see and which modules they can open.

Results

This was client work under NDA. Diagrams are simplified redraws, and no client data or screenshots are shown.