Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Zalando Engineering 12 min read Deep dive mediumAdept

Micro Frontends: Deep Dive into Rendering Engine (Part 2)

Zalando's Interface Framework replaces Mosaic HTML fragments with Renderers: declarative TypeScript modules that state their data needs as GraphQL queries and render a single Entity type as a React component. A Node.js Rendering Engine maps Entities to Renderers through rendering rules, recursively and asynchronously resolves the entity tree, and streams server-rendered HTML that is later progressively hydrated on the client. A custom React reconciler lets the same Renderers emit JSON layouts for the iOS and Android apps. The engine also handles batched, cached data fetching (DataLoader, Perron circuit breakers), persisted queries, code splitting, Web Vitals collection and Mosaic backward compatibility.

Assumes: React and server-side renderingGraphQL queriesMicro frontends concept

Related posts

  • Micro Frontends: from Fragments to Renderers (Part 1)

    Zalando Engineering easyNovice

    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. A Node.js/browser Rendering Engine resolves and renders the Entity tree chosen by the recommendation system, with built-in monitoring, batched A/B testing, deployment previews against production, and performance gates such as Lighthouse CI, bundle size limits and Web Vitals reporting. Moving teams into a monorepo with a shared stack lowered the entry barrier and improved UX consistency, at the cost of blurred ownership. A hybrid mode serving Fragments and Renderers together eased migration, and about 90% of traffic now runs on IF.

  • Accelerating Mobile App development at Zalando with Rendering Engine and React Native

    Zalando Engineering mediumAdept

    Zalando is incrementally migrating its separate iOS and Android apps to React Native by reusing Rendering Engine, its React-based web framework whose "renderers" bundle data fetching, caching, observability and tracking into components. React Native ships as a package: an npm "Entry Point" is consumed both by a standalone developer app and by a native SDK exposing a simple view-factory interface. Native interop goes through turbo modules plus injected protocols, which developers can mock. UI is shared with web through react-strict-dom and StyleX, with Metro platform-specific files and compat APIs covering cases one shared implementation can't handle.

  • Rendering Engine Tales: Road to Concurrent React

    Zalando Engineering mediumAdept

    Zalando migrated its Rendering Engine framework, which renders the Fashion Store from backend-defined Entity trees mapped to React Renderers, to React 18 concurrent rendering. Each Renderer is wrapped in a Suspense boundary. Data resolution, ordering and transitions live in a central Application State layer outside React, and a Connector hook suspends components until their data is written. This mixed design was chosen because SuspenseList is still experimental, useTransition ignores nested Suspense boundaries, and Render-As-You-Fetch hooks couple fetch timing to render order. Switching to renderToPipeableStream and hydrateRoot alone, rolled out via A/B test, cut INP by 5.69%, FID by 8.81% and LCP by 2.43%. It also exposed many hydration mismatch errors, and the post covers fixes for common causes such as timers, time-zone-dependent date localization and client-only content.

  • How We Built Hydrogen: A React Framework for Building Custom Storefronts

    Shopify Engineering mediumAdept

    Hydrogen, Shopify's React framework for custom storefronts, was built on React Server Components, React 18 streaming SSR and Vite, chosen over static JAMStack approaches because commerce pages are inherently dynamic. Component-level data fetching replaced route loaders, and a preload cache hoists nested queries so they run in parallel instead of in network waterfalls. Removing bloated exported GraphQL fragments and adding a logger for unused query fields cut some demo store route load times in half. Rigid "magical" context-based components were dropped in favor of leaner primitives, and the team describes its early reverse-engineered RSC implementation and collaboration with the React, Vite, Vercel and Cloudflare teams.

  • How we use GraphQL at Europe's largest fashion e-commerce company

    Zalando Engineering easyNovice

    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. The BFFs had duplicated effort, fragmented security and observability, and produced inconsistent data across web and app. The graph is built on Entities such as Product and Campaign and runs on their own GraphQL engine, graphql-jit, under a strict no-business-logic rule. Since 2018 it has grown to serve over 80% of web and 50% of app use cases, with adoption driven by documentation, training and schema consultation, and god-component risk handled through contribution principles, circuit breakers, timeouts, retries and per-platform bulkhead deployments.

The quest for software engineering knowledge.

Look:
Layout: