Context
As RedTeam grew and acquired other companies, the "platform" became a hodgepodge of disconnected experiences built in AngularJS, Angular, Vue, JSPs and PHP. Users had to log into multiple applications, and data was rarely shared between them. It had become more trouble than it was worth.
Delivery was just as scattered. Builds took 30+ minutes and deployed across Azure, AWS and homegrown solutions.
A new platform was a long time coming. To stay competitive, RedTeam needed one unified product, and five teams needed a shared frontend to ship it on.
My role and scope
- Designed the micro-frontend platform: Remix/SSR with a backend-for-frontend (BFF) on AWS.
- Platform used by 50+ engineers across 5 teams.
- Member of the Architecture Committee.
Key decisions and trade-offs
Server rendering for fast first loads.
One BFF layer between the apps and backend services.
We started on Next.js, but its support for server components caused issue after issue, so we moved to Remix and later to React Router.
How I brought people along
A core team built the new platform, and the other teams came from the legacy applications. We used the strangler fig pattern: the platform integrated the legacy apps at the browser, through routing and strategic iframes. From there, the legacy teams ported their apps to the new platform one feature at a time.
As Principal Frontend Engineer and architect, I got the teams up to speed on the new stack and mentored them as they ported their features over.
Outcomes
5-6 stonear-instant
page loads
30+to<5 min
build times
0%to>80%
frontend e2e coverage, 7 apps
What I'd do differently
I decided against module federation because I worried it would be too complex for the legacy teams to pick up. That was a mistake. It would have made things easier.