Three pages of Rogii's Feed product come from one micro frontend that the host app loads through Module Federation: Output, which pushes data to customer databases, Exchange, which moves data both ways with Petrel Studio, and Streaming Status. The app ran on webpack 5, TypeScript 4.7, Redux Toolkit with RTK Query, React Router 5 and Jest.
In late 2025 our managers chose a rebuild because we had the time and resources to invest in an architecture that would scale. I owned the implementation, from the first prototypes through the production switch-over.
Prototypes first
I checked the two risky parts before writing the app:
- A Vite build of the app as a Module Federation remote. I had a working prototype in November 2025.
- TanStack Query and Zustand in place of Redux. I shipped them into the old app's Exchange page first, at the end of November.
Separating state and dependencies
- Feature-Sliced Design layers and our own lint rules from the first day, so tools check the structure.
- Server state in TanStack Query, client state in small Zustand stores. The later tree performance fixes relied on TanStack's control over structural sharing and mutation state.
- Vite builds the remote; Vitest and Playwright test it.
- Only React and React DOM are shared with the host, as singletons. The remote bundles its own TanStack Query.
32 days
The first four days went to setup: layers and lint rules, router, permissions, Vitest and Playwright. Then the screens: both trees and the tables in December, forms, process runs and schedules over the holidays. The last days went to the light theme and to the fixes that had landed in the old app in the meantime.
Switch-over
On 13 January I replaced the old code with the new app and changed the host in the same ticket. I wrote a loader that reads the remote's manifest and passes services in as props. Ported fixes, environment config and generated API types followed the next day, CI by 19 January.