---
title: "Context Based Experience in Zalando"
description: "Zalando built a context-aware \"experience\" mechanism so selective-distribution brands can get distinct presentation (e.g. white packshot backgrounds, hidden sale flags, restricted catalog visibility) only when a customer shows explicit intent, such as searching for the brand or opening its product page."
url: "https://swe.quest/articles/context-based-experience-in-zalando-fc130fced33c73be"
canonical: "https://engineering.zalando.com/posts/2023/06/context-based-experience-in-zalando.html"
source: "Zalando Engineering"
published: "2023-06-25"
difficulty: "medium"
kind: "Case study"
reading_minutes: 4
tags: ["system-design","frontend","graphql","ecommerce","microservices"]
---

# Context Based Experience in Zalando

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2023-06-25, 4 min read, Case study. Original: [https://engineering.zalando.com/posts/2023/06/context-based-experience-in-zalando.html](https://engineering.zalando.com/posts/2023/06/context-based-experience-in-zalando.html)

## Summary

Zalando built a context-aware "experience" mechanism so selective-distribution brands can get distinct presentation (e.g. white packshot backgrounds, hidden sale flags, restricted catalog visibility) only when a customer shows explicit intent, such as searching for the brand or opening its product page. An experience is a JSON bundle of policies (theme, product flags) plus selection metadata (e.g. brand codes), with fallback experiences for conflicts. Resolution happens in two steps: during root entity resolution the Rendering Engine queries the GraphQL Fashion Store API, the domain backend (e.g. Catalog) picks the matching experience, and the result is stored in request state. Child micro-frontends then pass that resolved experience on their own queries so other backends, like Product, apply the right policies consistently.

Written by swe.quest, not by the author.

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

## Topics

- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [GraphQL](https://swe.quest/tags/graphql.md) (Backend & APIs)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)
- [Microservices](https://swe.quest/tags/microservices.md) (Backend & APIs)

## Prerequisites

- micro frontends
- GraphQL APIs ([easy posts on GraphQL](https://swe.quest/tags/graphql.md?difficulty=easy))
- microservices architecture ([easy posts on Microservices](https://swe.quest/tags/microservices.md?difficulty=easy))

## Keywords

Zalando, Rendering Engine, Fashion Store API, GraphQL, micro frontends

## Related posts

- [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.
- [More Editorial Content, please.](https://swe.quest/articles/more-editorial-content-please-3a9ab301c97b6ae2.md): Zalando Engineering · 2022-09-28 · Medium · 10 min read · Product engineering, GraphQL, System design, Frontend
  Zalando replaced a legacy, engineering-heavy landing page tool with a system built on the headless CMS Contentful, integrated into its Interface Framework via a Contentful proxy service behind the Fashion Store GraphQL aggregator, with modules mapped to renderers shared across web and app.
- [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 built a custom permissions DSL at Figma](https://swe.quest/articles/how-we-built-a-custom-permissions-dsl-at-figma-b86982742becc83a.md): Figma · 2024-03-13 · Medium · 24 min read · Identity & auth, Language design, System design, Ruby, TypeScript
  Figma replaced a sprawling Ruby \`has\_access?\` permissions function with a custom, JSON-serializable permissions DSL and a cross-platform policy engine, inspired by AWS IAM policies.
- [Micro Frontends: Deep Dive into Rendering Engine (Part 2)](https://swe.quest/articles/micro-frontends-deep-dive-into-rendering-engine-part-2-9a2ff0104826dc54.md): Zalando Engineering · 2021-09-08 · Medium · 12 min read · Frontend, React, System design, GraphQL, TypeScript
  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.

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)
