ADR-BW-023: Decouple storefront into Next.js multi-zones behind the gateway
Compose independent storefront and commerce Next.js applications via multi-zone routing behind the unified reverse proxy.
| Field | Value |
|---|---|
| Status | Accepted |
| Date | 2026-11-28 |
| Owners | Catalog Experience TeamTeamCatalog Experience TeamStream-Aligned team owning BookWorm's product catalog, customer reviews, and storefront/backoffice discovery experience....Open docs |
| Affected Resources | BookWormDomainv1.0.0BookWormCore e-commerce domain for the BookWorm online bookstore, coordinating catalog discovery, customer baskets, order fulfil...Ownerarchitecture-enabling-teamDiagramRepositoryOpen docs |
| Related ADRs | ADR-BW-001: Decompose BookWorm by business capabilityDecision Recordv1.0.0ADR-BW-001: Decompose BookWorm by business capabilityAlign independently deployable building blocks with bounded contexts rather than a shared business layer.Ownerarchitecture-enabling-teamOpen docs, ADR-BW-004: Integrate request-response operations through owned HTTP and gRPC contractsDecision Recordv1.0.0ADR-BW-004: Integrate request-response operations through owned HTTP and gRPC contractsUse service-owned HTTP APIs and defined Protocol Buffer interfaces rather than internal handlers or database access.Ownerarchitecture-enabling-teamOpen docs |
Context & Problem Statement
Growing catalog discovery, checkout, and back-office surfaces in a single Next.js application coupled release cycles and blurred domain boundaries on the frontend.
Decision & Consequences
Chosen Option: Split the frontend into independent Next.js zones composed via multi-zone routing behind the API gateway, sharing UI primitives and auth session boundaries without cross-zone state coupling (see Multi-Zone CompositionCustom DocMulti-Zone CompositionWhy BookWorm splits customer discovery and authenticated checkout into two zones behind one gateway origin, and how cros...Ownercatalog-experience-teamOpen doc).
- Positive: Independent deployments per frontend surface and clear alignment with backend bounded contexts.
- Negative: Requires coordinated gateway route prefixes and cross-zone navigation links.