Faisal Basra
Back to all updates
Web Architecture2026-07-146 min read

Composable Architecture in Retail: Decoupling Contentful from GCP Microservices

Practical lessons from migrating high-traffic consumer retail platforms to Contentful, Next.js, and containerized backends on Google Cloud Platform.

Faisal Basra
/ Tech Lead & Solution Architect

Decoupling Editorial Velocity from Code Deployments

In large retail operations, engineering teams frequently become a bottleneck for routine content updates, banner changes, and marketing campaign launches. When content is embedded directly into codebase templates, every copy revision requires a full build and deployment pipeline.

The Three-Layer Architecture At Coop Norge, we structured our web modernization around three distinct boundaries: 1. **Presentation Layer**: Next.js applications deployed to Google Cloud Platform, delivering pre-rendered pages with edge caching for optimal Core Web Vitals. 2. **Headless Content Hub**: Contentful and Sanity acting as centralized content repositories with typed schemas, custom validation, and live preview rendering for editors. 3. **Core Domain Microservices**: High-performance backend services written in Go and .NET Core handling inventory availability, pricing rules, customer loyalty, and order fulfillment.

Key Architectural Findings - **Webhook-Driven Revalidation**: Content publishes trigger automated edge cache purges, ensuring customers see price or copy updates within seconds while preserving static delivery performance. - **Component Design System**: Establishing a strict UI component library built on Tailwind CSS and Radix UI prevents design drift across disparate campaign pages. - **Editorial Live Preview**: Integrating bidirectional preview frames allows content teams to verify desktop and mobile viewports simultaneously prior to publishing.